Skip to content

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

@soothill

Description

@soothill

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) }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions