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.

28035 Flash 如何映射到 data space



我想把自己的数据放到FlashB中,我是像这样写的!但是烧片子以后表中没有数据! 应该怎么配置呀!

PAGE 1 :   /* Data Memory */  

        FLASHB      : origin = 0x3F4000, length = 0x002000     /* on-chip FLASH */

SECTIONS

{

My_Data_Table              : > FLASHB      PAGE = 1

  • 自己的数据是指程序呢,还是变量或常量?

    通常采用的方法是要通过#pragma预编译指令将你定义的代码或数据指定到一个编号,然后再使用上面的方式进行映射。

    具体方法可以参考一下例程中的cmd文件对所有外设寄存器的处理方式。