Page 1 of 1

Arduino ESP32

Posted: Fri Aug 31, 2018 5:11 pm
by RA5040
Hi,
I would like to use Arduino code in Eclipse and from the command line, but I am having difficulties doing so.

I've followed the instructions in https://github.com/espressif/arduino-es ... mponent.md and I got some build errors.

I then tried to follow Ibernstone's instructions here: https://github.com/espressif/arduino-esp32/issues/1142. However I am running Windows and I can't find the arduino-esp32/tools/sdk/ directory so I'm stuck.

I have installed the latest version of Arduino (1.8.6) and the lastest ESP-IDF. I have also made a project as per the instructions above ("To use as a component of ESP-IDF").

When I ran make the first time on my test project (basic Arduino Blink sketch) I got a load of configuration questions (I just selected the defaults), followed by the build (in attached file). The build ends with 2 errors.

Re: Arduino ESP32

Posted: Sat Sep 01, 2018 8:34 am
by pmckeon
I can't comment on compiling Arduino core from Eclipse, but I was able to successfully install and compile from the Arduino IDE using these steps:

https://learn.sparkfun.com/tutorials/es ... duino-core

Re: Arduino ESP32

Posted: Sat Sep 01, 2018 6:43 pm
by RA5040
Thanks, but I already have the Arduino IDE and Eclipse-Arduino (Sloeber). I can also run C/C++ ESP32 programs either from the command line or from Eclipse.

My issue is that I have quite a lot of code written for Arduino that I would like to convert to C++. I could do this manually, but it's time-consuming, so I would like to run the code as a C++ component. This would allow me to build on the code in C++ without having to modify the existing Arduino code ... or it would give me more time to modify the Arduino code bit by bit.