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.

TMDS64EVM: AM6442, AM6421

Part Number: TMDS64EVM
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

How to relocate heap region splitting between internal MSRAM and DDR4 ? Note that the maximum assignment of data in the MSRAM is about 

0x1D0000 as shown here : 

And the DDR4 regions is 2GB starting from : 0x80000000 and size = 0x80000000

However; I need to malloc the heap of about 3MB in the application. But if assigning the heap to 4MB as shown here

then the build will generate error since the maximum allowed in MSRAM was 0x1D0000.

The question is how to automatically allocate the heap regions from MSRAM and DDR4 ? If I try

to change the linker command manually it will not work since it will override back from SYSCONFIG.

I tried to follow this example to no avail by setting manually the linker file : 

SECTIONS {

GROUP : {

.heap : {} aligned(8) } > MSRAM | DDR_0

....

}

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1503222/sk-am62-lp-how-to-assign-some-functions-in-on-chip-ram-of-m4f-and-some-functions-on-ddr/5778809?tisearch=e2e-sitesearch&keymatch=how%252520to%252520assign%252520the%252520heap%252520into%252520DDR4%252520memory%252520region#5778809

Also following this linker page : 

https://software-dl.ti.com/ccs/esd/documents/sdto_cgt_Linker-Command-File-Primer.html#split-an-output-section-across-multiple-memory-ranges

The question is how to change the SYSCONFIG to satisfy the heap of 3MB (allocating it to DDR4 memory) ?

Thanks,

Huynh

  • Hi Huynh,

    The question is how to change the SYSCONFIG to satisfy the heap of 3MB (allocating it to DDR4 memory) ?

    1. Select the option named Section in example.syscfg file.

    2. Go to the memory section you want to split.(Stack in this case).

    3. Enable the Split Across Memories option.

    4. Add the memory according to the priority or order.

    Please refer below image.

    Hope the above method helps.

    Regards,

    Tushar