Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#8 Heap doesn't work

open
nobody
None
5
2011-06-03
2011-06-03
Matt
No

I need a heap to use the snprintf functions. Adding the heap in the MicroChip IDE works fine but I get an error in eclipse when I add a heap either through the box or manually adding it to the command line. It seems to error out on the pic30-elf-ld.exe not the pic30-gcc executable.

*** Build of configuration hex for project MotorControlBoard ****

mingw32-make all
Building target: MotorControlBoard.elf
Invoking: PIC C30 C Linker
pic30-gcc -T"D:\Workspaces\PU33\JEC\MotorControlWorkspace\MotorControlBoard\gld\p33FJ128GP802mod2.gld" --heap=256 -Wl,-Map,MotorControlBoard.map -omf=elf -mcpu=33FJ128GP802 -o "MotorControlBoard.elf" ./src/main.o ./src/traps.o
c:\program files (x86)\microchip\mplabc30\v3.25\bin\bin\..\bin/pic30-elf-ld.exe Error: A heap is required, but has not been specified
mingw32-make: *** [MotorControlBoard.elf] Error 255

Discussion