[Solved] Problem installing ESP-IDF

I’m trying to install ESP-IDF, based on ‘Get Started’ doc. I never could figure out the ‘Connect’ section, but I went on. The installation failed at ‘Build and Flash’ with this stuff displayed:

pi@raspberrypi:~/esp/hello_world $ make flash
/bin/sh: 1: xtensa-esp32-elf-gcc: Exec format error
/bin/sh: 1: xtensa-esp32-elf-gcc: Exec format error
WARNING: Failed to find Xtensa toolchain, may need to alter PATH or set one in the configuration menu
/bin/sh: 1: xtensa-esp32-elf-gcc: Exec format error
/bin/sh: 1: xtensa-esp32-elf-gcc: Exec format error
WARNING: Failed to find Xtensa toolchain, may need to alter PATH or set one in the configuration menu
CC build/bootloader/bootloader_support/src/efuse.o
/home/pi/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: /home/pi/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: Syntax error: "(" unexpected
/home/pi/esp/esp-idf/make/component_wrapper.mk:285: recipe for target 'src/efuse.o' failed
make[2]: *** [src/efuse.o] Error 2
/home/pi/esp/esp-idf/make/project.mk:468: recipe for target 'component-bootloader_support-build' failed
make[1]: *** [component-bootloader_support-build] Error 2
/home/pi/esp/esp-idf/components/bootloader/Makefile.projbuild:41: recipe for target '/home/pi/esp/hello_world/build/bootloader/bootloader.bin' failed
make: *** [/home/pi/esp/hello_world/build/bootloader/bootloader.bin] Error 2

IDF_PATH is set correctly:

pi@raspberrypi:~ $ printenv IDF_PATH
~/esp/esp-idf

The .profile has these 2 new lines:

export IDF_PATH=~/esp/esp-idf
export PATH="$PATH:$HOME/esp/xtensa-esp32-elf/bin"

So the PATH looks like this:

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/home/pi/esp/xtensa-esp32-elf/bin

Any ideas on what I’m doing wrong? Also, can you explain the serial port stuff better? I’m using a RPi 3 B+ and Raspbian 9.4 (stretch).

Thanks.

Mark it CLOSED I’m proceeding on to the next challenge.

Ok great. Can you share what was wrong?

I just marked it as [Solved]

ESP-IDF should not be installed on the Pi, but on your pc

1 Like