如题:想保存几个数据在FLASH里面,但数据写进去再读出为0,为何?
FLASH_Unlock(); //½âËø
FLASH_ClearFlag(FLASH_FLAG_EOP);
write_state = FLASH_ErasePage(0x80026800); //²Á³ýÕûÒ³
status = FLASH_ProgramHalfWord(0x80026800,dat);
status = FLASH_ProgramHalfWord(0x80026804,dat);
status = FLASH_ProgramHalfWord(0x80026808,dat);
status = FLASH_ProgramHalfWord(0x8002680c,dat);
Flash_rd_dat_32bit(0x80026800,fla_buf_32,8); //¶ÁÈ¡¸ÕдÈëµÄÊý¾Ý
|