When compiling and objcopy for LPC15xx devices, the content of RAM is included in the bin file ,resulting in a large firmware.bin file. In order to ommit this, please add the flags "-R.heap -R.bss -R.stack_dummy" to the objcopy command in main.py, function ElfToBin, line 54 to 63:
|
ElfToBin=Builder( |
|
action=env.VerboseAction(" ".join([ |
|
"$OBJCOPY", |
|
"-O", |
|
"binary", |
|
"$SOURCES", |
|
"$TARGET" |
|
]), "Building $TARGET"), |
|
suffix=".bin" |
|
), |
When compiling and objcopy for LPC15xx devices, the content of RAM is included in the bin file ,resulting in a large firmware.bin file. In order to ommit this, please add the flags "-R.heap -R.bss -R.stack_dummy" to the objcopy command in main.py, function ElfToBin, line 54 to 63:
platform-nxplpc/builder/main.py
Lines 54 to 63 in d4be89b