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

Problems compiling under MPLAB X 1.00 and MPLAB C32 V2.01 #2

Open
soothill opened this issue Dec 20, 2011 · 1 comment
Open

Problems compiling under MPLAB X 1.00 and MPLAB C32 V2.01 #2

soothill opened this issue Dec 20, 2011 · 1 comment

Comments

@soothill
Copy link

There appear to be two different sets of errors when trying to compile this on a fresh install.

I am trying to use a PIC32 Ethernet demo board and I get the following compile errors:-

data_init: Link Error: Could not allocate section .dinit, size = 8 PC units, attributes = code
data_init: Link Error: Could not allocate section .dinit, size = 8 PC units, attributes = code
Link Error: Could not allocate program memory

Digging around it seems the crt0.S has changed and added a new digit section taken from the release notes.

What I am not sure about is which sections to take across from the old crt0.s to the new one to get this to compile correctly.

These lines also needed to be added into the boot-linkerscript.ld to stop it producing errors.

.debug_varnames 0 : { *(.debug_varnames) }
.debug_pubtypes 0 : { *(.debug_pubtypes) }
.debug_range 0 : { *(.debug_ranges) }

@arttech
Copy link

arttech commented Oct 5, 2012

Hi, I'm having the same problem. Did you ever resolve this?
Thanks!

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

2 participants