Flash Integrity CRC
I'm trying to piece together the post-build process for flash integrity check using CRC. I'm running on an STM32F777.
So far I've been following:
https://community.st.com/s/question/0D50X0000B9vdDC/how-can-i-calculate-crc-of-image-in-post-build
and
https://www.eevblog.com/forum/microcontrollers/stm32-hex-file-signing-with-crc/
and
https://github.com/ethanhuanginst/STM32CubeIDE-Workshop-2019/tree/master/hands-on/06_F746-DISCO-CRC
But I'm seeing an error (warning?) that these guides don't mention and I haven't been able to find an explanation elsewhere:
warning: The STM32 filter uses 4-byte alignment,
but unaligned data is present. Use a "--fill 0xNN --within <input>
--range-padding 4" filter *before* the STM32 filter to fix this problem. See
srec_info(1) for how to see the data ranges.
I've tried adding the changes suggested by the error message, but they throw additional errors and it feels like a rabbit hole.
What's causing this unaligned data? Can I/should I fix it?
