mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
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:
parent
35960fb012
commit
9ccb9345be
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user