port IDF project to arduino

marchingband
Posts: 46
Joined: Wed Mar 13, 2019 9:20 pm

port IDF project to arduino

Postby marchingband » Fri Apr 10, 2020 5:29 am

I am designing a new dev board based around esp32 wroverB, and I have a large code base that I wrote in esp-idf (v3.3) which does all the setup for this board.
Now I want the end users to be able to work in the Arduino IDE, to write their code for the board.
What is the best approach here?
When I simply copy the code into the Arduino IDE, and try to compile, I get a huge amount of errors, many of which are duplicate definitions, and other issues around includes, many of which are regarding OTA update, and Webserver related structs and definitions.
Do I need to re-write all my code using the Arduino framework? Or is there an approach that would avoid this?
Thanks!!!

marchingband
Posts: 46
Joined: Wed Mar 13, 2019 9:20 pm

Re: port IDF project to arduino

Postby marchingband » Sat Apr 11, 2020 4:13 am

I have had SOME success with using absolute #include paths to my installation of esp-idf, but this approach is not portable, I imagine, so the end user of this board will not be able to compile their code from Arduino.

Do I just need to write everything within the esp_arduino framework?

Who is online

Users browsing this forum: No registered users and 57 guests