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.

CCS/EVMK2H: Trying to place heap in DDR3 section. BIOS 6.46, XDC 3.32.

Part Number: EVMK2H

Tool/software: Code Composer Studio

Edited cfg file with

BIOS.heapSize = 2097152;
BIOS.heapSection = "DDR3";
BIOS.heapTrackEnabled = true;

Heap is not placed in DDR3, though. So large mallocs fail.

  • Hi Bruce,

    I've forwarded your query to the software experts. Their feedback should be posted here.

    BR
    Tsvetolin Shulev
  • Try the following to  configure heap to DDR:

    var heapMemParams = new HeapMem.Params();
    heapMemParams.size = 0x8000000;
    heapMemParams.sectionName = "systemHeap";
    Program.global.heap0 = HeapMem.create(heapMemParams);
    Memory.defaultHeapInstance = Program.global.heap0;
    
    BIOS.heapSize = 2097152;
    BIOS.heapSection = "systemHeap";
    BIOS.heapTrackEnabled = true;
    
    Program.sectMap["systemHeap"]     = "DDR3";

    Hope this helps. Let us know if this resolves your issue.

    Regards,

    Rahul

  • Actually, this worked, except for the fact that the BIOS specifications caused errors. When I commented those out, everything worked as expected:

    var heapMemParams = new HeapMem.Params();
    heapMemParams.size = 32*1024*1024; //0x8000000;
    heapMemParams.sectionName = "systemHeap";
    Program.global.heap0 = HeapMem.create(heapMemParams);
    Memory.defaultHeapInstance = Program.global.heap0;
    //BIOS.heapSize = 32*1024*1024;
    //BIOS.heapSection = "systemHeap";
    //BIOS.heapTrackEnabled = true;
    Program.sectMap["systemHeap"] = "DDR3";

    Thanks,
    Bruce