cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX and FreeRTOS : USE_RTOS set to 0 ???

gillou
Associate
Posted on July 29, 2016 at 16:10

We use CubeMX .

We have selected ''FreeRTOS''

In the file ''stm32l4xx_hal_conf.h''  ''USE_RTOS'' is set to 0.

See the following line:

&sharpdefine  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.

&sharpif (USE_RTOS == 1)

  /* Reserved for future use */

  &sharperror '' USE_RTOS should be 0 in the current HAL release ''

&sharpelse

...

#hal #cubemx #freertos
0 REPLIES 0