2018-04-03 02:08 AM
We have project in which FreeRTOS code is generated using CubeMx. I see syntax is little different from documentation on FreeRTOS site.
How can I terminate and restart a particular task?
Main objective is
Want to know how to restarting a task in FreeRTOS code generated from CubeMx
Majerle.Tilen.001
‌Can you please help in this regard ?
#task #restart #freertos+hal #terminate #tasksSolved! Go to Solution.
2018-04-05 12:44 PM
STM32Cube adds additional layer of function for CMSIS OS compliancy (
http://www.keil.com/pack/doc/CMSIS/RTOS/html/index.html
). You can check there for FreeRTOS functions.To terminate thread, use osThreadTerminate function and to start new thread, use osThreadCreate.
In case you enter hardfault, the best is to restart your system as if your CPU jumped to unknown memory location (in terms of instructions), you might have hard time to recover it to the right instruction and stack pointer.
2018-04-05 12:44 PM
STM32Cube adds additional layer of function for CMSIS OS compliancy (
http://www.keil.com/pack/doc/CMSIS/RTOS/html/index.html
). You can check there for FreeRTOS functions.To terminate thread, use osThreadTerminate function and to start new thread, use osThreadCreate.
In case you enter hardfault, the best is to restart your system as if your CPU jumped to unknown memory location (in terms of instructions), you might have hard time to recover it to the right instruction and stack pointer.
2024-10-14 08:44 PM - edited 2024-10-14 08:45 PM
I have tried terminating and creating the same thread using osThreadTerminate and osThreadNew, but i am entering into hardfault.
Is there any method to recover it to the right instruction and stack pointer.