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.

怎样把把一个数组放到指定的flash地址

怎样把把一个数组放到指定的flash地址?

#pragma DATA_SECTION(aa,".mydata");
_iq aa[2];

cmd:

MEMORY

{

PAGE 1 :   /* Data Memory */
        MYSPACE     : origin = 0x3F6100, length = 0x000002

}

SECTIONS:{

 .mydata             : {} > MYSPACE       PAGE = 1

}

我觉得这样没有问题,但是就是编译不过