Skip to main content
Wdowa.1
Associate
May 4, 2021
Question

STM32 CHECKSUM SELF CHECKING CAPABILITY

  • May 4, 2021
  • 5 replies
  • 3379 views

STM32 has the capability to perform checksum self checking.

If no, there is some way to verify that the program have been loaded properly.

This topic has been closed for replies.

5 replies

TDK
Super User
May 4, 2021

STM32CubeProgrammer can verify memory after/during programming. Most programmers have this capability.

You can also calculate the checksum or CRC at the beginning of your program to verify.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Tomas DRESLER
Associate II
May 4, 2021

Hello,

STM32 is equipped with different peripherals able to make a checksum of your memory:

  1. all contain standalone CRC unit, which your program can use and pass the content of FLASH through it. The result can be compared with precalculated and stored value
  2. the HASH peripheral can calculate more detailed hash of your application. Again, you shall pass the FLASH content through programmatically or with a DMA
  3. some STM32s have a dedicated CRC calculator in the FLASH block, that can operate on its own over the FLASH content

Good day!

Wdowa.1
Wdowa.1Author
Associate
May 4, 2021

Thanks both for your fast support.

There are some documents about it?

There is a list about STM32 with CRC calculator?

Tomas DRESLER
Associate II
May 4, 2021
Wdowa.1
Wdowa.1Author
Associate
May 4, 2021

Thanks