I am trying to get the bootloader (spna193) operational. I debugged and I think that the problem is with the F021 API.
During erase (or write) operation API loops forever at while(FAPI_GET_FSM_STATUS != Fapi_Status_Success);
Using F021 Flash API. Version: v2.00.01 Build(000824); I tried 'erase code flow' given in SPNU501E , but again code loops at while(FAPI_GET_FSM_STATUS != Fapi_Status_Success);
Below is the code block I try to check if API is OK, however it loops while(FAPI_GET_FSM_STATUS != Fapi_Status_Success);
May you please advise ? Thank you.
-------------------------------------------------
Fapi_initializeFlashBanks(80);
Fapi_setActiveFlashBank(0);
Fapi_enableMainBankSectors(0xFF);
while( FAPI_CHECK_FSM_READY_BUSY == Fapi_Status_FsmBusy );
Fapi_issueAsyncCommandWithAddress(0,0x20000);
while( FAPI_CHECK_FSM_READY_BUSY == Fapi_Status_FsmBusy);
while(FAPI_GET_FSM_STATUS != Fapi_Status_Success);
---------------------------------------------------------------------------