Page 1 of 1

ESP8266 Core for user code

Posted: Sun Apr 24, 2022 4:49 pm
by ijaz.a100
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)? :?: ;)

Re: ESP8266 Core for user code

Posted: Mon Apr 25, 2022 1:13 am
by ESP_Sprite
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.