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_kernel,在main函数中更改了下程序。更改如下:
CsmUnlock();
EALLOW;
Flash_CPUScaleFactor = SCALE_FACTOR;
Flash_CallbackPtr = 0;
EDIS;
status = Flash_Erase((SECTORB | SECTORC | SECTORD), &FlashStatus1);
if(status != STATUS_SUCCESS)
{
//TODO fix so that it returns a serial error and reboot device
i=20;
}
return SCI_Boot();
如果程序在RAM中运行,可以正常执行 Flash_Erase函数,返回0,但是如果在Flash中执行,程序会一直卡在 Flash_Erase函数中,不往下执行。
请问是什么回事?