Hi all,
We are having an issue with using the Flash API on the TMS570LS1227 MCU. While we have tried a number of approaches and Flash commands, the simplest thing that we cannot seem to get working is to erase bank 7, which on this chip is an emulated EEPROM bank.
Strangely, we are able to successfully erase bank 7 if we do not invoke memoryInit during startup, so this doesn’t appear to be a straightforward problem of misusing the API (memoryInit is a routine from HALCoGen that causes the RAM hardware to initialize itself). We also run the PBIST module on RAM before that, along with activating ECC for both RAM and Flash. But we are unable to determine what affect invoking memoryInit is having on the Flash controller, or on the memory space that might indirectly cause this problem. Otherwise it appears that everything else in our app is running perfectly. The Flash API functions report Fapi_Status_Success, but both EV and CSTAT bits of the FMSTAT register are set after attempting the bank erase (they should both be 0). We aren’t seeing any other indication of a problem (other than the data remains in the bank after issuing the Fapi_EraseBank command).
I greatly appreciate any assistance. Thanks in advance.
Regards,
David