Firmware CRC / Debugger
Dear all
I want to check flash integrity with CRC checksum – IAR workbench has built-in features to calculate and add the CRC to the firmware.
Under STM32CubeIDE I use a post build
srec_cat.exe firmware.bin -binary -stm32-l-e 0xEFFC -o firmware_withCRC.bin -binary
Works great with HAL library function HAL_CRC_Calculate
But how this can be combined with the debugger – there only elf-files can be loaded. My firmware stops executing if CRC is wrong - so I have to change the code each time I starts the debugger.
Thanks in advance,
Franz
