Question
FreeRTOS and HAL driver timeout issue
Posted on November 21, 2014 at 19:54
Hello,
in xPortStartScheduler routine, the systick priority is forced to /* Make PendSV and SysTick the lowest priority interrupts. */ Some HAL interrupt drivers implement a time out based upon systick value. With systick priority set to lowest priority the HAL driver hangs instead of timing out. There is a need to either change the systick priority (but this is not straightforward since RTOS make assumption of systick interrupt priority) or change the HAL handling of timeout while under interrupt by allowing the time tick to increment when reading its value.