AnsweredAssumed Answered

FreeRTOS and HAL driver timeout issue

Question asked by yvraut.gerard on Nov 21, 2014
Latest reply on Jul 29, 2015 by shangdawei
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.