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.

FEE与FreeRTOS集成问题

Other Parts Discussed in Thread: HALCOGEN

TMS570LC43x 使用HalCoGen配置,使用FreeRTOS的操作系统,使能FEE之后,执行周期的读写操作,每1秒执行一次写入操作,程序运行进入到:

dataEntry  b dataEntry

但是如果不使用FreeRTOS这种现象没有出现,task结构如下:

void vTask1(void *pvParameters)
{
   static int count = 0;
   for(;;)
   {
       /*
       * read data operation
* */
oResult=TI_Fee_Read(BlockNumber,BlockOffset,Read_Ptr,Length);
do
{
     TI_Fee_MainFunction();
     delay();
      Status=TI_Fee_GetStatus(0);
} while(Status!=IDLE);

count++;

if(count>=100)
{
count = 0;

for(loop=2;loop<256;loop++)
       SpecialRamBlock[loop]++;

TI_Fee_WriteAsync(BlockNumber, &SpecialRamBlock[0]);
do
{
     TI_Fee_MainFunction();
     delay();
     Status=TI_Fee_GetStatus(0);
} while(Status!=IDLE);
/* Write the block into EEP Synchronously. Write will not happen since data is same. */
}
vTaskDelay(10);
}

}/* USER CODE END */