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/TMS320C6657: How to move the default heap to DDR3?

Part Number: TMS320C6657


Tool/software: Code Composer Studio

May I know how I can move the default heap (BIOS) to DDR3? Any example?

  • I don't know that there is an example of moving the default SYS/BIOS heap.

    Here's one way that involves moving the default heap in the app's .cfg file...

    1. Create a new linker output section:
         Program.sectMap[".my_heap"] = new Program.SectionSpec();
         Program.sectMap[".my_heap"].loadSegment = "DDR3";

    2. Assign section to BIOS:
         BIOS.heapSection = ".my_heap";

    3. Give desired size for heap:
         BIOS.heapSize = 0x10000;  // 64 KBytes

    This will direct BIOS to create a global HeapMem heap and place it in ".my_heap" (which is placed in DDR3).  If you want a heap of a different type than HeapMem, we can direct you on that approach too.

    There are other methods too, such as the one reflected in this E2E post:

    Regards,

    - Rob

  • Thank you. It's very clear to me now.