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.

问一个编译时数据存放问题

我想在F28M35的C2000核中存放一个已初始化的数组,用了两种方法。

一种是直接在代码中定义该数组,编译后通过.map文件查看发现数据在.cint段内,在运行过程中被拷贝到RAM中。这种方法可行,但是同一段数据占用了两倍存储空间。

另一种是在代码中添加  " #pragma DATA_SECTION(a,'user_buf'); "  然后在cmd文件中把user_buf指定到flash中。这种方法编译烧写后我发现对应flash并没有被写入数据。请问还欠缺什么步骤么?