Skip to main content
Maunik Patel
Associate III
December 5, 2018
Question

FOTA using STM32

  • December 5, 2018
  • 4 replies
  • 4891 views

According to AN2606 (STM32 microcontroller system memory boot mode), Section 4.3, we require a 'HOST' peripheral, to communicate with STM32 MCU, in order to get new firmware from the peripheral (while booting from System Memory).

Flowchart from Section 5.2 shows that bootloader will wait until it receives either 0x7F from USARTx OR some specific byte from specific peripheral.

After reading this document, I think we must have a HOST Controller (like another MCU) in our development board, to do FOTA.

Am I correct ?

Is there any alternative to flash new code in main flash memory, using the default bootloader ?

All I need to do is do FOTA using STM32L432KB.

Please suggest me all possible ways for that.

This topic has been closed for replies.

4 replies

Tesla DeLorean
Guru
December 5, 2018

In this context FOTA is more like an IAP (In App Programming) method rather than ISP using the ROM

Ideally you want a place to stage the new firmware, either an external SPI Flash, or the upper half of the Internal Flash.

Is "AIR" in your application radio, ie WiFi, Cellular, NB, LoRa, etc?

You could also use a small app running from RAM if the connection/power is reliable and more of the Internal Flash needs updating, ie small loader, larger app

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Maunik Patel
Associate III
December 6, 2018

"AIR" is Cellular here, a BG96 module from Quectel.

Yes, I understand that it is IAP.

I have gone through the boot loader configuration process for this MCU.

Once the default boot loader is called after RESET, it looks for specific byte from its peripherals, to initiate Flashing.

I would like to know, what if one wants to update Flash code using IAP (using the Boot Loader).

Do we need to have a HOST controller (as I asked before), that can initiate communication with the boot loader and send it the specific byte ?

OR it works in some other manner ?

Tesla DeLorean
Guru
December 6, 2018

>>Yes, I understand that it is IAP.

Ok, but you keep talking about the ROM based boot loader

IAP across a network would be done internally by your own loader running in the L432, likely doing an HTTP GET to a file server holding a new image.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
SMask.1
Associate II
March 20, 2020

Hello

also i have to do this task. FOTA download using UART boot loader please guide me..

SMask.1
Associate II
March 20, 2020

here i am using STM32L010RB board

SMask.1
Associate II
March 20, 2020

Hello

also i have to do this task. FOTA download using UART boot loader please guide me..

here i am using STM32L010RB board