主题中讨论的其他器件:MSPM0G3519、 SysConfig
工具/软件:
使用超过 64k 时 SRAM 存储器似乎耗尽。
我是否需要做一些特别的事情来使用两个银行?
它们是否相邻?
GCC 取代。
此致
Phil
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.
工具/软件:
使用超过 64k 时 SRAM 存储器似乎耗尽。
我是否需要做一些特别的事情来使用两个银行?
它们是否相邻?
GCC 取代。
此致
Phil
mspm0g3519.cmd 的顶部显示:
/* * Note: SRAM on this device is continuous memory but partitioned in the * linker into two separate sections. This is to account for the upper 64kB * of SRAM being wiped out upon the device entering any low-power mode * stronger than SLEEP. Thus, it is up to the end-user to enable SRAM_BANK1 for * applications where the memory is considered lost outside of RUN and SLEEP Modes. */
如果您不打算使用低功耗模式、我想您可以合并两个组(将 SRAM_BANK0 的大小加倍、删除 SRAM_BANK1)。 否则、您可能必须将任何“消耗性“变量放在单独的部分、然后将它们“>SRAM_BANK1"。“。
我在“C:\ti\ccs2001\ccs\ccs_base\arm\include“中找到了 mspm0g3519.cmd。 过去、CCS 会 在您的工程中放置此内容的副本、但如果您使用 SysConfig、则会生成“device_linker.lds"(“(在(在“Generated Source“中)。
要对此进行编辑:
1) 将 device_linker.lds 复制到源目录(上一级)。
2) 关闭“Project Configuration Files->Linker File Generation“。 [下一个构建将删除.lds 文件、因此需要执行步骤 (1)。]
3) 我预计实际变化如下:
【之前:】
SRAM_BANK0 (RWX) : ORIGIN = 0x20200000, LENGTH = 0x00010000 SRAM_BANK1 (RWX) : ORIGIN = 0x20210000, LENGTH = 0x00010000
【之后:】
SRAM_BANK0 (RWX) : ORIGIN = 0x20200000, LENGTH = 0x00020000
我只是尝试了这个,它建立了。 我没有 G3519 可以运行它。