Failure with flashing esp-wrover-kit dev board under Arduino-esp32
Posted: Thu Mar 08, 2018 11:29 am
Greeting!
I have just succeeded in flashing esp-wrover-kit development board under esp-idf. Now trying do the same thing under Arduino. I would ask for your help to fix the issue. May I report my procedure 1 stpe by 1 as below?
1, Following the guide on "Installation instructions for Debian / Ubuntu OS" (https://github.com/espressif/arduino-es ... _ubuntu.md), I went through the following steps.
1.1, "Install latest Arduino IDE from arduino.cc". The root directory that Arduino IDE is installed is ~/arduino-1.8.5.
1.2, "git clone arduino-esp32.git". The directory ~/Arduino is created at this step. And the git repository is cloned into ~/Arduino/hardware/espressif/esp32.
1.3, "Restart Arduino IDE". I think that we need to import "esp-wrover-kit" board by selecting "Tools -> Board ...", right? But I couldn't find the board type over there. Where can I find a guidance to add the board into Arduino IDE?
2, As introduced at https://github.com/espressif/arduino-es ... cs/make.md, using makeEspArduino "instead of the Arduino IDE makes it easier to do automated and production builds."
I prefer to use makeEspArduino, as well. So, tried steps as below.
2.1, git clone https://github.com/plerup/makeEspArduino.git. Then directory "makeEspArduino" is created.
2.2, I didn't install arduino-esp32 again since I had installed it at step 1.2.
2.3, changed DEFAULT_PORT to /dev/ttyUSB1 in makeEspArduino/tools/esptool.py
2.4, connected esp-wrover-kit dev board to my laptop via USB cable. I had succeeded in flashing the borad by typing the following command under ~/esp/esp-idf/examples/get-started/blink
make flash
That is, the physical connection works under esp-idf environment.
2.4,
cd makeEspArduino
make -f makeEspArduino.mk ESP_ROOT=~/Arduino/hardware/espressif/esp32 CHIP=esp32 DEMO=1 flash
2.5, I got log:
make -f makeEspArduino.mk ESP_ROOT=~/Arduino/hardware/espressif/esp32 CHIP=esp32 DEMO=1 flash
esp32-hal-time.c
esp32-hal-adc.c
Stream.cpp
main.cpp
esp32-hal-timer.c
esp32-hal-bt.c
Esp.cpp
WString.cpp
WMath.cpp
cencode.c
cdecode.c
esp32-hal-i2c.c
IPv6Address.cpp
cbuf.cpp
IPAddress.cpp
Print.cpp
esp32-hal-touch.c
StreamString.cpp
base64.cpp
esp32-hal-uart.c
esp32-hal-sigmadelta.c
esp32-hal-ledc.c
wiring_pulse.c
esp32-hal-spi.c
esp32-hal-misc.c
HardwareSerial.cpp
stdlib_noniso.c
MD5Builder.cpp
esp32-hal-matrix.c
wiring_shift.c
esp32-hal-gpio.c
esp32-hal-dac.c
WiFiScan.ino
WiFiServer.cpp
WiFiGeneric.cpp
WiFiUdp.cpp
WiFiMulti.cpp
WiFiSTA.cpp
WiFiAP.cpp
WiFi.cpp
WiFiScan.cpp
ETH.cpp
WiFiClient.cpp
Creating core archive
Linking /tmp/mkESP/WiFiScan_esp32/WiFiScan.bin
Versions: 146b2f6-dirty, 146b2f6-dirty
esptool.py v2.1
Memory usage
Ram: 37028 bytes
Flash: 497874 bytes
Build complete. Elapsed time: 5 seconds
esptool.py v2.1
Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
makeEspArduino.mk:270: recipe for target 'flash' failed
make: *** [flash] Error 2
That proves that the same physical connection can make “flash” successful under esp-idf but get failure with arduino-esp32.
Could you check the log then let me know how to flash the board successfully under arduino-esp32 environment? And where is the app that “DEMO=1” points to?
Thanks!
I have just succeeded in flashing esp-wrover-kit development board under esp-idf. Now trying do the same thing under Arduino. I would ask for your help to fix the issue. May I report my procedure 1 stpe by 1 as below?
1, Following the guide on "Installation instructions for Debian / Ubuntu OS" (https://github.com/espressif/arduino-es ... _ubuntu.md), I went through the following steps.
1.1, "Install latest Arduino IDE from arduino.cc". The root directory that Arduino IDE is installed is ~/arduino-1.8.5.
1.2, "git clone arduino-esp32.git". The directory ~/Arduino is created at this step. And the git repository is cloned into ~/Arduino/hardware/espressif/esp32.
1.3, "Restart Arduino IDE". I think that we need to import "esp-wrover-kit" board by selecting "Tools -> Board ...", right? But I couldn't find the board type over there. Where can I find a guidance to add the board into Arduino IDE?
2, As introduced at https://github.com/espressif/arduino-es ... cs/make.md, using makeEspArduino "instead of the Arduino IDE makes it easier to do automated and production builds."
I prefer to use makeEspArduino, as well. So, tried steps as below.
2.1, git clone https://github.com/plerup/makeEspArduino.git. Then directory "makeEspArduino" is created.
2.2, I didn't install arduino-esp32 again since I had installed it at step 1.2.
2.3, changed DEFAULT_PORT to /dev/ttyUSB1 in makeEspArduino/tools/esptool.py
2.4, connected esp-wrover-kit dev board to my laptop via USB cable. I had succeeded in flashing the borad by typing the following command under ~/esp/esp-idf/examples/get-started/blink
make flash
That is, the physical connection works under esp-idf environment.
2.4,
cd makeEspArduino
make -f makeEspArduino.mk ESP_ROOT=~/Arduino/hardware/espressif/esp32 CHIP=esp32 DEMO=1 flash
2.5, I got log:
make -f makeEspArduino.mk ESP_ROOT=~/Arduino/hardware/espressif/esp32 CHIP=esp32 DEMO=1 flash
esp32-hal-time.c
esp32-hal-adc.c
Stream.cpp
main.cpp
esp32-hal-timer.c
esp32-hal-bt.c
Esp.cpp
WString.cpp
WMath.cpp
cencode.c
cdecode.c
esp32-hal-i2c.c
IPv6Address.cpp
cbuf.cpp
IPAddress.cpp
Print.cpp
esp32-hal-touch.c
StreamString.cpp
base64.cpp
esp32-hal-uart.c
esp32-hal-sigmadelta.c
esp32-hal-ledc.c
wiring_pulse.c
esp32-hal-spi.c
esp32-hal-misc.c
HardwareSerial.cpp
stdlib_noniso.c
MD5Builder.cpp
esp32-hal-matrix.c
wiring_shift.c
esp32-hal-gpio.c
esp32-hal-dac.c
WiFiScan.ino
WiFiServer.cpp
WiFiGeneric.cpp
WiFiUdp.cpp
WiFiMulti.cpp
WiFiSTA.cpp
WiFiAP.cpp
WiFi.cpp
WiFiScan.cpp
ETH.cpp
WiFiClient.cpp
Creating core archive
Linking /tmp/mkESP/WiFiScan_esp32/WiFiScan.bin
Versions: 146b2f6-dirty, 146b2f6-dirty
esptool.py v2.1
Memory usage
Ram: 37028 bytes
Flash: 497874 bytes
Build complete. Elapsed time: 5 seconds
esptool.py v2.1
Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
makeEspArduino.mk:270: recipe for target 'flash' failed
make: *** [flash] Error 2
That proves that the same physical connection can make “flash” successful under esp-idf but get failure with arduino-esp32.
Could you check the log then let me know how to flash the board successfully under arduino-esp32 environment? And where is the app that “DEMO=1” points to?
Thanks!