Whats the word on SDK compatibility with esp8266 code

mmiscool
Posts: 1
Joined: Sun Nov 15, 2015 4:48 am

Whats the word on SDK compatibility with esp8266 code

Postby mmiscool » Sun Nov 15, 2015 4:51 am

Hello,

Whats it looking like for compatibility for code written for the esp8266. Will there need to be many modification or will most of it just work after being compiled for the new chip?

johnlee
Posts: 34
Joined: Sun Nov 15, 2015 4:27 am

Re: Whats the word on SDK compatibility with esp8266 code

Postby johnlee » Sun Nov 15, 2015 7:32 am

We try to be compatible with ESP8266 as much as possible. (RTOS version of SDK)
But there are way more features in ESP32; that means that we have to expand upon the API. This is a work in progress and more and more features will be release as the SDK matures.

User avatar
DAFlippers
Posts: 22
Joined: Sat Nov 14, 2015 9:20 am

Re: Whats the word on SDK compatibility with esp8266 code

Postby DAFlippers » Wed Nov 18, 2015 2:55 pm

I guess the question should be 'will the ESP32 be compatible with the existing SDK and code base?' We understand the additional features wouldn't be available however it would be great if the existing ESP8266 was a subset of the ESP32 - that is we could treat the ESP32 as an ESP8266.

David

johnlee
Posts: 34
Joined: Sun Nov 15, 2015 4:27 am

Re: Whats the word on SDK compatibility with esp8266 code

Postby johnlee » Thu Nov 26, 2015 5:31 am

yes, it would be ideal, but i think, we can't do this in C without imposing a great deal of limitations on the new API. It's possible if we had done this in C++ though.

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

Re: Whats the word on SDK compatibility with esp8266 code

Postby ESP_Sprite » Thu Nov 26, 2015 5:44 am

I think what daflippers means is binary compatibility, that is, you can use the ESP8266 SDK to build programs for the ESP32. That, unfortunately, is not possible because the hardware is pretty different: we have a different CPU core, address map, changed peripherals etc. Code that is written for the FreeRTOS SDK of the ESP8266 will be mostly compatible with the ESP32 core, but you will need to switch toolchain/SDKs and recompile.

User avatar
DAFlippers
Posts: 22
Joined: Sat Nov 14, 2015 9:20 am

Re: Whats the word on SDK compatibility with esp8266 code

Postby DAFlippers » Thu Nov 26, 2015 6:35 am

Exactly. As I hoped but as I expected.

David

Who is online

Users browsing this forum: Baidu [Spider] and 114 guests