Skip to main content
PFlor.2
Senior II
March 24, 2023
Solved

STM32H743 with STM32CubeIDE automatically save CRC at memory location during build

  • March 24, 2023
  • 2 replies
  • 1429 views

In previous development project we were able to place several variables with a magic number and checksum of the application at the end of the interrupt vector table that the bootloader could use to check if a valid application existed.

Since the STM32CubeIDE generates the startup code this is not possible. Is anyone aware of a way for the STM32CubeIDE to place values such as the CRC into flash memory automatically during the build process??

This topic has been closed for replies.
Best answer by Tesla DeLorean

You can edit startup.s and modify however you choose.

Many tools, like Keil, allow you to run tools on the output files, post-link stage of the build.

Tend to use that here to package and sign firmware images in a form we can distribute.

2 replies

Peter BENSCH
Technical Moderator
March 24, 2023

Maybe the knowledbase article How to calculate and generate post-build CRC? helps?

Regards

/Peter

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
March 24, 2023

You can edit startup.s and modify however you choose.

Many tools, like Keil, allow you to run tools on the output files, post-link stage of the build.

Tend to use that here to package and sign firmware images in a form we can distribute.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
PFlor.2
PFlor.2Author
Senior II
March 24, 2023

I'm using the STM32CubeIDE that doesn't have the tools to do this. Also the IDE generates code so I'm not able to modify the startup.s file since the code will be overwritten if I generate code in future.