Page 1 of 1

pic30-elf-ld.exe Error

Posted: Fri Nov 30, 2007 2:53 pm
by Mangesh
Hi,

1)
While developing an application using RT-Drid, which makes use of the Zigbee Stack provided by Microchip I got this error:

\"pic30-elf-ld.exe Error: A heap is required, but has not been specified\"

When i include this option \"--heap=1024\" in \\ee\\pkg\\cfg\\arch\\rules_microchip_pic30.mk in pic30.elf target, i dont get the error.

Is this the right way to include heap or do I need to mention in the OIL file ?

2)
also INTERNAL_GCCINCLUDEDIR in \\ee\\pkg\\cfg\\arch\\rules_microchip_pic30.mk makes use of only the include directory within the MPLAB C30 directory and not the include within sub-directories.
for eg: \\MPLAB C30\\src\\peripheral_30F_24H_33F\\include

Should these includes be part of \\ee\\pkg\\cfg\\arch\\rules_microchip_pic30.mk file or do i need to add this as application include ?

Regards
Mangesh

Re:pic30-elf-ld.exe Error

Posted: Mon Dec 03, 2007 11:49 am
by paolo.gai
Hi Mangesh!

For the heap, you can add the line

LDFLAGS = \"--heap=4000\";

in the OS part of the OIL File.

There is an example using the heap, which is the Scicos application template... just instantiate it in a new project, and you\'ll see the OIL file has the heap option...

About the include dir... hmmm... For the moment include it in the OIL file (you can add it into CFLAGS...

Should we put it in the default makefile scripts?

bye

PJ