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.

CCS/TMS570LS1227: FEE Data lost after power cycle

Part Number: TMS570LS1227

Tool/software: Code Composer Studio

Dear team,

My customer wants to use FEE to read/write data. 

void eeprom_test(uint8_t offset)
{
 uint8_t testData[8];
 uint8_t readData[8];
 int32_t index;
 int32_t cycle=0;
 uint32_t eep_delay_cnt=0;
 Std_ReturnType oResult=E_NOT_OK;
 uint16 Status;

 
  do
  {
   TI_Fee_MainFunction();
   eep_delay();
   Status=TI_Fee_GetStatus(0);
   eep_delay_cnt++;
  }
  while(Status!=IDLE);
  TI_Fee_Read(1,0,readData,8);
  do
  {
   TI_Fee_MainFunction();
   eep_delay();
   Status=TI_Fee_GetStatus(0);
   eep_delay_cnt++;
  }while(Status!=IDLE);
  offset++;                                         //break1*******************
  for(index=0;index<8;index++)
  {
   testData[index] = index+offset;
  }
  TI_Fee_WriteAsync(1, testData);
  do
  {
   TI_Fee_MainFunction();
   eep_delay();
   Status=TI_Fee_GetStatus(0);
  }
  while(Status!=IDLE);
  TI_Fee_WriteSync(1, testData);
  /* Read the block with unknown length */
  do
  {
   TI_Fee_MainFunction();
   eep_delay();
   Status=TI_Fee_GetStatus(0);
   eep_delay_cnt++;
  }
  while(Status!=IDLE);
  TI_Fee_Read(1,0,readData,8);
  do
  {
   TI_Fee_MainFunction();
   eep_delay();
   Status=TI_Fee_GetStatus(0);
   eep_delay_cnt++;
  }while(Status!=IDLE);
}   ///break2*********************************

Set breakpoints at break1 and break2 in the program, and he can see that the read data (readData) is consistent with the written data. Data can be read normally at break1 when restart.

But if the program is reloaded, no data can be read at break1.

Please help to check it.

1 After performing read and write operations, you can see that the address near 0xf0200000 has indeed written data

2 After restart, No change

3  click stop the click debug,memory browser is ALL  FF