Other Parts Discussed in Thread: TMS570LC4357
Tool/software: Code Composer Studio
Hi,
I am trying to erase a flash memory sector in TMS570LS1224
(Hercules LaunchPad) with use of the library F021 v2.1.1.
1) Fapi_initializeFlashBanks(180);
2) Fapi_setActiveFlashBank(0);
3) Fapi_enableMainBankSectors(0xFF80);
4) wait for not busy
5) Fapi_issueAsyncCommandWithAddress(Fapi_EraseSector, (uint32_t*)0x20000);
6) wait for not busy
7) wait for success
In step 6) the program loops forever. The value of the register FMSTAT after
a time is equal to 0x0990. It is strange, because the bit 0x0800 is described
in spnu515b.pdf as Reserved R-0, and reads as 1. Other bits set are: CSTAT,
ERS, and BUSY.
Programming of the flash memory with use of F021 functions runs correctly.
The sectors erasing during programming a program from CCS also runs fine.
The procedure above runs from RAM with disabled interrupts.
Please help. Maybe I should do something before running the procedure
for sector erasing.
Thanks.