Sketch uses 341219 bytes (26%) of program storage space. Maximum is 1310720 bytes.
Global variables use 25504 bytes (7%) of dynamic memory, leaving 302176 bytes for local variables. Maximum is 327680 bytes.
"/Users/kuku/Library/Arduino15/packages/esp32/tools/esptool_py/5.1.0/esptool" --chip esp32 --port "/dev/cu.usbserial-141410" --baud 921600 --before default-reset --after hard-reset write-flash -z --flash-mode keep --flash-freq keep --flash-size keep 0x1000 "/Users/kuku/Library/Caches/arduino/sketches/DCBA9035D28F74465AECB4FD32816CF6/ESP32_TOF_Multi.ino.bootloader.bin" 0x8000 "/Users/kuku/Library/Caches/arduino/sketches/DCBA9035D28F74465AECB4FD32816CF6/ESP32_TOF_Multi.ino.partitions.bin" 0xe000 "/Users/kuku/Library/Arduino15/packages/esp32/hardware/esp32/3.3.6-RC1/tools/partitions/boot_app0.bin" 0x10000 "/Users/kuku/Library/Caches/arduino/sketches/DCBA9035D28F74465AECB4FD32816CF6/ESP32_TOF_Multi.ino.bin"
esptool v5.1.0
Serial port /dev/cu.usbserial-141410:
Connecting....Traceback (most recent call last):
File "esptool/init.py", line 1173, in _main
File "esptool/init.py", line 1032, in main
File "esptool/cli_util.py", line 229, in call
File "rich_click/rich_command.py", line 404, in call
File "click/core.py", line 1442, in call
File "rich_click/rich_command.py", line 187, in main
File "click/core.py", line 1830, in invoke
File "click/core.py", line 1226, in invoke
File "click/core.py", line 794, in invoke
File "click/decorators.py", line 34, in new_func
File "esptool/init.py", line 688, in write_flash_cli
File "esptool/cmds.py", line 1112, in attach_flash
File "esptool/loader.py", line 1091, in flash_id
File "esptool/loader.py", line 1653, in run_spiflash_command
File "esptool/loader.py", line 901, in read_reg
File "esptool/loader.py", line 565, in check_command
File "esptool/loader.py", line 495, in command
File "esptool/loader.py", line 431, in read
StopIteration
A fatal error occurred: The chip stopped responding.
Connected to ESP32 on /dev/cu.usbserial-141410:
Chip type: ESP32-D0WD-V3 (revision v3.1)
Features: Wi-Fi, BT, Dual Core + LP Core, 240MHz, Vref calibration in eFuse, Coding Scheme None
Crystal frequency: 40MHz
MAC: xxxxxx
Uploading stub flasher...
Running stub flasher...
Stub flasher running.
Changing baud rate to 921600...
Changed.
Hard resetting via RTS pin...
Failed uploading: uploading error: exit status 2
OK, I remebered that changing the upload speed could help. It then worked. At least the upload finished but the program doesn’t start. Last message I’m getting is:
”Hard resetting via RTS pin”