pic30-elf-ld.exe Error

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Post Reply
Mangesh
Newbie
Posts: 4
Joined: Wed Oct 31, 2007 3:28 pm

pic30-elf-ld.exe Error

Post by Mangesh » Fri Nov 30, 2007 2:53 pm

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

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re:pic30-elf-ld.exe Error

Post by paolo.gai » Mon Dec 03, 2007 11:49 am

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

Post Reply