Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino IDE expressif installation location info #532

Closed
rrobinet opened this issue Jul 20, 2017 · 3 comments
Closed

Arduino IDE expressif installation location info #532

rrobinet opened this issue Jul 20, 2017 · 3 comments

Comments

@rrobinet
Copy link

Hi,
I would like to mention that the installation should not always be located under:
~/Documents/Arduino/.... typically ~/Documents/Arduino/hardware/espressif
But under the location defined in the Arduino preferences has
Sketchbook location:
For example in my case defined as:
/Users/Robert/Data/Our Documents/Projets Techniques/Domotic/Arduino/Sketch
The practical location should be:
/Users/Robert/Data/Our Documents/Projets Techniques/Domotic/Arduino/hardware/espressif
Robert

@MrJustPaul
Copy link

MrJustPaul commented Jul 27, 2017

Thanks Robert. I'm wondering if my SEVERAL attempts to get my ESP32 setup to work is because of location issues - I'm getting lots of "no such file" or duplicates of things, etc.
Paul

@markonian
Copy link

markonian commented Aug 25, 2017

UPDATE: I was not using my exact Sketchbook path; I had one path segment missing. I updated the script (below) and now the installation works.

I also found the forum focused on Arduino for ESP32.

Yes, I was a complete noob with ESP32. Just got my first dev board. Thanks Robert for posting this.

@MrJustPaul, did you get your setup to work?

I too have a non-default Sketchbook location. That explains why the Installation Instructions for Mac don't work as-is. As is pointed out in OP, the installation script is hard coded for the Sketchbook location to be ~/Documents/Arduino.

For historical reasons, my Sketchbook location is ~/Developer/Projects/Arduino/Arduino-trunk. So I changed the script to:

mkdir -p ~/Developer/Projects/Arduino/Arduino-trunk/hardware/espressif && \
cd ~/Developer/Projects/Arduino/Arduino-trunk/hardware/espressif && \
git clone https://github.com/espressif/arduino-esp32.git esp32 && \
cd esp32/tools/ && \
python get.py

and executed it. The following was printed to the Terminal screen:

mkdir -p ~/Developer/Projects/Arduino/Arduino-trunk/hardware/espressif && \
> cd ~/Developer/Projects/Arduino/Arduino-trunk/hardware/espressif && \
> git clone https://github.com/espressif/arduino-esp32.git esp32 && \
> cd esp32/tools/ && \
> python get.py
Cloning into 'esp32'...
remote: Counting objects: 5098, done.
remote: Total 5098 (delta 0), reused 0 (delta 0), pack-reused 5098
Receiving objects: 100% (5098/5098), 80.17 MiB | 1.10 MiB/s, done.
Resolving deltas: 100% (2615/2615), done.
Checking connectivity... done.
System: Darwin, Info: Darwin-16.7.0-x86_64-i386-64bit
Platform: x86_64-apple-darwin
Downloading xtensa-esp32-elf-osx-1.22.0-61-gab8375a-5.2.0.tar.gz
Done
Extracting xtensa-esp32-elf-osx-1.22.0-61-gab8375a-5.2.0.tar.gz
Downloading esptool-a420774-macos.tar.gz
Done
Extracting esptool-a420774-macos.tar.gz
Done

As far as I can tell, the installation was successful. However, when I run the Arduino IDE, I don't see anything that indicates that arduino-esp32 is available. For example, under the Tools/Board: menu, I assume that there should be some esp32 targets. Questions follow...

Is there a arduino-esp32 focused forum where I can go to get help? If so, I'll go there.

If not, then...

Was my installation attempt successful? How can I tell?

I'm using macOS 10.12.6. Tested with Arduino IDE versions 1.8.1, 1.8.2, and 1.8.4.

@rrobinet
Copy link
Author

Hi,
All I can say is that was the trick for me:
Most of my alien (no-Arduino products) libraries are under my sketchbook location /hardware.
Please verify if this i actually the case:
My Sketchbook location is:
/Users/Robert/Data/Our Documents/Projets Techniques/Domotic/Arduino/Sketch
and the espressif set is under:
/Users/Robert/Data/Our Documents/Projets Techniques/Domotic/Arduino/Sketch/Hardware/espressif/esp32

You have to restart Arduino to actually see it under the Tools menu.

Robert

@rrobinet rrobinet closed this as completed Sep 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants