Standalone SDK

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Standalone SDK

Postby Deouss » Fri Jan 24, 2020 2:25 pm

I know current IDF supports FreeRTOS but maybe in the future it would be also good to have a standalone SDK for ESP32?
Do you think it is possible and have you consider such development?

Thanks!

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

Re: Standalone SDK

Postby ESP_Sprite » Sat Jan 25, 2020 9:02 am

It's quite hard to run a WiFi/BT/TCPIP stack without an OS... needs an entirely different architecture underneath as you can't do things in parallel. Sure, it's possible to do so, but it'd mean re-architecting everything from the ground up, losing a lot of nice functionality, and generally wasting a lot of time. Additionally, not having the inter-task communication primitives makes it quite hard to have a nice way to make use of the fact that the ESP32 has two CPUs. Is there any reason in particular you'd need this?

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: Standalone SDK

Postby Deouss » Sat Jan 25, 2020 3:07 pm

I understand the re-architecturing problem for non-OS SDK, however looking at ESP8266 it is possible and works good.
Intercommunication sometimes is not crucial in many performance projects and also having bare metal execution gives more management control over memory and the way the whole system behaves. More memory would be saved and more battery power too.
WiFi and BT could be switched off at any time and resources reassigned to different processes for example.

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

Re: Standalone SDK

Postby ESP_Sprite » Sun Jan 26, 2020 3:55 pm

Actually, if I recall correctly, ESP8266 also uses a minimal RTOS under the hood (XTOS). Also, how would the things you mention not be possible with a RTOS?

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: Standalone SDK

Postby Deouss » Sun Jan 26, 2020 4:37 pm

ESP_Sprite wrote: Actually, if I recall correctly, ESP8266 also uses a minimal RTOS under the hood (XTOS). Also, how would the things you mention not be possible with a RTOS?

So you are saying non-OS SDK for ESP8266 is actually a minimal RTOS ?

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

Re: Standalone SDK

Postby ESP_Sprite » Mon Jan 27, 2020 10:41 am

Keep in mind that I don't know that much about the internals of the binary stuff of the esp8266 SDK (I've not worked with that chip for the last 3 years or so), but yes, as far as I'm aware it has XTOS in ROM and the SDK uses that.

Who is online

Users browsing this forum: djixon and 92 guests