Other Parts Discussed in Thread: C2000WARE
//cmd文件声明 :
FLASH_BANK0_SEC8 : origin = 0x088000, length = 0x001000 /* on-chip Flash */
FlashScopeRegsFile : > FLASH_BANK0_SEC8, type=NOINIT
//数据段与结构体声明
#pragma DATA_SECTION(scopeRegs,"FlashScopeRegsFile");
volatile FlashScopeRegs_S scopeRegs;
typedef struct FlashScopeRegs_S
{
//存储的标定值
CalibDataXYZW_S calib;
CHAR brightness;
LONG_INT temperature;
}FlashScopeRegs_S;
FlashScopeRegs_S a;
a.temperature = 37; 写完后值还是-1,FLASH没有成功