Skip to main content
MLe M.1
Associate II
October 1, 2024
Solved

STM32L431 STM32CubeMx FreeRTOS impossible to add software timer

Hello,

I would like to use software timers with FreeRTOS but the Add button is disable. The others button (add semaphore, mutexes, Events, ..) are all available...

The target is STM32L431.

FreeRTOS_timers.JPG

Do you have any suggestion?

Best regards

Mich

 

This topic has been closed for replies.
STTwo-32
STTwo-32Best answer
ST Technical Moderator
October 1, 2024

Hello @MLe M.1 

Could you please try to put the cursor on the Add button. It should show a message that explain why this is disabled. For your case, you need to set the USE_TIMERS to Enabled on the Config parameters.

PS: This parameter is automatically set to 1 will:

  • CMSIS_RTOS_V2 is used (constraint due to current cmsis_os2.c file in FW packs)
  • xTaskGetSchedulerState equals to 0 (Disabled)
  • xTimerPendFunctionCall equals to 1 (Enabled)
  • xEventGroupSetBitFromISR equals to 1 (Enabled).

 

Best Regards.

STTwo-32 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

1 reply

STTwo-32
STTwo-32Best answer
ST Technical Moderator
October 1, 2024

Hello @MLe M.1 

Could you please try to put the cursor on the Add button. It should show a message that explain why this is disabled. For your case, you need to set the USE_TIMERS to Enabled on the Config parameters.

PS: This parameter is automatically set to 1 will:

  • CMSIS_RTOS_V2 is used (constraint due to current cmsis_os2.c file in FW packs)
  • xTaskGetSchedulerState equals to 0 (Disabled)
  • xTimerPendFunctionCall equals to 1 (Enabled)
  • xEventGroupSetBitFromISR equals to 1 (Enabled).

 

Best Regards.

STTwo-32 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.