cancel
Showing results for 
Search instead for 
Did you mean: 

boot loader - SD card

MMARI.1
Senior

hi, In final end product we can't use the programmer for firmware update or upload the new program to chip . We need easy solution that compiled program in binary file has to be programmed in chip from SD card or USB Pendrive . In filed very difficult upload the program by programmer(link) device .

1.how to change the boot loader sequence by fuse setting or special code has to be crated for sd card program loading ?

2.incase of special code has to be written - please help us share sd boot :).

the above query is for mainly STM32F072VBT6 & STM32F103RBT6

 .

2 REPLIES 2
Javier1
Principal

The stm32 builtin bootloader (the one that comes with every chip and cannot be erased)

Has a lot of options for the source of the data including USB ,UART, I2C, SPI, CANBUS.....

So you could Programm your chip with CUBEprogrammer just using your PC's USB(host) port and the builtin ST bootloader USB (device)0693W00000CzwWAQAZ.png 

For the SD card option you would need to make your own bootloader i believe.

we dont need to firmware by ourselves, lets talk

You'd need to write a custom boot loader of you own, the ROM based loader doesn't support SPI/SDIO connected cards, or FatFs to pull data.

For a USB stick you'd need a part and drivers to support a MSC USB Host. There should be some examples of this type of firmware upgrade method with the STM32F407-DISCO.

Such a loader won't be particularly small.

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