Part Number: TMS570LC4357
Team,
Trying to assist our customer in determining why they are getting the prefetchEntry exception as follows:
(First, realize the purpose of executing the F021 library from SRAM is to allow flashing sectors in Bank 0; they will prevent erasing/writing to flash memory addresses in sectors where the boot-loader resides. Otherwise the usable (by application) flash memory is cut in half.)
The following line is where the porefetchEntry interrupt occurs; arguments:
Fapi_EraseSector = 0x0006
current_sector_start_address = 0x00100000 (sector 12, Bank 0)
fapi_status = Fapi_issueAsyncCommandWithAddress(Fapi_EraseSector,
(uint32_t *)current_sector_start_address);
Screenshot after pausing execution when development board seems to lock up stepping over issueAsyncCommandWithAddress();
The flash API (F021 library) has been moved to SRAM; more specifically Fapi_issueAsyncCommandWithAddress() is at 0x08001F94.
Calling Fapi_issueAsyncCommandWithAddress() with the following arguments works fine:
Fapi_EraseSector = 0x0006
current_sector_start_address = 0x00200000 (sector 0, Bank 1)
Any input welcomed.
TY,
CY

