-------cmd指令-----------------------------
.tired : > FLASHB PAGE = 1
-----------主函数开头方式-------------------
#pragma DATA_SECTION(tiredata1,".tired");
const int tiredata1[1000]={5255,55525};
1. 在cmd中开辟一段内存区
MEMORY
{
PAGE 1: spacename : origin = 0x...., length 0x..
}
SECTIONS
{
.my_sect : {} >spacename PAGE 1
}
2. 在.c中定义数组变量
#pragma DATA_SECTION(a, "my_sect ")
int a[]=
{
........
};