Skip to content

NUCLEO_F412ZG add flash driver and bootloader support #4854

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 7, 2017

Conversation

adustm
Copy link
Member

@adustm adustm commented Aug 3, 2017

Description

This PR enables the Flash driver and the bootloader for the STM32F412xG devices.

  • create flash_data.h for the STM32F412xG device
  • move current TARGET_STM32F4/TARGET_STM32F439xI/device/flash_api.c and TARGET_STM32F4/TARGET_STM32F439xI/device/flash_api.c at TARGET_STM32F4/ level.
  • Add MBED_APP_START and MBED_APP_SIZE in the scatter files / linker files of every toolchains
  • Modify the interrupt vector relocation to use NVIC_FLASH_VECTOR_ADDRESS

Status

READY

Migrations

NO

Steps to test or reproduce

flash tests are OK for every toolchains.
mbed-os-example-bootloader and mbed-os-example-bootloader-blinky are working (tested with ARM toolchain)

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 3, 2017

Please check travis failure : Executing: python tools/build.py -m B96B_F446VE -t GCC_ARM -j 4 -c --silent --dsp /home/travis/build/ARMmbed/mbed-os/targets/TARGET_STM/TARGET_STM32F4/flash_api.c:32:24: fatal error: flash_data.h: No such file or directory #include "flash_data.h"

@adustm
Copy link
Member Author

adustm commented Aug 4, 2017

Please check travis failure

Done, I have move the DEVICE_FLASH define so that other devices can compile (B96B_F446VE for instance)

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 4, 2017

/morph test

@mbed-bot
Copy link

mbed-bot commented Aug 4, 2017

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 938

All builds and test passed!

@theotherjimmy theotherjimmy merged commit 0e1c20d into ARMmbed:master Aug 7, 2017
@adustm adustm deleted the STM32F412_flash_boot branch January 15, 2018 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants