Hi,
I have a problem with the scheduler and i am new with freeRTOS. It have a good fonctionnement with all other task but when it comes to active the lowest priority task, when the task is finish, it restarts at the beginning of this task infinitly. It loop.
Can you explain me why?
Thank for any explication
Creation of My Lowest Task :
xTaskCreate( TaskLog,”TaskLog”, configMINIMAL
STACKSIZE,NULL ,tskIDLE_PRIORITY + 2, NULL );
Definition of My Task:
static void TaskLog (void * pvParameters)
{
TickType_t xLastWakeTime;
const TickType_t xFrequency = 80;
FRESULT rc;
xLastWakeTime = xTaskGetTickCount();
for(;;)
{
vTaskDelayUntil( &xLastWakeTime, xFrequency );
f_mount(0, &fatfsLOG);
rc = f_open(&filLOG, FileNameSdCard, FA_WRITE | FA_OPEN_ALWAYS);
WriteSdCardFile(RTC_DateStructure,RTC_TimeStructure,sec_frac,GPSData_Wk,IMU1Data_Wk,IMU2Data_Wk);
DisableInterrupts();
f_close(&filLOG);
f_mount(0, NULL);
WriteBauderatefile();
DisableInterrupts();
}
}