Manage FreeRTOS tasks - Suspend, Delay, Resume, Delete (ESP32 + Arduino series)
HTML-код
- Опубликовано: 9 фев 2025
- Once you have FreeRTOS tasks running, you might want to manage them. The scheduler can stop, suspend, and resume individual tasks. You can control tasks from within or you can use task handles to control them from anywhere in your code.
⚡️Other videos in this series:
• ESP32 + Arduino
(Everything you need to know about programming the ESP32 by using the Arduino Framework)
🌍 Social
Twitter: / savjee
Facebook: / savjee
Blog: savjee.be
❤️ Become a Simply Explained member: / @simplyexplained
💌 Newsletter: newsletter.savj...
(no more than once a month)
Video is 2 years old and still helping the maker community. I have searched for hours on task examples and yours was exactly what I needed. The suspend and resumed gave me the “one shot” trigger option I needed.
Glad I could help!
Best lecture on free rtos please continue the series of free rtos.Thanks for making 🎉
I can't thank this guy enough!
This guy is a legend, its explained very well
Very Good tutorial💫
This was very Helpful Sir. THANKS A LOT for this Explanation
Good . Very clear presentation
Very well explained.
thanks
Thanks for this lesson! I just missed one thing - who is managing the value of task1_handle? You provided the pointer to the handle to the Scheduler - does that mean he does change it’s value according to the current Scheduler’s settings?
Where can I learn more about freertos with arduino? any book you would recommend?
Really good, helpful and direct. Just great. Thanks!
Thanks for the video. May I suggest to use count1 == 3 instead of count1 > 3 as it might give weird results after the task 1 is resumed.
Thank you so much! This probably saved me a few hours :D
Shouldn't vTaskSuspendAll suspend the task that called it (superImportantTask), or is there an automatic exemption for the calling task?
Create new task and delete it when not in use or suspend and resume when I need it. Which one is the best choice ?? Thanks
Thanks bro.
thank you sir
so useful
VERY GOOD THANKS!!! :))
Hello sir . I got many errros in vs code when i build the code. Freertos erros many time. Can you please help me to solve it?
When I resume the first task - it spools about 20 messages in a row with no delays at all.
When I'm deleting first task from main loop - I'm getting kernel panic. So be really careful with those tasks and handlers
Can RTOS run on 8bit MCU?
Yeah.... I dunno about this... Task handles to control other tasks... Why not just ask the operating system to stop the other task? Is that not a thing in freeRTOZ...?
DFRobot FireBeetle ESP32 IoT Microcontroller (Supports Wi-Fi & Bluetooth)