cancel
Showing results for 
Search instead for 
Did you mean: 

Bootloader over SPI for STM32F334

previn
Associate II
Posted on November 09, 2015 at 05:06

Hi All,

I am trying to upload my code to an STM32F334 over SPI. In section 2.5.1 Embedded boot loader of the RM0364 Reference Manual, it states the embedded boot loader can reprogram the flash memory through USART1(PA9/10), USART2(PA2/3), or I2C1(PB6/7). Is it possible to program it over SPI with or without a boot loader?

Thanks

#wait-for-you--clive1-!-!-!
3 REPLIES 3
Posted on November 09, 2015 at 14:00

If the manual says the mode isn't available in the System Loader, then it's not going to be available there. Use that to make the appropriate design choices.

If you write your own loader, you can provide for any mode of operation you want.

The methods provided by the System Loader are there to permit production programming of the blank board mounted devices via a simple connector or test-points.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
previn
Associate II
Posted on November 10, 2015 at 03:04

Thanks for the reply,

Would you have any resources on how to create a boot loader which uses SPI? (or how to create a boot loader for STM32's in general)

dhiry2k1
Associate II
Posted on November 12, 2015 at 19:28

http://http://www.st.com/web/en/catalog/tools/PF257903

This link explains about USART on STM32F4. you can modify to work with SPI .