Page 1 of 1

Link Error: Could not allocate data memory

Posted: Wed Jan 12, 2011 1:02 am
by coolj
xxxxxx.o: Link Error: Could not allocate section .nbss, size = 64 bytes, attributes = bss near
Link Error: Could not allocate data memory

Link step failed.

If you're trying to compile source files in MPLAB (for debugging purposes) that compile fine in Matlab, but run into the error above, try enabling "Large data model" under Build Options -> Project -> MPLAB C30 -> Memory Model

Hope that helps!

Justin
large_data_model.gif
large_data_model.gif (26.04 KiB) Viewed 12646 times