After creation of a FreeRTOS mutex, the HAL Tick timer is not increasing anymore. I use STM32CubeIDE 1.11.2 as IDE and CubeMX 6.7.0 as code generator, test platform Nucleo-F767ZI.
Reproductibility :
- New STM32 Project in STM32CubeIDE, everything by default
- Open the ioc file in MX perspective, add FreeRTOS support with CMSIS_V2 interface
- In main.c, after
osKernelInitialize()
, add
osMutexId_t mutex = osMutexNew(0);
HAL_Delay(100);
Result : this code should stay stuck in HAL_Delay()
.
SysTick_Handler
is never called anymore, HAL_GetTick()
always retrun the same value (10 in my case).
I tried with CMSIS as well as FreeRTOS mutex functions, result is the same. I tried changing the time base for SysTick, same. I tried with another Nucleo, same.
What did I miss?