Hi,
I wrote a perl program which calculates the CRC32 checksum of my .hex generated file (previously converted to binary of course). So I should just have to write it back to my .hex file at a fixed memory address for example and test it from my boot code.
The problem I have is that I don't know if Keil linker inserts holes (not programmed bytes) in the built .hex file.
If so, my perl cksum calculation will be wrong since it does not take into account these holes. The embedded cksum code will calculate the cksum on a range of adresses including non programmed bytes (0xFF)... :-(
My questions are : - Is the linker inserting holes in the generated .hex? - If so, is there a means to force it to fill holes with a specific value in the .hex file; 0xFF for example... ;-) ?
Thank you very much for your precious help !
Pierre
PS : I found a FLASH Fill Byte field in the Output options : could it be these famous option I'm looking for ?