This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
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
Hi Nathan,
Can you please share your FEE configuration files?
Have you tried the example that comes with HALCoGen,
You might want to edit that example to stop after write, Read operation, because the tests after will Invalidate and Format. Comment out following code...
/* Invalidate a written block */
TI_Fee_InvalidateBlock(BlockNumber);
do
{
TI_Fee_MainFunction();
delay();
Status=TI_Fee_GetStatus(0);
}
while(Status!=IDLE);
/* Format bank 7 */
TI_Fee_Format(0xA5A5A5A5U);
Try if that works after power cycle with out fail?