SPRADE8B November 2023 – August 2025 F29H850TU , F29H859TU-Q1 , TMS320F28P650DH , TMS320F28P650DK , TMS320F28P650SH , TMS320F28P650SK , TMS320F28P659DH-Q1 , TMS320F28P659DK-Q1 , TMS320F28P659SH-Q1
The ClearFSMStatus() function is responsible for clearing the status of the previous flash operation. This function is applicable for F280013x, F280015x, F28P65x, F28P55x and F28E12x devices. This function must be used as-is.
Fapi_FlashStatusType oFlashStatus;
Fapi_StatusType oReturnCheck;
// Wait until FSM is done with the previous flash operation
while (Fapi_checkFsmForReady() != Fapi_Status_FsmReady){}
oFlashStatus = Fapi_getFsmStatus();
if(oFlashStatus != 0)
{
/* Clear the Status register */
oReturnCheck = Fapi_issueAsyncCommand(Fapi_ClearStatus);
// Wait until status is cleared
while (Fapi_getFsmStatus() != 0) {}
if(oReturnCheck != Fapi_Status_Success)
{
// Check Flash API documentation for possible errors
Sample_Error();
}
}