Skip to main content
gillou
Visitor II
July 29, 2016
Question

CubeMX and FreeRTOS : USE_RTOS set to 0 ???

  • July 29, 2016
  • 0 replies
  • 756 views
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
This topic has been closed for replies.