vTaskDelayUntil on 16bit Microchip dsPIC33EV128GM104 doesn’t work with 16bit ticks
Hi,
the code I use is based on the example code reduced to the minimum:
2 tasks that make 2 LEDs blink. The task using vTaskDelay(100) works as expected
but the task using vTaskDelayUntil( &xLastWakeTime, xDelayMyTaskms) shows
an unpredictable behaviour with 16bit ticks. With 32bit ticks also vTaskDelayUntil
works on my system.
The last time I used FreeRTOS on a similar uC before was with FreeRTOS7.x
and i believe that it worked that days. But FreeRTOS tasks.c changed a lot in between.
Did anyone else try the 16bit ticks with FreeRTOS9 on a 16bit uC?
Hardware:
Microchip dsPIC33EV128GM104
Software:
MPLAB X IDE v3.30
XC16 (v1.26) compiler
FreeRTOS 9.0
FreeRTOSConfig.h
~~~
vTaskDelayUntil on 16bit Microchip dsPIC33EV128GM104 doesn’t work with 16bit ticks
For some reason my reply to your post created a new thread, rather than replying here. This was my reply:
Can you confirm that:
1) Your configTICKRATEHZ value is valid for using with pdMSTOTICKS
(it is 1000 or less).
2) The calculation pdMSTOTICKS( 100 ) gives the expected value in both
cases, and is not over/under flowing in one case.