cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H743 with STM32CubeIDE automatically save CRC at memory location during build

PFlor.2
Senior

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??

1 ACCEPTED SOLUTION

Accepted Solutions

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 Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

3 REPLIES 3
Peter BENSCH
ST Employee

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

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

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 Venmo
Up vote any posts that you find helpful, it shows what's working..

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.