This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Default Code Memory Fill Into Object Files (all code memory specified)

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

Parents
  • What I have done numerous times is write little dedicated-purpose utilities that read in a hex file shich had been pre-filled with 0xFF and write out the block to a new hex file.

    Because I did it this way, it was then a simple task to also include the calculation and store of a checksum over the image so I could do a runtime integrity check over the image.

    It really is not very difficult to interpret Intel hex and write it back - And it takes very little time.

    Never understood why this method is not more frequently considered or suggested.

Reply
  • What I have done numerous times is write little dedicated-purpose utilities that read in a hex file shich had been pre-filled with 0xFF and write out the block to a new hex file.

    Because I did it this way, it was then a simple task to also include the calculation and store of a checksum over the image so I could do a runtime integrity check over the image.

    It really is not very difficult to interpret Intel hex and write it back - And it takes very little time.

    Never understood why this method is not more frequently considered or suggested.

Children
No data