Problem using Make Flash in command line [solved]
Posted: Wed Feb 06, 2019 1:05 pm
Hi all,
I'm trying to flash my ESP32 but I have that kind of error which seems more or less common :
I tried all the suggestions in the different topics : change the USB cable, put the GPIO0 pin to a GND while connecting,change the USB port,...
The weird thing is that I can flash using the command in the esp/openocd-esp32 file:
As you can see I'm using the olimex-arm-usb-ocd-h with JTAG. How could you explain I can flash using that command but I can't using make flash ?
I would like to use eclipse and see the output of my esp using the make monitor command to see for example wifi scan. But it is the same error when I want to flash from eclipse. The only way I found to see my wifi scan is using the debug mode in eclipse and seeing the values in the variables.
Do you have any ideas how I could see my results and the print messages I used in my code ? When I'm using make monitor I only have the lines in the attach file.
I'm using :
Eclipse IDE for C/C++ Developers
Version: 2018-12 (4.10.0)
Thank you for your help
I'm trying to flash my ESP32 but I have that kind of error which seems more or less common :
Code: Select all
Flashing binaries to serial port /dev/ttyUSB0 (app at offset 0x10000)...
esptool.py v2.6-beta1
Serial port /dev/ttyUSB0
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
/home/rem/esp/esp-idf/components/esptool_py/Makefile.projbuild:62 : la recette pour la cible « flash » a échouée
make: *** (flash) Erreur 2
The weird thing is that I can flash using the command in the esp/openocd-esp32 file:
Code: Select all
openocd -f tcl/interface/ftdi/olimex-arm-usb-ocd-h.cfg -f tcl/target/esp32.cfg -c "program_esp32 myproject.bin 0x10000 verify exit"
I would like to use eclipse and see the output of my esp using the make monitor command to see for example wifi scan. But it is the same error when I want to flash from eclipse. The only way I found to see my wifi scan is using the debug mode in eclipse and seeing the values in the variables.
Do you have any ideas how I could see my results and the print messages I used in my code ? When I'm using make monitor I only have the lines in the attach file.
I'm using :
Eclipse IDE for C/C++ Developers
Version: 2018-12 (4.10.0)
Thank you for your help