This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

"Memory" is not defined in SYSBIOS app?

Guru 15580 points
Other Parts Discussed in Thread: SYSBIOS

I am trying to create a heap in my SYSBIOS app. However I am getting the following error:

configuring ARM_init_SYSBIOS.pe9 from package/cfg/ARM_init_SYSBIOS_pe9.cfg ...

js: "C:/Users/Mike/TI Workspaces/AMX2_SYSBIOS/ARM_init_SYSBIOS/ARM_init_SYSBIOS.cfg", line 21: ReferenceError: "Memory" is not defined.

    "./package/cfg/ARM_init_SYSBIOS_pe9.cfg", line 754

    "./package/cfg/ARM_init_SYSBIOS_pe9.cfg", line 809

    "./package/cfg/ARM_init_SYSBIOS_pe9.cfg", line 741

gmake.exe: *** [package/cfg/ARM_init_SYSBIOS_pe9.xdl] Error 1

I have included the Memory module header (#include <xdc/runtime/Memory.h>) and the Memory module (var xdc_runtime_Memory = xdc.useModule('xdc.runtime.Memory');) in my app and cfg file. But when I attempt to set the default heap to use my new heap (Memory.defaultHeapInstance = instxdc_runtime_HeapStd0;), I get the error above. What am I missing?

Thx,

MikeH

 

 

  • Hi Mike,

    You don't have a variable called "Memory", you have one called "xdc_runtime_Memory". Try changing either

    var xdc_runtime_Memory = xdc.useModule('xdc.runtime.Memory');
    to
    var Memory = xdc.useModule('xdc.runtime.Memory');

    or

    Memory.defaultHeapInstance = instxdc_runtime_HeapStd0;
    to
    xdc_runtime_Memory.defaultHeapInstance = instxdc_runtime_HeapStd0;

    Todd