Skip to main content
Shivam
Associate II
June 6, 2022
Solved

Is there any official example code for device firmware update over USART for STM32 MCU?

I've referred their AN3155 and AN2606 but I wanted to know whether I can find an official implementation of the flows mentioned in their application notes. Also I wanted to know the duration for which the RST pin of the controller has to be pulled LOW so that it considers it as a valid RESET. This is needed so as to put the MCU into DFU mode (Bootloader) by resetting the MCU while the BOOT 0 pin is being held HIGH. I'm using STM32F0 and STM32G0.

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
June 6, 2022

No

You're kind of expected to be able to code something that implements the protocol described.

There are several open source examples that implement it.

Doesn't the Data Sheet say >=500 ns

The other IAP examples use a standard protocol.

https://github.com/arduino-libraries/MKRWAN/blob/master/examples/MKRWANFWUpdate_standalone/MKRWANFWUpdate_standalone.ino

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

3 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
June 6, 2022

No

You're kind of expected to be able to code something that implements the protocol described.

There are several open source examples that implement it.

Doesn't the Data Sheet say >=500 ns

The other IAP examples use a standard protocol.

https://github.com/arduino-libraries/MKRWAN/blob/master/examples/MKRWANFWUpdate_standalone/MKRWANFWUpdate_standalone.ino

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Shivam
ShivamAuthor
Associate II
June 7, 2022

Thanks for your time. I found it helpful.

Shivam
ShivamAuthor
Associate II
June 7, 2022

Thanks for your time. I found it helpful.