nxphlite-v3:bin file must be padded to multiple of 8

Flash programing on the K66 has to be units of 8 bytes. So we cache
   the write of words until there are 2 written. Then the 2 words are
   written to FLASH. This change ensure the bin file has an even
   number of (4 byte) words by padding the last section in progflash
   with 0xffffffff if needed.
This commit is contained in:
David Sidrane 2018-07-03 12:06:30 -07:00 committed by Daniel Agar
parent 35960fb012
commit 9ccb9345be

View File

@ -87,7 +87,9 @@ SECTIONS
* use the NuttX get_errno_ptr() function.
*/
__errno = get_errno_ptr;
} > progflash
. = ALIGN(8);
_eotext = .;
} > progflash =0xff
/*
* Init functions (static constructors and the like)
@ -132,7 +134,9 @@ SECTIONS
_sramfuncs = ABSOLUTE(.);
*(.ramfunc .ramfunc.*)
_eramfuncs = ABSOLUTE(.);
} > datasram AT > progflash
. = ALIGN(8);
_eotext = .;
} > datasram AT > progflash =0xff
_framfuncs = LOADADDR(.ramfunc);