AnsweredAssumed Answered

.hex file alignment

Question asked by RANDY LEE on Jan 26, 2015
Latest reply on Jan 27, 2015 by RANDY LEE

So on a K22, the FLASH system wants to write 8 bytes on 8 byte alignment.

 

KDS isn't doing alignment like that on the back end of the .hex file.  I've got one that goes:

 

:10AA2800000000000000000000000000000000001E

:10AA3800000000000000000000000000000000000E

:10AA480000000000000000000000000000000000FE

:10AA580000000000000000000000000000000000EE

:10AA680000000000000000000000000000000000DE

:10AA780000000000000000000000000000000000CE

:10AA8800880603000000FF1F00040000880A030076

:10AA98000000002000A000000000000000000000EE

:04AAA80000000000AA

:040000031000D7D141

:00000001FF

 

 

So from this the last address is AAA8 + 4 bytes which isn't mod 8  I see things in the .ld file that are alignment oriented but that file is created by PE so I'm not too hip on editing it.  What I need is fill too which I don't know how to force done.

 

How do I get the environment to force that to 8 byte align/fill? 

Outcomes