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.

f28335 FLASH_API例程中的Flash_Program不成功

我运行了以下程序段,Status返回0(STATUS_SUCCESS),但是查看map文件,并没有将程序写入FLASHB中,请问是为什么?

for(i=0;i<WORDS_IN_FLASH_BUFFER;i++)
{
Buffer[i] = 0x100+i;
}

Flash_ptr = Sector[1].StartAddr;
Length = 0x400;
Status = Flash_Program(Flash_ptr,Buffer,Length,&FlashStatus);
if(Status != STATUS_SUCCESS)
{
Example_Error(Status);
}

map文件中:

name                origin length    used      unused     attr           fill
----------------------  --------------    ------------   -------------   ---------     --------

  FLASHB         00330000   00008000  00000000  00008000  RWIX