Skip to main content
Explorer
July 29, 2025
Question

Flash Image integrity inquiry

  • July 29, 2025
  • 1 reply
  • 218 views

Hi,

I am using STM32G07 for the slave side, and another MCU for the Host side.

I would like to implement the device firmware upgrade of the ST MCU, and controlled by the Host MCU.

  • There is only support for UART communication between two MCUs.
  • ST MCU Protocol version is V3.1, and the "Get Checksum" command is only supported for V3.3TesterSAM_1-1753778391814.png
  • For the "Read Memory" Command, I tried using baud rate =115200 & 2 stop bits to read 256 bytes, which takes ~26ms for the UART part only. if read all 128K Bytes for Flash Image integrity checking, it takes at least 13.312s
  • I tried to damage the .bin file image e.g last 32 bytes of content, and the MCU could run the Main application (the application would output UART Log regularly).

Question:

  1. Any alternative suggestions or methods could check the flash image integrity faster?
  2. STM32G07 able to upgrade the Protocol version to V3.3?

 

    This topic has been closed for replies.

    1 reply

    Super User
    July 29, 2025

    You could write a small prog to the end of SRAM (or append it to the flash image) calculating the checksum, execute it (go) and read back the result. 

    Doubt that protocol updates are available, but you should better check that directly with your supplier.

    hth

    KnarfB