Skip to content

Fix bin size of LPC15xx devices #26

@antonverburg

Description

@antonverburg

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"
),

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions