Other Parts Discussed in Thread: HALCOGEN
I am having an issue retaining FEE data after a power cycle.
I can write to FEE and read it back even after a System Reset in CCS, but if I power cycle my board then I lose data.
I have my Virtual Sectors configured to use two Flash sectors because I'm saving 16K+ of data.
After a power cycle, I was getting an Error_TwoActiveVS error with TI_Fww_u32ActCpyVS = 3 during TI_Fee_Init. Based on the FEE User's Guide section about error recovery I added code so my init now looks like this:
TI_Fee_Init(); if(TI_Fee_GlobalVariables[0].Fee_Error == Error_TwoActiveVS) { TI_Fee_ErrorRecovery(Error_TwoActiveVS, 2); } do { TI_Fee_MainFunction(); FEE_status=TI_Fee_GetStatus(0); } while(FEE_status != IDLE);
Is TI_Fee_ErrorRecovery arbitrarily wiping out VS 2 (because I give it the parameter "2" instead of "1") even though there may be data there? Is there a smarter way for me to perform TI_Fee_ErrorRecovery (i.e. can I tell where my data actually is and set that to the active sector)?
Is there something in my configuration that could cause the Error_TwoActiveVS that I can take care of and not have to rely on TI_Fee_ErrorRecovery at all?
CCS Version: 6.1.1.00022
Halcogen Version: 04.05.01