Hello,
I am using Fapi for programming/reading/erasing Flash Banks 1 and 7 in TMS570 MCU and I observed that Fapi function: Fapi_initializeFlashBanks sometimes returns error. It seems that return value of the function depends not only on the input parameters.
I always call the function this way (for both Flash Bank 1 and Bank 7):
Fapi_initializeFlashBanks((uint32_t)150U);
It fails sometimes (with probability ~1%), usually when called for the first time after MCU startup.
Could someone point out what can be the reason of this behaviour?
Thank you.