Portability from ESP8266 to ESP32

wfraga
Posts: 2
Joined: Tue Sep 27, 2016 5:14 pm

Portability from ESP8266 to ESP32

Postby wfraga » Tue Sep 27, 2016 5:19 pm

Will be possible compile( in any moment ) the same code from 8266 in 32 ??

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

Re: Portability from ESP8266 to ESP32

Postby ESP_Sprite » Wed Sep 28, 2016 2:03 am

It depends. If you're using the RTOS SDK on the 8266 and do not have any driver calls and do not modify registers directly, chances are your program will run unmodified on the ESP32. If you use the non-os version, for now you will need to modify the code to use BSD sockets. We are planning on a compatibility layer to make it easier to compile non-os ESP8266 code on an ESP32, but at the moment that still is in the pipeline.

With regards to direct hardware calls and/or use of drivers, these probably have changed between the ESP8266 and ESP32 and you probably need to modify your code there regardless.

Who is online

Users browsing this forum: No registered users and 102 guests