Skip to content

Error Installing the ESP32 in Arduino IDE on a Raspberry Pi 3 #2651

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

Closed
RamanujamV opened this issue Apr 10, 2019 · 24 comments
Closed

Error Installing the ESP32 in Arduino IDE on a Raspberry Pi 3 #2651

RamanujamV opened this issue Apr 10, 2019 · 24 comments
Labels
Status: Stale Issue is stale stage (outdated/stuck)

Comments

@RamanujamV
Copy link

Need help resolving thie following:
Error Installing the ESP32 in Arduino IDE on a Raspberry Pi 3

Pi3 running NOOBS v3_0_1 (downloaded on Aril 10th)

IDE installed using "arduino-nightly-linuxarm.tar.xz " (downloaded on Aril 10th)

In the Installation step
Tools >Board ... > Boards Manager
Selected ESP32 by Espressif Systems
Clicked on "Install" (version 1.0.1)
Get the Error Message
"Tool xtensa-esp32-elf-gcc is not available for your operating system"

----------------------------- Remove above -----------------------------

Hardware:

Board: ?ESP32 Dev Module? ?node32? ?ttgo_lora?
Core Installation/update date: ?11/jul/2017?
IDE name: ?Arduino IDE? ?Platform.io? ?IDF component?
Flash Frequency: ?40Mhz?
PSRAM enabled: ?no?
Upload Speed: ?115200?
Computer OS: ?Windows 10? ?Mac OSX? ?Ubuntu?

Description:

Describe your problem here

Sketch: (leave the backquotes for code formatting)

//Change the code below by your sketch
#include <Arduino.h>

void setup() {
}

void loop() {
}

Debug Messages:

Enable Core debug level: Debug on tools menu of Arduino IDE, then put the serial output here 
@lbernstone
Copy link
Contributor

The toolchain is not compiled regularly for ARM. See #789

@RobertPHeller
Copy link

I built a working toolchain on a Pi2 (running Raspbian GNU/Linux 8, 4.19.25-v7+). Available for download here: http://files.deepsoft.com/Other/xtensa-esp32-elf-armv7l/xtensa-esp32-elf-armv7l-6c4433a-01092018.tar.bz2

@RamanujamV
Copy link
Author

RamanujamV commented Apr 10, 2019 via email

@me-no-dev
Copy link
Member

Starting with GCC 8, PI is on the regular toolchain build :) so stay tuned for full official support

@greeneagle317
Copy link

Ramanujam!
Is it OK now. Is the arduino IDE working for esp32 in RPi 3 ?

@RobertPHeller
Copy link

RobertPHeller commented Jun 24, 2019 via email

@ghhann
Copy link

ghhann commented Jul 7, 2019

Any update on when this will be available for rpi3? There is no entry point for it in the Json file

@lbernstone
Copy link
Contributor

When you see an ARM installer here, then it will be available. The toolchain is upstream.

@syswombat
Copy link

Hello
same Problem with Raspberry 4 - hope there is a way to solve it.
have a nice day
vinc

@syswombat
Copy link

Arduino IDE 1.8.9
Tools --> Boards --> Boards Manager
search esp32

esp32 by Espressif Systems
1.0.2 Install

and gives the same error as written on the top

@RobertPHeller
Copy link

RobertPHeller commented Jul 31, 2019 via email

@syswombat
Copy link

@RobertPHeller thanks for your information.
the toolchain is done, but where excatly it have to stay in the Buster (Debian10) place?
also the esp32 Hardware - where on Debian 10 have to be copied?
have a nice day
vinc

@venkateshan-s
Copy link

Any update?

@me-no-dev
Copy link
Member

Starting soon Espressif will build the toolchain for ARM just like for the other operating systems. For now you can use the following toolchain (which is not officially supported but seemed to work fine) https://dl.espressif.com/dl/xtensa-esp32-elf-linux-armel-1.22.0-87-gb57bad3-5.2.0.tar.gz
follow the github install guide to get esp32 arduino on the pi, run get.py as per instructions, then download and decompress the archive to [parth-to-esp32-arduino]/tools/ and give it a go. Quite slow ;)

@Mike09
Copy link

Mike09 commented Oct 20, 2019

Hello everyone,
I encountered similar problems using the ESP32 with the Arduino IDE on a Pi 3 B+.

Can someone explain me the definition for toolchain, maybe I am mixing it up?
Is "toolchain" meant for the building process under the Arduino IDE or does it refer to setting up the system to get it working with the ESP hardware?
I was able to find a very useful video on youtube which I think was linked in another topic.
ESP32 - Development environment on PI
This might be also useful for other people reading this, so I will leave my question.
To answer my question: The toolchain is refering to the building chain, which provides the necessary tools to build the binary for the hardware.
There might be better explanations but feel free to add some information.

My current system is set up as follows:

  • Raspberry Pi 3 B+ with Raspbian 10 (buster)
  • Arduino IDE version 2:1.0.5 (installed via apt-get)

I used the installation instruction as given at /docs/arduino-ide/debian_ubuntu.md.
I didn't install pip because it was pre-installed on raspbian as well as pyserial.

But the ESP board does not show up in the Arduino IDE.
What am I missing?
Has something changed for the Arduino IDE, because there is also no Board-Manger showing up?
For me it seems the IDE cannot see the installed files, but this is just a guess.

@me-no-dev why do I need to additionally install the files mentioned in the link above? These files are already existing!?

@RobertPHeller
Copy link

RobertPHeller commented Oct 20, 2019 via email

@lbernstone
Copy link
Contributor

Sorry there was no press release, but the ARM toolchain is now available. 5ad468f

@atanisoft
Copy link
Collaborator

As @lbernstone mentions above, boards manager can now be used on rPi as of 1.0.4 (current stable release)

@RamanujamV
Copy link
Author

RamanujamV commented Oct 20, 2019 via email

@Mike09
Copy link

Mike09 commented Oct 21, 2019

Thank you guys for the quick replies!

I was able to install the current Arduino version via the tarball.
Also I could add the esp32 source for the board manager to install the arm boards.

Now I'm having problems to use the library installed via the esp32.
The Arduino environment detects two "WiFi.h" files.
Even if I delete the original WiFi directory contained in Arduino, the compiler stops because it found two libraries.
Other topics say that this error should be solved in the current Arduino IDE.
Any ideas?

@RamanujamV
Copy link
Author

RamanujamV commented Oct 23, 2019 via email

@stale
Copy link

stale bot commented Dec 22, 2019

[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Stale Issue is stale stage (outdated/stuck) label Dec 22, 2019
@stale
Copy link

stale bot commented Jan 5, 2020

[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.

@stale stale bot closed this as completed Jan 5, 2020
@vubon
Copy link

vubon commented Jan 11, 2020

Starting soon Espressif will build the toolchain for ARM just like for the other operating systems. For now you can use the following toolchain (which is not officially supported but seemed to work fine) https://dl.espressif.com/dl/xtensa-esp32-elf-linux-armel-1.22.0-87-gb57bad3-5.2.0.tar.gz
follow the github install guide to get esp32 arduino on the pi, run get.py as per instructions, then download and decompress the archive to [parth-to-esp32-arduino]/tools/ and give it a go. Quite slow ;)

Hi, I am getting a warring in build time. It is a version mismatch problem. But I did not find anywhere 1.22.0-80-g6c4433a version for ARM. Could you help me? Thank you

WARNING: Toolchain version is not supported: 1.22.0-87-gb57bad3
Expected to see version: 1.22.0-80-g6c4433a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale Issue is stale stage (outdated/stuck)
Projects
None yet
Development

No branches or pull requests