Skip to main content
Explorer
October 1, 2024
Solved

STM32L431 STM32CubeMx FreeRTOS impossible to add software timer

  • October 1, 2024
  • 1 reply
  • 644 views

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.
    Best answer by STTwo-32

    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 

    1 reply

    STTwo-32Answer
    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