Hi forum,
I'm using CCS 10.4.0.00006 with an MSP432E401Y. It has 1024K of Flash memory (length of 0x00100000 bytes). Our code currently uses only about 0x00050000 bytes, but is still growing.
I need to calculate a SHA-256 over the entire Flash (or at least the used Flash) so that a host computer the MSP432 is connected to can verify that the correct firmware is installed.
How can I fill gaps or unused code space (Flash) with a known value (like 0xFF - seems like the normal "erased" value)?
Alternatively, is there a way to programmatically get the end of used Flash memory so that I can calculate the SHA-256 over just that space instead?
Seems like the drawback of filling all of Flash memory with 0xFF's is that I'd have to download 1024K every time, which obviously would take much longer during edit/compile/debug cycles.
Thanks for your help!
Scott