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/TMS320F28377D: How to manually set the memory section that the "malloc" function requests in SYS/BIOS?

Part Number: TMS320F28377D

Tool/software: Code Composer Studio

Hi, I need to use malloc function to get much memory in my program under SYS/BIOS. But malloc function only use memory below 0x10000 of TMS28377D(Because default malloc function use SYS/BIOS heap, heap is in .ebss section, .ebss section only use memory below 0x10000 of TMS28377D), How to manually set the memory section that the "malloc" function requests in SYS/BIOS?

My development Enviroment is:

1)Hardware: TMS F28337D

2)Software: CCS6.1.1.00022+xdctools_3_22_04_46+bios_6_32_05_54+ipc_1_23_05_40+controlSUITE3.4.9

  • Hi,

    You can specific the exact heap section/subsection name (if you desire) via the BIOS.heapSection field in the .cfg (e.g. the default for your device is BIOS.heapSection = ".ebss:taskStackSections";). You can explicit place that subsection in your linker file.

    Note: for clarification, you are using F28377D...correct? I'm assuming the text in the post is a typo (F28337D).

    Todd