I’m using Freertos and faced a problem using HAL_Delay Function from ST HAL library.
If the HAL_Delay calls before the xTaskCreate function everything seems OK, However calling it after xTaskCreate function (without starting the scheduler) causes the update tick interrupt of HAL functions doesn’t fire again, making the HAL_Delay function freeze.
Also it’s OK to uses the HAL_Delay function after starting the scheduler.
I’m using STM32L083RZ (Cortex M0+), TIM6 for HAL Tick interrupt and SYSTick for Freertos ticks, and the code generated by CUBEMX.
HAL_Delay(100) / *Every things is OK */
HAL_Delay(100) / *Execution freezes here, HAL ticks interrupts doesn’t fire again */
vTaskStartScheduler() /After starting the Scheduler, It’s possible to use the HAL_Delay/