Error compiling the "hello world" example

thoraz
Posts: 27
Joined: Tue Jan 28, 2020 4:02 pm

Error compiling the "hello world" example

Postby thoraz » Tue Jan 28, 2020 4:13 pm

I'm starting to develop application with the ESP32 and I followed all the steps of the official tutorial

https://docs.espressif.com/projects/esp ... index.html#

but now, when I compile the "hello world" example to flash it in ESP32 module with the male flash command, I have the the error

Code: Select all

Andrea@DESKTOP-N00BGML MINGW32 /c/msys32/home/Andrea/esp/hello_world
$ make flash
WARNING: esp-idf git submodule components/asio/asio may be out of date. Run 'git submodule update' in IDF_PATH dir to update.
WARNING: esp-idf git submodule components/coap/libcoap may be out of date. Run 'git submodule update' in IDF_PATH dir to update.
WARNING: esp-idf git submodule components/libsodium/libsodium may be out of date. Run 'git submodule update' in IDF_PATH dir to update.
WARNING: esp-idf git submodule components/lwip/lwip may be out of date. Run 'git submodule update' in IDF_PATH dir to update.
WARNING: esp-idf git submodule components/mbedtls/mbedtls may be out of date. Run 'git submodule update' in IDF_PATH dir to update.
WARNING: esp-idf git submodule components/mqtt/esp-mqtt may be out of date. Run 'git submodule update' in IDF_PATH dir to update.
WARNING: esp-idf git submodule components/nghttp/nghttp2 may be out of date. Run 'git submodule update' in IDF_PATH dir to update.
WARNING: esp-idf git submodule components/protobuf-c/protobuf-c may be out of date. Run 'git submodule update' in IDF_PATH dir to update.
WARNING: esp-idf git submodule components/esptool_py/esptool may be out of date. Run 'git submodule update' in IDF_PATH dir to update.
Toolchain path: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-80-g6c4433a5
Compiler version: 5.2.0
WARNING: esp-idf git submodule components/esptool_py/esptool may be out of date. Run 'git submodule update' in IDF_PATH dir to update.
make[1]: ***  Nessuna regola per generare l'obiettivo "/home/Andrea/esp/esp-idf/components/esptool_py/esptool/esptool.py", necessario per "/c/msys32/home/Andrea/esp/hello_world/build/bootloader/bootloader.bin".  Arresto.
make: *** [/home/Andrea/esp/esp-idf/components/bootloader/Makefile.projbuild:41: /c/msys32/home/Andrea/esp/hello_world/build/bootloader/bootloader.bin] Error 2
Why?

chegewara
Posts: 2238
Joined: Wed Jun 14, 2017 9:00 pm

Re: Error compiling the "hello world" example

Postby chegewara » Tue Jan 28, 2020 5:57 pm

The logs shows you didnt follow all steps. You did not git clone with --recursive flag.

Now you have to go to esp-idf folder and use command:

Code: Select all

git submodule update --init --recursive

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 133 guests