Started by findmyname, April 02, 2021, 10:35:30 PM
Download button. Holding down Boot and then pressing Reset initiates Firmware Download mode for downloading firmware through the serial port.
Wrote 146832 bytes (81303 compressed) at 0x00010000 in 1.2 seconds (effective 951.6 kbit/s)...Hash of data verified.Leaving...Hard resetting via RTS pin...ERROR: ESP32-S2 chip was placed into download mode using GPIO0.esptool.py can not exit the download mode over USB. To run the app, reset the chip manually.To suppress this error, set --after option to 'no_reset'.CMake Error at run_serial_tool.cmake:50 (message): /home/findmyname/.espressif/python_env/idf4.4_py3.9_env/bin/python /home/findmyname/Documents/core/esp/esp-idf-framework/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32s2 failed
In general, you should have no problems with the official esp-idf development boards. However, esptool.py is not able to reset your hardware automatically in the following cases: Your hardware does not have the DTR and RTS lines connected to GPIO0 and CHIP_PU The DTR and RTS lines are configured differently There are no such serial control lines at allDepending on the kind of hardware you have, it may also be possible to manually put your ESP32-S2 board into Firmware Download mode (reset). For development boards produced by Espressif, this information can be found in the respective getting started guides or user guides. For example, to manually reset an esp-idf development board, hold down the Boot button (GPIO0) and press the EN button (CHIP_PU). For other types of hardware, try pulling GPIO0 down.
$ esptool.py --chip esp32s2 -p /dev/ttyACM0 -b 460800 --before=default_reset --after=no_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 build/partition_table/partition-table.bin 0x1000 build/bootloader/bootloader.bin 0x10000 build/hello-world.bin
Note that some serial terminal programs (not esptool.py) will assert both RTS and DTR when opening the serial port, pulling them low together and holding the ESP32 in reset. If RTS is wired directly to EN then RTS/CTS "hardware flow control" needs to be disabled in the serial program to avoid this.Development boards (including all Espressif boards) usually use additional circuitry to avoid this problem - if both RTS and DTR are both asserted together, this doesn't reset the chip. Consult Espressif development board schematics for the specific details.
Quote from: LubOlimex on April 06, 2021, 11:34:54 AMThis guide assumes auto-reset is possible, and auto-reset is currently only possible when using external serial-USB converter. Auto-reset on "native" ESP32-S2 (e.g. without external serial-USB converter) is reported as non-working here:https://github.com/espressif/arduino-esp32/issues/4528
Is there any update related to this issue, the idf version is working properly with a simple "USB Console" configuration in menuconfig. However, on Ardunio side there is a problem even which crashes the configuration made by esp-idf.
Quote from: undefinedAt the end of step 9 you can see troubleshooting info mentioning the reset possibilities:https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/get-started/index.html#encountered-issues-while-flashing