Skip to content

Fix bin size of LPC15xx devices #26

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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