Skip to content

Why bin file is so big? #479

Answered by multiplemonomials
xillion asked this question in Q&A
Discussion options

You must be logged in to vote

OK looks like there is something in your code that's putting itself in .crash_data_ram:

 .crash_data_ram
                0x10000290        0x4 Libs/bsp/libbsp.a(ptl_device.cpp.obj)

You may wish to check ptl_device.cpp for any code that is trying to use this section. Currently Mbed OS is not set up to have user data in the crash data RAM section (and that's likely a bug, but oh well). If you would like to put this data in the crash data ram section:

  • I'd have to release a patch for the linker script
  • The data needs to be zero-initialized instead of initialized with a value (which it currently seems to be).

Replies: 2 comments 18 replies

Comment options

You must be logged in to vote
3 replies
@JohnK1987
Comment options

@xillion
Comment options

@JohnK1987
Comment options

Comment options

You must be logged in to vote
15 replies
@multiplemonomials
Comment options

@JohnK1987
Comment options

@xillion
Comment options

@multiplemonomials
Comment options

Answer selected by xillion
@xillion
Comment options

@multiplemonomials
Comment options

@multiplemonomials
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants