Other Parts Discussed in Thread: HALCOGEN
Hi,
Whenever i tried to erase flash of TMS570LS0432, it is going to svcEntry and halting there.
I am erasing bank 0, sector 13 and 14 with start address 0x00020000 and length 0x00040000
Execution going to svcEntry at Fapi_issueAsyncCommandWithAddress function, kindly suggest any solution.
Code used is below for your reference:
status=Fapi_initializeFlashBanks((uint32_t)SYS_CLK_FREQ); /* used for API Rev2.01 */
for (i = ucStartBank; i < (ucEndBank + 1); i++){
Fapi_setActiveFlashBank((Fapi_FlashBankType)i);
Fapi_enableMainBankSectors(0xFFFF); /* used for API 2.01*/
while( FAPI_CHECK_FSM_READY_BUSY != Fapi_Status_FsmReady );
}
for (i=ucStartSector; i<(ucEndSector+1); i++){
Fapi_issueAsyncCommandWithAddress(Fapi_EraseSector, flash_sector[i].start);
while( FAPI_CHECK_FSM_READY_BUSY == Fapi_Status_FsmBusy );
while(FAPI_GET_FSM_STATUS != Fapi_Status_Success);
}