cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L431 STM32CubeMx FreeRTOS impossible to add software timer

MLe M.1
Associate II

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
STTwo-32
ST Employee

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.

View solution in original post

1 REPLY 1
STTwo-32
ST Employee

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.