cancel
Showing results for 
Search instead for 
Did you mean: 

Bootloading from SD card STM32F4

Daniel_Ismail
Associate II

I'm facing difficulties bootloading or upgrading firmware on an STM32F405 MCU from an SD card.

Could anyone recommend a library or resource for achieving this? I've already tried a few methods but haven't had any success. Any help would be greatly appreciated.

3 REPLIES 3

Which aspect do you fail at?

Do you have the SDCard working on your platform?

STM32Cube_FW_F4_V1.27.1\Projects\STM324xG_EVAL\Applications\FatFs\FatFs_uSD

STM32Cube_FW_F4_V1.27.1\Projects\STM32F412G-Discovery\Applications\FatFs\FatFs_uSD

STM32Cube_FW_F4_V1.27.1\Projects\STM324xG_EVAL\Applications\USB_Host\FWupgrade_Standalone

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

The SD Card is functioning properly, as I can successfully read the firmware file from it. However, when it comes to the bootloading steps, I seem to have no clue.

So comparing the current firmware in FLASH, vs the .BIN or .HEX on the card?

Erasing the FLASH pages and writing the new content?

Probably want the app software to reside at 0x08010000 or 0x08020000 depending on how large your loader is.

Perhaps review IAP examples, and the FWupgrade mechanics. Replace the transfer of data from serial or USB with files from the card.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..