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.

在线等---TMS570LS1227 FEE读写数据,重新上电后数据丢失

Other Parts Discussed in Thread: UNIFLASH
下面这段代码是我仿照例程写的FEE测试程序,程序运行后,
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*********************************
在程序中的break1和break2处设置断点,能查看到读取出来的数据(readData)与写入的数据一致,restart运行时,再break1处可以正常读取出数据,
但是如果重新load程序时,再break1处读取不到数据。
请问这是什么情况?急急急。。。。在线等。谢谢!!!