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

NUCLEO_F412ZG add flash driver and bootloader support #4854

Merged
merged 3 commits into from Aug 7, 2017

Conversation

Projects
None yet
4 participants
@adustm
Member

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

This comment has been minimized.

Member

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"

@0xc0170 0xc0170 added the needs: work label Aug 3, 2017

@adustm

This comment has been minimized.

Member

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

0xc0170 approved these changes Aug 4, 2017

@0xc0170 0xc0170 added needs: CI and removed needs: work labels Aug 4, 2017

@0xc0170

This comment has been minimized.

Member

0xc0170 commented Aug 4, 2017

/morph test

@mbed-bot

This comment has been minimized.

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!

@0xc0170 0xc0170 added ready for merge and removed needs: CI labels Aug 7, 2017

@theotherjimmy theotherjimmy merged commit 0e1c20d into ARMmbed:master Aug 7, 2017

4 checks passed

Cam-CI uvisor Build & Test Success
Details
ci/morph-test Job has completed
Details
continuous-integration/jenkins/pr-head This commit looks good
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@adustm adustm deleted the adustm:STM32F412_flash_boot branch Jan 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment