-
Notifications
You must be signed in to change notification settings - Fork 3k
STM32F437: remove flash api implementation #4868
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
Conversation
STM32F4 already contains generic flash api implementation, use it.
Hello @0xc0170 Removing TARGET_STM32F4/TARGET_STM32F437xG/device/flash_api.c to use the common one TARGET_STM32F4/flash_api.c is correct We should use ADDR_FLASH_SECTOR_12 instead of FLASH_SECTOR_12 in flash_api.c in order to check the presence of the second bank of flash on the device
Could you add this modification in this PR ? |
Thanks @adustm , I am looking at this currently. I'll do ADDR_FLASH_SECTOR_12 as proposed. |
Use ADDR_FLASH_SECTOR_12 as this is defined by target (the flash size varies, for instance for some F437xx is up to 2MB (2nd bank might not be there)).
@adustm Added, please review |
Nina C030 now compiles
|
/morph test |
I'm not in a position to run any tests for the next few days but it's likely I missed the subtlety of using |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
STM32F4 already contains generic flash api implementation, use it. However still fails to compile for me. Seems like F437xG has only first bank flash memory. But in the generic F4 flash driver, it is defined that it should have more flash sectors
this is taken from STM32 flash driver
We can see that for F437xx , there is defined flash sector 12. But this one is missing for ublox F437xG targets. @RobMeades any pointers?
@LMESTM