I use TMS570LC4357 and Fapi library test for boot loader.
I have a question about using Fapi_BlockErase in Fapi library.
The test sequence is as follows,
1. Erase First : oReturnCheck = Fapi_BlockErase( 0, APP_VERSIONUP_START_ADDR, MAXIMUM_FIRMWARE_SIZE);
2. Write Something : oReturnCheck = Fapi_BlockProgram( 0, APP_VERSIONUP_ADDRESS + size, (unsigned long)&data[0], length);
3. Re Erase Test : oReturnCheck = Fapi_BlockErase( 0, APP_VERSIONUP_START_ADDR, MAXIMUM_FIRMWARE_SIZE);
In number 3, the firmware is stop in "while( FAPI_CHECK_FSM_READY_BUSY == Fapi_Status_FsmBusy );" in Fapi_BlockErase function.
My questions are,
1. why the fimrware is stopped in Fapi_BlockErase function?
2. How I can re erase flash memory after write flash?
Regards,
Minwoo