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)

Комментарии • 27

  • @colormaker5070
    @colormaker5070 Год назад +10

    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.

  • @balachandarjeyalatha868
    @balachandarjeyalatha868 Год назад +2

    Best lecture on free rtos please continue the series of free rtos.Thanks for making 🎉

  • @ultrameganoob6979
    @ultrameganoob6979 Год назад +3

    I can't thank this guy enough!

  • @marcynarcy
    @marcynarcy 6 месяцев назад

    This guy is a legend, its explained very well

  • @axramar1992
    @axramar1992 8 месяцев назад +1

    Very Good tutorial💫

  • @mr.moonlight3000
    @mr.moonlight3000 2 года назад

    This was very Helpful Sir. THANKS A LOT for this Explanation

  • @eamonhannon1103
    @eamonhannon1103 3 года назад

    Good . Very clear presentation

  • @gabrielpimentelgomes3195
    @gabrielpimentelgomes3195 3 года назад

    Very well explained.

  • @amrtcpp6203
    @amrtcpp6203 8 месяцев назад

    thanks

  • @handlewithoutsuitcase
    @handlewithoutsuitcase Год назад

    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?

  • @portillajoe
    @portillajoe 2 года назад

    Where can I learn more about freertos with arduino? any book you would recommend?

  • @Roudter
    @Roudter Год назад

    Really good, helpful and direct. Just great. Thanks!

  • @edwintjoa6099
    @edwintjoa6099 3 года назад +2

    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.

    • @je9503
      @je9503 2 года назад

      Thank you so much! This probably saved me a few hours :D

  • @madcow3417
    @madcow3417 2 года назад

    Shouldn't vTaskSuspendAll suspend the task that called it (superImportantTask), or is there an automatic exemption for the calling task?

  • @TamPham-oj4os
    @TamPham-oj4os 3 года назад

    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

  • @surflaweb
    @surflaweb 3 года назад

    Thanks bro.

  • @ismailsapmaz381
    @ismailsapmaz381 2 года назад

    thank you sir

  • @uyennguyenngocphuong2826
    @uyennguyenngocphuong2826 3 года назад

    so useful

  • @MPElectronique
    @MPElectronique 3 года назад

    VERY GOOD THANKS!!! :))

  • @ahmadsadiq40
    @ahmadsadiq40 2 года назад

    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?

  • @MaxKlax
    @MaxKlax 3 года назад

    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

  • @redmundperrz7234
    @redmundperrz7234 Год назад

    Can RTOS run on 8bit MCU?

  • @kayakMike1000
    @kayakMike1000 2 года назад

    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...?

  • @marquezchris2210
    @marquezchris2210 3 года назад

    DFRobot FireBeetle ESP32 IoT Microcontroller (Supports Wi-Fi & Bluetooth)