Hi:
I am trying to port my application to sysbios using new modules and APIs.
A part of my .cfg file looks like this
bios.MEM.instance("IRAM").base = 0x00800900;
bios.MEM.instance("IRAM").len = 0x00100000;
bios.MEM.instance("IRAM").createHeap = 1;
bios.MEM.instance("IRAM").enableHeapLabel = 1;
bios.MEM.instance("IRAM").heapLabel = "IRAMSEG1";
bios.MEM.instance("IRAM").heapSize = 0x00002000;
which i have tried to replace it like this
xdc.global.HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
var params = new HeapMem.Params ;
params.size = 0x00002000;
params.sectionName = "IRAMSEG1";
var heap1 = HeapMem.create(params);
Memory.defaultHeapInstance = heap1;
Defaults.common$.instanceHeap = heap1;
var IRAM = Program.cpu.memoryMap.IRAM;
Program.sectMap["IRAMSEG1"] = {loadSegment: IRAM.name};
On building the program, i get the following error
undefined first referenced
symbol in file
--------- ----------------
_IRAMSEG1 ./bioslapi.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "SysBios.out" not
built
>> Compilation failure
Aparna