ESP8266 Core for user code

ijaz.a100
Posts: 1
Joined: Sun Apr 24, 2022 4:44 pm

ESP8266 Core for user code

Postby ijaz.a100 » Sun Apr 24, 2022 4:49 pm

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)? :?: ;)

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP8266 Core for user code

Postby ESP_Sprite » Mon Apr 25, 2022 1:13 am

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.

Who is online

Users browsing this forum: Google [Bot] and 65 guests