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

Guru**** 2393195 points
Other Parts Discussed in Thread: SYSCONFIG

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1521788/tmds64evm-am6442-am6421

器件型号:TMDS64EVM
主题:SysConfig 中讨论的其他器件

工具/软件:

如何重新定位内部 MSRAM 和 DDR4之间的堆区域分配? 请注意、MSRAM 中数据的最大分配约为  

0x1D0000、如下所示:  

DDR4区域为2GB、从:0x80000000开始、大小= 0x80000000

但是、我需要在应用程序中对大约3MB 的堆进行 malloc。 但如果将堆分配到4MB、如此处所示

然后、由于 MSRAM 中允许的最大值为0x1D0000、因此编译将生成错误。

问题是如何从 MSRAM 和 DDR4自动分配堆区域? If I try

若要手动更改链接器命令、它将不起作用、因为它将从 SysConfig 覆盖返回。

我尝试通过手动设置链接器文件来遵循此示例没有任何作用:  

Sections{

组:{

.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

也遵循此链接器页面:  

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

问题是如何更改 SysConfig 以满足3MB 堆的要求(将其分配到 DDR4内存)?

谢谢、

Huynh

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Huynh:

    Unknown 说:
    问题是如何更改 SysConfig 以满足3MB 堆(将其分配到 DDR4内存)?

    1.选择名为的选项 部分 指定 example.syscfg 添加到工程。

    2.转到要拆分的内存部分。(在本例中为堆栈)。

    3.启用 拆分存储器 选项。

    4.根据优先级或顺序添加内存。

    请参阅下图。

    希望上述方法有所帮助。

    此致、

    Tushar