Manage FreeRTOS tasks - Suspend, Delay, Resume, Delete (ESP32 + Arduino series)

Поделиться
HTML-код
  • Опубликовано: 9 мар 2021
  • 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.savjee.be
    (no more than once a month)
  • НаукаНаука

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

  • @colormaker5070
    @colormaker5070 10 месяцев назад +5

    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 3 месяца назад +1

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

  • @axramar7743
    @axramar7743 5 дней назад +1

    Very Good tutorial💫

  • @ultrameganoob6979
    @ultrameganoob6979 8 месяцев назад +2

    I can't thank this guy enough!

  • @mr.moonlight3000
    @mr.moonlight3000 Год назад

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

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

    Good . Very clear presentation

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

    Very well explained.

  • @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?

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

    VERY GOOD THANKS!!! :))

  • @edwintjoa6099
    @edwintjoa6099 2 года назад +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 Год назад

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

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

    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

  • @Roudter
    @Roudter 11 месяцев назад

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

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

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

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

    so useful

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

    Thanks bro.

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

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

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

    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

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

    thank you sir

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

    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?

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

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

    Can RTOS run on 8bit MCU?

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

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