cancel
Showing results for 
Search instead for 
Did you mean: 

USART bootloader protocol firmware

Alexander Kurakin
Associate II
Posted on March 26, 2017 at 10:33

Good day!

There is '

http://www.st.com/content/ccc/resource/technical/document/application_note/51/5f/03/1e/bd/9b/45/be/CD00264342.pdf/files/CD00264342.pdf/jcr:content/translations/en.CD00264342.pdf

'. And as I understand, it is used in System memory firmware.

But is there a source code of this firmware and/or of this protocol (for STM3F40x)?

Thanks!

#stm32f4-discovery #stm32f4 #firmware #bootloader #usart
7 REPLIES 7
Khouloud GARSI
Lead II
Posted on March 27, 2017 at 10:51

Hi

kuraga

,

The bootloader is programmed by ST during production and the software is not provided.

However, you can refer to the application note

http://www.st.com/content/ccc/resource/technical/document/application_note/group0/a7/3c/23/3b/05/2d/45/73/DM00281415/files/DM002814pdf/jcr:content/translations/en.DM002814pdf

: Programming an external Flash memory using the UART bootloader built-in STM32 microcontrollers.

This application note is provided with an example firmware '

http://www.st.com/en/embedded-software/x-cube-extboot.html

' showing how to program an external Quad-SPI flash memory using a developed user boot-code based on the internal UART bootloader protocol.

You may refer to the provided example to develop your own bootloader. I think it will really help you.

Khouloud.

S.Ma
Principal
Posted on March 27, 2017 at 11:12

Few years back, plugged a bluetooth HC-05/06 cheap module and ironed out an Android App to bootload F103/L151 32kb code. The app notes were explicit enough to work with in the android app development. The only thing to remember was to make sure EVEN parity bit has to be set, and run 115200bps which makes loading more than 32kb quite long...

Alexander Kurakin
Associate II
Posted on March 27, 2017 at 11:21

Hi

garsi.khouloud

‌,

Centauris.Alpha

‌,

thanks for replies!

Centauris.Alpha

, I need an exact AN3155 protocol realization's source code...

garsi.khouloud

‌, don't you know some open sourced implementations of AN3155 (controller-side part)?

Posted on March 27, 2017 at 13:27

Perhaps

https://git.code.sf.net/p/stm32flash/code

?
Posted on March 27, 2017 at 15:28

Seemed to recall the Flash Loader Demonstrator code had some source, but the protocol isn't inherently complex, we built our own apps here.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
Posted on March 28, 2017 at 11:42

Bonnes.Uwe

‌, no, it's PC-side part, not MCU-side.

Posted on March 28, 2017 at 21:08

ST does not provide source code for the MCU's System Loader.

It is in OTP/ROM and is not replaceable.

ST provides some IAP (In-Application Programming) examples, where the code resides in FLASH, and new firmware is pulled via USART, Ethernet, USB Flash, etc.

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