alzomor
Advanced Member level 2
Hi
I am using codesourcery for TI stellaris Cortex-M3.
I need all my hex files generated by the linker to be 64K size regardless of the original size.
in other words
I need the compiler/linker to pad the generated file to 64K with 0xFF
Is this possible?
Regards
Hossam Alzomor
---------- Post added at 15:26 ---------- Previous post was at 14:46 ----------
Hi
I found 2 options in objcopy which can do the JOb
--gap-fill val
Fill gaps between sections with val. This operation applies to the load address (LMA) of the sections. It is done by increasing the size of the section with the lower address, and filling in the extra space created with val.
--pad-to address
Pad the output file up to the load address address. This is done by increasing the size of the last section. The extra space is filled in with the value specified by --gap-fill (default zero).
I am using codesourcery for TI stellaris Cortex-M3.
I need all my hex files generated by the linker to be 64K size regardless of the original size.
in other words
I need the compiler/linker to pad the generated file to 64K with 0xFF
Is this possible?
Regards
Hossam Alzomor
---------- Post added at 15:26 ---------- Previous post was at 14:46 ----------
Hi
I found 2 options in objcopy which can do the JOb
--gap-fill val
Fill gaps between sections with val. This operation applies to the load address (LMA) of the sections. It is done by increasing the size of the section with the lower address, and filling in the extra space created with val.
--pad-to address
Pad the output file up to the load address address. This is done by increasing the size of the last section. The extra space is filled in with the value specified by --gap-fill (default zero).