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.

TMS320F280049C: flash写入到0x098000这个扇区的时候 Fapi_getFsmStatus 返回30

Part Number: TMS320F280049C

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
oReturnCheck = Fapi_issueProgrammingCommand((uint32 *)u32Index,
Buffer+(i>>1),
8,
0,
0,
Fapi_AutoEccGeneration);
// Wait until the Flash program operation is over
while(Fapi_checkFsmForReady() == Fapi_Status_FsmBusy);
if(oReturnCheck != Fapi_Status_Success)
{
// Check Flash API documentation for possible errors
//Example_Error(oReturnCheck);
return FLASH_STATUS_FAIL;
}
// Read FMSTAT register contents to know the status of FSM after
// program command to see if there are any program operation related errors
oFlashStatus = Fapi_getFsmStatus();
if(oFlashStatus != 0)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Fapi_getFsmStatus 返回 30状态码。这个状态码对应的是手册中如下内容:

请问引起这个问题的原因有哪些。