SPRADL4 January 2025 F29H850TU , F29H859TU-Q1
The ClearFSMStatus() function is responsible for clearing the status of the previous flash operation.
Fapi_FlashStatusType oFlashStatus;
Fapi_StatusType oReturnCheck;
while (Fapi_checkFsmForReady(u32StartAddress, u32UserFlashConfig) != Fapi_Status_FsmReady){}
oFlashStatus = Fapi_getFsmStatus(u32StartAddress, u32UserFlashConfig);
oReturnCheck = Fapi_issueAsyncCommand(u32StartAddress, u32UserFlashConfig, Fapi_ClearStatus);
while (Fapi_getFsmStatus(u32StartAddress, u32UserFlashConfig) != 0);
if(oReturnCheck != Fapi_Status_Success)
{
Sample_Error();
}