Arduino ESP32

RA5040
Posts: 26
Joined: Mon Jul 30, 2018 1:20 pm

Arduino ESP32

Postby RA5040 » Fri Aug 31, 2018 5:11 pm

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.
Attachments
ArduinoESP32MakeLog.zip
(5.43 KiB) Downloaded 560 times

pmckeon
Posts: 9
Joined: Sat Aug 18, 2018 9:18 am

Re: Arduino ESP32

Postby pmckeon » Sat Sep 01, 2018 8:34 am

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

RA5040
Posts: 26
Joined: Mon Jul 30, 2018 1:20 pm

Re: Arduino ESP32

Postby RA5040 » Sat Sep 01, 2018 6:43 pm

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.

Who is online

Users browsing this forum: Baidu [Spider], Majestic-12 [Bot], MicroController and 133 guests