Hi,
I am totally new to ESP world. From datasheet here(https://www.espressif.com/sites/default ... eet_en.pdf) chapter#3, I see there is only one cpu core: Tensilica L106. If that the case who runs freeRTOS and WIFI stack when user upload his own code?? Isn't usercode overrides freeRTOS!!!
I mean I am interested in how that single core manages FreeRTOS, WiFi stack and user code loop function (arduino)?
ESP8266 Core for user code
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP8266 Core for user code
Note that this forum is for ESP32 chips and their ilk, but since your question could also be applicable to e.g. an ESP32C3 which also has a single core:
In our SDK, the WiFi and user code parts are linked into the same executable, executed by the same CPU. FreeRTOS is also linked into that executable. As FreeRTOS is a RTOS that is capable of multitasking (=creating tasks and maintaining the illusion that they're all executed in parallel, even though physically the CPU can only execute one task at a time), the executable can do WiFi and whatever the user programs the thing to do, seemingly in parallel.
In our SDK, the WiFi and user code parts are linked into the same executable, executed by the same CPU. FreeRTOS is also linked into that executable. As FreeRTOS is a RTOS that is capable of multitasking (=creating tasks and maintaining the illusion that they're all executed in parallel, even though physically the CPU can only execute one task at a time), the executable can do WiFi and whatever the user programs the thing to do, seemingly in parallel.
Who is online
Users browsing this forum: No registered users and 77 guests