Skip to main content
Explorer
March 26, 2024
Solved

Bootloading from SD card STM32F4

  • March 26, 2024
  • 1 reply
  • 1979 views

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.

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    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

    1 reply

    Graduate II
    March 26, 2024

    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

    Explorer
    March 26, 2024

    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.

    Graduate II
    March 26, 2024

    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.