AnsweredAssumed Answered

CubeMX and FreeRTOS : USE_RTOS set to 0 ???

Question asked by peltier.gilles on Jul 29, 2016
We use CubeMX .
We have selected "FreeRTOS"
In the file "stm32l4xx_hal_conf.h"  "USE_RTOS" is set to 0.
See the following line:
#define  USE_RTOS                     0U 

It seems strange .
the goal was to modify the __HAL_LOCK macro in the file "stm32l4xx_hal_def.h", in order to enter critical section , when freertos used.

#if (USE_RTOS == 1)
  /* Reserved for future use */
  #error " USE_RTOS should be 0 in the current HAL release "