How to work with a Real Time Operating System and is it any good? (FreeRTOS, ESP32)

Spread the love



Using a real operating system to simplify programming with the Arduino IDE. Is this possible and how? Let’s have a closer look!
Operating systems were invented to simplify our lives. But, because they need a lot of resources, they only run on reasonable computers like the Raspberry Pi or a PC. Right? Wrong. Nowadays, we also get operating systems running on our small MCUs. Particularly interesting in this respect is the ESP32 because it has enough power and memory to accommodate such an additional burden. And the best: It already runs a version of FreeRTOS with all our Arduino sketches, and it is easier than you think. Is this useful?
I am a proud Patreon of @GreatScott!, @ElectroBOOM , @Electronoobs , @EEVblog , and others. No Docker, No Microsoft Teams, Zoom

Links:
FreeRTOS deep dive: https://youtu.be/F321087yYy4
Parallel tasks without RTOS: https://youtu.be/v8KXa5uRavg
ESP32 Dev. Board used for Prototyping: https://s.click.aliexpress.com/e/_ANHrBc
ESP32 Prog: https://s.click.aliexpress.com/e/_AougSs or https://amzn.to/3tjrsL4
Logic Analyzer 16ch (clone) : https://s.click.aliexpress.com/e/_9R3ZMZ
Logic Analyzer 8ch (clone) : https://s.click.aliexpress.com/e/_APm5bP

The links above usually are affiliate links that support the channel (no additional cost for you).
Supporting Material and Blog Page: http://www.sensorsiot.org
Github: https://www.github.com/sensorsiot
My Patreon Page: https://www.patreon.com/AndreasSpiess
Discord: https://discord.gg/JfgDSa8
If you want to support the channel, please use the links below to start your shopping. No additional charges for you, but I get a commission of your purchases to buy new stuff for the channel
My Amazon.com shop: https://www.amazon.com/shop/andreasspiess
For Banggood https://bit.ly/2jAQEf4
For AliExpress: http://bit.ly/2B0yTLL
For Amazon.de: http://amzn.to/2r0ZCYI
For Amazon UK: http://amzn.to/2mxBaJf
For ebay.com: http://ebay.to/2DuYXBp

https://www.facebook.com/profile.php?id=100013947273409
https://twitter.com/spiessa
https://www.instructables.com/member/Andreas%20Spiess/
Please do not try to email me. This communication channel is reserved for my primary job
As an Amazon Associate, I earn from qualifying purchases
#no#midroll#ads

source

10 thoughts on “How to work with a Real Time Operating System and is it any good? (FreeRTOS, ESP32)

  • April 25, 2021 at 7:44 am
    Permalink

    FreeRTOS is pretty awesome. It's particularly great with arduino on esp32 because they already run it so no extra setup needed.

    The only disappointment is that outside of some fairly painful looking workarounds you can't get faster than 1000 hz

    Reply
  • April 25, 2021 at 7:44 am
    Permalink

    wifi doesnt "always" work on an esp32…if you get below 70Kb free memory…then wifi screws up..and can crash the esp32.. (ive had major issues getting FABGL running with wifi and vga out..im down to 30Kb!)..even with PSRAM enabled.. if theres not enough main memory wifi will screw up… either not connect.. or crash the esp32

    Reply
  • April 25, 2021 at 7:44 am
    Permalink

    just in time, i have to do some homework using freertos in an esp32

    Reply
  • April 25, 2021 at 7:44 am
    Permalink

    I'm here delirious after my second covid shot, wishing I were more coherent to understand all of this. Thanks, Andreas! A topic I've always wondered about.

    Reply
  • April 25, 2021 at 7:44 am
    Permalink

    great stuff Andreas, thanks a lot. But at 20:41 there was a blocked resource in the spellchecker, it seems 😉 Thanks a lot for diving into such not obvious topics!

    Reply
  • April 25, 2021 at 7:44 am
    Permalink

    Have you used an Arduino String in a FreeRTOS queue structure? Is it safe to do this? I have found with other queues that using a String in a queue structure causes heap fragmentation and hence a memory leak, so I avoid using them in this situation.

    Reply
  • April 25, 2021 at 7:44 am
    Permalink

    Thanks for another great video, Andreas! I have a project which is sitting around for over a year now, which is built on ESP32 and needs to perform several tasks separate from eachother. I got some great ideas on how to accomplish this in a better when than it is managed now.

    Reply

Leave a Reply

Your email address will not be published.