FreeRTOS is a free and open source real-time operating system (RTOS) owned and maintained by Amazon.
The solution to the challenge in the video can be found here: [ Ссылка ]
ESP-IDF FreeRTOS SMP Changes: [ Ссылка ]
Add this URL to the "Additional Boards Manager URLs" window in Arduino for ESP32 support: [ Ссылка ]
In this video, we talk about how a task is created in FreeRTOS using the ESP32 and Arduino. A task in FreeRTOS is similar to a thread in other multi-threaded environments (e.g. POSIX). It is a unit of CPU utilization designed to accomplish some goal. For our purposes, we just want to create a new thread and toggle an LED.
The ESP32 that comes with many development boards (including the Adafruit Feather HUZZAH32 shown in the video) runs a modified version of FreeRTOS (if you are using the ESP32 package for Arduino or the Espressif SDK). Most importantly, the ESP32 version (named ESP-IDF) supports the dual-core processor on the ESP32. Tasks created with the regular xTaskCreate() can run on either core as chosen by the scheduler.
For demo purposes, we want to run all tasks on a single core. This will allow us to experiment with prioritization and shared resources later in this series. To do this on the ESP32, we use the xTaskCreatePinnedToCore() function instead and specify which core to use. If you are using vanilla FreeRTOS in your own build system, you will want to use xTaskCreate() instead.
Product Links:
[ Ссылка ]
Related Videos:
Introduction to RTOS Part 1 - What is a Real-Time Operating System (RTOS)? - [ Ссылка ]
Introduction to RTOS Part 2 - Getting Started with FreeRTOS - [ Ссылка ]
Introduction to RTOS Part 3 - Task Scheduling - [ Ссылка ]
Introduction to RTOS Part 4 - Memory Management - [ Ссылка ]
Introduction to RTOS Part 5 - Queue - [ Ссылка ]
Introduction to RTOS Part 6 - Mutex - [ Ссылка ]
Introduction to RTOS Part 7 - [ Ссылка ]
Introduction to RTOS Part 8 - [ Ссылка ]
Introduction to RTOS Part 9 - [ Ссылка ]
Introduction to RTOS Part 10 - [ Ссылка ]
Introduction to RTOS Part 11 - [ Ссылка ]
Introduction to RTOS Part 12 - [ Ссылка ]
Related Project Links:
[ Ссылка ]
Related Articles:
[ Ссылка ]
Learn more:
Maker.io - [ Ссылка ]
Digi-Key’s Blog – TheCircuit [ Ссылка ]
Connect with Digi-Key on Facebook [ Ссылка ]
And follow us on Twitter [ Ссылка ]
Ещё видео!