2024-09-20 06:31 AM - edited 2024-09-20 06:31 AM
Hi,
I am using stm32h745. I want to check the integrity of flash by checking crc checksum of the code in flash by storing the crc to last 4 bytes of flash. During image integrity check the calculated crc and stored crc need to compare. For this how should I set build settings in properties of STM32CubeIDE??? Could someone please help with this
2024-09-20 12:29 PM
No change in build settings or properties is required. Just do what you want.
2024-09-22 10:13 PM
How? dont we need to add post build command so as to generate checksum and store to last 4 bytes of flash?
2024-09-23 06:56 AM
Of course, a post-build command is great for such things. But you've asked about changes in build settings...
The CubeIDE user manual explains the post-build commands.
For the script you can use "sh" with many usual gnu utilities, even on Windows.
2024-09-23 07:00 AM
Can u please share any reference? I tried using command as "C:/Program Files/srecord/bin/srec_cat.exe" "app.hex" -Intel -fill 0xFF 0x08000000 0x080FFFFF -crop 0x08000000 0x080FFFFB -CRC32_Big_Endian 0x080FFFFC -CCITT -o "app.hex" -Intel but doesn't work
2024-09-23 04:36 PM - edited 2024-09-23 04:41 PM
What "doesn't work"? Any error message?
This works for me with CubeIDE 1.15.1:
And this:
2024-09-23 08:40 PM
locations are not filled with FF, also shows error in crc calculation. Can u please share the command or script to be used. I am using stmcubeide 1.16.0