Tool/software:
-
After a few minutes of code execution, the task synchronized by timer1, which should start the "main" task every 1ms, freezes, remains inactive for about 60 seconds, and then restarts, or
-
the task continues to run, but instead of being executed every 1ms, it's executed every 10/12ms... it almost seems like the CPU is "overloaded".interrupt and task priority are:
timer1_INTpriority 40uart0_INTpriority 250EPWM0_ET_INTpriority 30timer2_INTpriority 255 (used by FreeRTOS)- FreeRTOS
ZCD_TASKpriority 5 (static, stack size 512) - FreeRTOS
MAIN_TASKpriority 5 (static, stack size 1024) - FreeRTOS
UART_DBG_TASKpriority 4 (static, stack size 512)
-
If, instead of executing notifications from ISRs, I execute the "main" task from RTOS using vTaskDelay and, still from the main task, notify the 20ms task when it needs to be executed; in this case, everything works correctly.
Any idea or suggestion?
thanks