Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mreserve options in my DEBUG builds failed at the linking stage #35

Open
drewtenn opened this issue Feb 2, 2019 · 2 comments
Open

mreserve options in my DEBUG builds failed at the linking stage #35

drewtenn opened this issue Feb 2, 2019 · 2 comments
Assignees

Comments

@drewtenn
Copy link

drewtenn commented Feb 2, 2019

I imported an Arduino project for my Chipkit MAX32 board and running a production build worked fine. My DEBUG builds failed with "collect2: error: ld terminated with signal 6 [Abort trap: 6]"

In digging into the command that was causing it to fail, I narrowed it down to the mreserve options that were created in Makefile-default.mk.

-mreserve=data@0x0:0x1FC -mreserve=boot@0x1FC02000:0x1FC02FEF -mreserve=boot@0x1FC02000:0x1FC024FF

Removing these from the makefile allowed the build to succeed and I was then able to debug code running on the board.

  1. Where do these values come from?
  2. What/if are these necessary?
@gholdys gholdys self-assigned this Feb 3, 2019
@gholdys
Copy link
Collaborator

gholdys commented Feb 3, 2019

@drewtenn, those options seem to come from MPLAB X IDE itself. They don't appear in the chipKIT files (for Arduino) so cannot be imported.
@EmbeddedMan, do you have an idea what they are?

@EmbeddedMan
Copy link
Member

Unfortunately I do not. I've not seen them before. @jasonkajita do you have any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants