1.就像参数定义时使用下面语句
const unsigned char Flash_user_data[16] __attribute__((at(0X08080000))) =
{
0x01,0x02,0x03,0x04,
0x01,0x01,0x03,0x03,
0x04,0x04,0x04,0x04,
0x05,0x05,0x01,0x04
};
2.写入以后读取
int flash_addr; //存取地址的时候使用
unsigned char flash_data_char; //字节形式读取一个字节
unsigned int flash_data_int; //int形式读取一个字节
应用:
flash_addr =0X08080000;
flash_data_char = *(unsigned char *)flash_addr;
flash_data_int = *(unsigned int *)flash_addr;