I would like to know if there is a way to specify a default fill value for all code memory (flash) not used by the linker, i.e., where there are "GAPS" there should be a specified fill value.
I would like this default value to carry all the way to Intel Hex files.
Currently, my Intel Hex files do not give complete coverage of the code (flash) memory. Rather than manually reading the Intel Hex file and manually filling gaps, how can I force fill these gaps with a specified value?
I could not find the answer to this in the compiler, assembler, linker, OH51 manual, nor discussion threads nor forums.
Thanks! Matt
Just as "IB Shy", I use a home-made application that reads the hex file. In my case, it fills the memory, reads the hex, picks up the version from the input file name, computes crc32 and writes a special header to the last 16 bytes of the memory and then spits out a data file for use in production.
Thank you all for the help. I also found Hexmat.exe which will parse and fill in Intel Hex files directly.
It would be good for Keil to include this function directly in the compiler/assembler/linker as a command line option for future versions. Hopefully they scan these forums for new feature requests.
Thanks again, Matt