cancel
Showing results for 
Search instead for 
Did you mean: 

Program STM32 via serial

kavinkumar
Associate III

Is it possible to program the MCU via Serial using the USART pins (PB6,PB7)????

 

3 REPLIES 3

You can implement any update method you chose.

For the System Loader see application note AN2606 for pin options.

https://www.st.com/resource/en/application_note/an2606-stm32-microcontroller-system-memory-boot-mode-stmicroelectronics.pdf

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

https://git.code.sf.net/p/stm32flash/code is a nice program to talk to AN2606 compatible bootloaders

In addition to the built-in System Loader mentioned by @Tesla DeLorean  - which has certain restrictions - you can write your own loader to use any interface you like on any pins you like

For example, see Application note AN4657STM32 in-application programming (IAP) using the USART:

https://www.st.com/resource/en/application_note/an4657-stm32-inapplication-programming-iap-using-the-usart-stmicroelectronics.pdf

https://www.st.com/en/embedded-software/x-cube-iap-usart.html