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.

Flash2812_API_V210函数烧写内部FLASH成功,但掉电丢失



Flash_Erase((SECTORB|SECTORC|SECTORE),&EraseStatus);
for(i=0;i<0x400;i++)
{
Buffer[i] = 0x8000+i;
}Flash_ptr = (Uint16 *)0x003E8000;

Length = 0x400;
Status = Flash_Program(Flash_ptr,Buffer,Length,&ProgStatus);
if(Status != STATUS_SUCCESS)
{
Example_Error(Status);
}
Status = Flash_Verify(Flash_ptr,Buffer,Length,&VerifyStatus);
if(Status != STATUS_SUCCESS)
{
Example_Error(Status);
}

while(1);//在此处断点通过view->memory 查看0x003E8000开始的地址下数据已经修改为0x8000,0x8001...

断开仿真器断电,再上电memory 数据全部变成0XFFFF (仿真器为SEED-XDS510-PLUS )

问题:内部FLASH为什么会掉电丢失?要如何让他掉电不丢失?

附图: