Skip to main content
ksale.1
Senior II
Jul 29, 2022 9:45 AM UTC
Solved

How can I suspend/kill a freertos task after running once?

..

This topic has been closed for replies.
Artur IWANICKIBest answer
ST Employee
Jul 29, 2022 12:00 PM UTC

Hello,

In case you are using CMSIS_OS you can refer to example code within "FreeRTOS on STM32 v2" MOOC:

https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/freertos-common-microcontroller-software-interface-standard-osv2.html

Parts 12g and 12h

2 replies

KnarfB
Super User
Jul 29, 2022 11:55 AM UTC

call vTaskSuspend() https://www.freertos.org/a00130.html at the end? vTaskDelete ?

hth

KnarfB

Artur IWANICKIBest answer
ST Employee
Jul 29, 2022 12:00 PM UTC

Hello,

In case you are using CMSIS_OS you can refer to example code within "FreeRTOS on STM32 v2" MOOC:

https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/freertos-common-microcontroller-software-interface-standard-osv2.html

Parts 12g and 12h