Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: esp32s3.cpu0: IR capture error; saw 0x1f not 0x01
[...]
Error: Unexpected OCD_ID = ffffffff
[...]
Error: Target not examined yet
(sometimes it says all zeroes instead of all ones)
We have also tried uploading with ESP-IDF a blank project. When uploading and directly connected the devices again don't show up on the USB bus. When uploading via JTAG it tries to connect to the JTAG and produces either a "Failed to connect to ESP32-S3: No serial data received", or less commonly on some uploads, "Invalid head of packet (0xFA): Possible serial noise or corruption." The green LED on the ESP-PROG flashes on when uploading via ESP-IDF; it is claimed online that this means it is transmitting data from the JTAG to the ESP.
It should be noted that even though we can't upload now, the ESPs are running the code that they previously had flashed on them just fine — we just can't upload new code.
Here is our PlatformIO config:
Code: Select all
[env:espressif32]
platform = espressif32
board = esp32-s3-devkitc-1-n16r8v
framework = arduino
monitor_speed = 115200
build_flags = -std=gnu++17
build_unflags = -std=gnu++11
debug_tool = esp-prog
upload_protocol = esp-prog
build_type = debug
debug_speed = 500
debug_init_break = tbreak setup
