Hi,
I'm in the process of implementing an application in SYS BIOS 6_30_02_42 in OMAP L138.
void myfunc()
{
Thread A creation;
.......
}
int main()
{
/* Some code */
BIOS_start(); // Entry point for BIOS is set to myfunc in the .cfg file
}
If I place the stack for Thread A in default heap, application works fine.
Now, I created one more heap and hook it in to the DDR in the .cfg as follows,
var extstackParams = new HeapMem.Params();
extstackParams.size = 0x040000;
extstackParams.sectionName = "EXTMEM_STACK_HEAP";
Program.global.sdramstack = HeapMem.create(extstackParams);
Program.sectMap["EXTMEM_STACK_HEAP"] = "DDR";
and in my application file app.c I did the following,
extern int EXTMEM_STACK_HEAP
mytask.stackHeap = (xdc_runtime_IHeap_Handle) EXTMEM_STACK_HEAP;
But when I'm trying to link, the linker shows the following error,
undefined
symbol
---------
_EXTMEM_STACK_HEAP
If I look in to the map file, the EXTMEM_STACK_HEAP is created as a section.
How to acheive this?
Thanks In advance
Regards
Palanivel