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.
您好、香榭丽舍
客户正在使用 LF2407A、并尝试从闪存中定义为"const"的表中读取数据。
但是、当使用 C 语言实现这一目标时、例如" a =表[索引]"、 发现"a"的值始终不变。
请提供帮助吗? 谢谢!
此致、
Linda
您好 Linda、
由于器件没有统一的存储器映射、因此在 C24x 上对闪存中常量的使用略有不同。 必须将.const 段加载到程序存储器(即闪存)中、然后在引导期间复制到数据存储器中、以便可以对其进行访问。 有一种实现这一目的的技术。 您可以在《C2x C 编译器用户指南》的第6.1.3章中找到:
http://www.ti.com/lit/ug/spru024e/spru024e.pdf
我认为这是问题所在。 如果没有、请发帖、我将尝试提供进一步的帮助。
此致、
Richard