Skip to main content
Omar Suárez
Senior
Jun 26, 2017 3:25 PM UTC
Question

Firmware upgrade using SPI - STM32F7

Posted on June 26, 2017 at 17:25

Hi everyone,

I am trying to understand how the firmware upgrading works in the STM32F7 using a STM32F769I Discovery board. I would need to use the UART or SPI peripheral to upgrade.

Does anyone know where to find example code?

Thanks in advanced,

Omar

#firmware-update #stm32f7 #bootloader
This topic has been closed for replies.

7 replies

Tesla DeLorean
Guru
Jun 26, 2017 3:30 PM UTC
Posted on June 26, 2017 at 17:30

There are application notes on the USART and SPI boot loader protocol.

The 'Flash Loader Demonstrator' provides an example of the USART solution, and a number of open source implementations also exist. The protocol is documented, and not that complicated.

https://community.st.com/community/stm32-community/blog/2017/05/02/stm32-spi-bootloader-host

 
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
Jun 26, 2017 5:31 PM UTC
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Omar Suárez
Senior
Jun 29, 2017 5:32 PM UTC
Posted on June 29, 2017 at 17:32

Hi Clive,

thanks for the replies!

I am reading the AN2606t but I am still not sure what FSM need to implement. My MCU is a STM32F769 so in pages 184 and 185 are two flowcharts: one for Dual Bank Boot implementation and the other one explaning the Bootlioader V9.x selection.

Should then I implement both state machines in order to have access to the bootloader execution ? I guess is also necessary to configure the FLASH registers of the MCU, isn't?

thanks again,

Omar

ST Technical Moderator
Jun 29, 2017 4:10 PM UTC
Posted on June 29, 2017 at 18:10

Hi,

You may use the attacheda new version of FlashLoader demonstrator adding support of STM32F7 devices (STM32F76x/x7/x8/x9)

Regards

Imen

________________

Attachments :

STMFlashLoader Demo_V2.9.0RC4.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyZz&d=%2Fa%2F0X0000000b9m%2FTWbPqE6ai0bLmcSdgoFnx9eDH0dH68OlUWxAZmxJ_lE&asPdf=false
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Omar Suárez
Senior
Jun 30, 2017 10:42 AM UTC
Posted on June 30, 2017 at 10:42

Hi Imen,

I have been taking a look to this ST technical video about how to boot in system memory without using the BOOT pins. In the example it uses some code and the Flash Loader to do that. Is there any AN or any example code about the steps commented in this video in how to boot without those pins?

Thanks,

Omar