Skip to main content
ksale.1
Senior II
July 29, 2022
Solved

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

  • July 29, 2022
  • 2 replies
  • 2925 views

..

This topic has been closed for replies.
Best answer by Artur IWANICKI

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
July 29, 2022

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

hth

KnarfB

ST Employee
July 29, 2022

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