PlatformIO Community

LIBUSB_ERROR_NOT_FOUND, ESP-Prog

“Sorry, new users can only put one image in a post” so don’t complain that I didn’t supply enough info.

Trying to program an ESP-32 via ESP-Prog from PlatformIO Home 3.0.0 Core 4.1.0 in VSCode:
Version: 1.38.1 (system setup)
Commit: b37e54c98e1a74ba89e03073e5a3761284e3ffb0
Date: 2019-09-11T13:35:15.005Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 6.1.7601

There error I’m currently stuck on is:
PlatformIO Unified Debugger -> http://bit.ly/pio-debug
PlatformIO: debug_tool = esp-prog
PlatformIO: Initializing remote target…
Open On-Chip Debugger v0.10.0-esp32-20190708 (2019-07-08-11:04)
Licensed under GNU GPL v2
For bug reports, read
(removed link because “new users can only put…”)
none separate
adapter speed: 20000 kHz
Info : Configured 2 cores
esp32 interrupt mask on
Info : tcl server disabled
Info : telnet server disabled
Error: libusb_open() failed with LIBUSB_ERROR_NOT_FOUND
Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6010, description ‘’, serial '’ at bus location ‘*’

Warn : Flash driver of esp32.flash does not support free_driver_priv()
Warn : Flash driver of irom does not support free_driver_priv()
Warn : Flash driver of drom does not support free_driver_priv()
.pioinit:15: Error in sourced command file:
Remote communication error. Target disconnected.: No error.

but here is the port: (edit, removing pictures because “New users can only put one picture in a post”, )
USB Serial port COM18
FTDIBUS\COMPORT&VID_0403&PID_6010
FTDIBUS\COMPORT&VID_0403&PID_6010&MI_00

with that VID and PID clearly showing.

And here is what Device Manager is showing:

I originally had this:


And was told to do the zadig thing on both ports, then use JTAG for programming. My platform.io file looks like:

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
debug_tool = esp-prog
debug_init_break = tbreak setup
upload_protocol = esp-prog

But I have also tried commenting out that last line.

I have the “JTAG com n” connector hooked up to an ESP32 which is getting it’s own power.

Ok… I ran zadig yet again (5th time?) and now I have the magic preferred Device Manager screen:


and… I appear to have some form of communications with the device!

I’m still getting a GOB ton of errors:

Processing esp32dev (platform: espressif32; board: esp32dev; framework: arduino)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 1.11.1 > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: toolchain-xtensa32 2.50200.80 (5.2.0), framework-arduinoespressif32 2.10004.191002 (1.0.4), tool-esptoolpy 1.20600.0 (2.6.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 26 compatible libraries
Scanning dependencies...
No dependencies
Building in debug mode
Retrieving maximum program size .pio\build\esp32dev\firmware.elf
Checking size .pio\build\esp32dev\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
DATA:    [          ]   4.7% (used 15436 bytes from 327680 bytes)
PROGRAM: [==        ]  16.5% (used 216725 bytes from 1310720 bytes)
========================= [SUCCESS] Took 3.79 seconds =========================
Reading symbols from c:\Users\JamesN4\Documents\PlatformIO\Projects\Blink\.pio\build\esp32dev\firmware.elf...
done.
PlatformIO Unified Debugger -> http://bit.ly/pio-debug
PlatformIO: debug_tool = esp-prog
PlatformIO: Initializing remote target...
Open On-Chip Debugger  v0.10.0-esp32-20190708 (2019-07-08-11:04)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
none separate
adapter speed: 20000 kHz
Info : Configured 2 cores
esp32 interrupt mask on
Info : tcl server disabled
Info : telnet server disabled
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling"
Info : clock speed 20000 kHz
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : accepting 'gdb' connection from pipe
Error: No symbols for FreeRTOS
Info : Target halted. PRO_CPU: PC=0x40007BA1 (active)    APP_CPU: PC=0x400076E0
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x400076E0
Info : Flash mapping 0: 0x110010 -> 0x3f400010, 113 KB
Info : Flash mapping 1: 0x150018 -> 0x400d0018, 489 KB
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x400076E0
Info : Auto-detected flash size 4194303 KB
Info : Using flash size 4194303 KB
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x400076E0
Info : Flash mapping 0: 0x110010 -> 0x3f400010, 113 KB
Info : Flash mapping 1: 0x150018 -> 0x400d0018, 489 KB
Info : Using flash size 492 KB
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x400076E0
Info : Flash mapping 0: 0x110010 -> 0x3f400010, 113 KB
Info : Flash mapping 1: 0x150018 -> 0x400d0018, 489 KB
Info : Using flash size 116 KB
warning: Overlapping regions in memory map: ignoring
0x40007ba1 in ?? ()
Temporary breakpoint 1 at 0x400d0bf8: file src\main.cpp, line 4.
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Info : esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
Info : esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
** Programming Started **
auto erase enabled
** Programming Started **
auto erase enabled
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
wrote 16384 bytes from file C:/Users/JamesN4/.platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader_dio_40m.bin in 0.688068s (23.254 KiB/s)
wrote 16384 bytes from file C:/Users/JamesN4/.platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader_dio_40m.bin in 0.688068s (23.254 KiB/s)
** Programming Finished **
** Verify Started **
** Programming Finished **
** Verify Started **
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
read 15872 bytes from file C:/Users/JamesN4/.platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader_dio_40m.bin and flash bank 0 at offset 0x00001000 in 0.328033s (47.251 KiB/s)
contents differ
diff 0 address 0x00001004. Was 0x3c instead of 0xac
diff 1 address 0x00001005. Was 0x81 instead of 0x06
diff 2 address 0x00001006. Was 0x09 instead of 0x08
read 15872 bytes from file C:/Users/JamesN4/.platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader_dio_40m.bin and flash bank 0 at offset 0x00001000 in 0.328033s (47.251 KiB/s)
diff 3 address 0x00001008. Was 0x00 instead of 0xee
diff 4 address 0x00001017. Was 0x00 instead of 0x01
diff 5 address 0x00001018. Was 0x00 instead of 0x18
contents differ
diff 0 address 0x00001004. Was 0x3c instead of 0xac
diff 1 address 0x00001005. Was 0x81 instead of 0x06
(snip)
diff 126 address 0x000010a4. Was 0x0a instead of 0x69
diff 127 address 0x000010a5. Was 0x00 instead of 0x6c
More than 128 errors, the rest are not printed.
diff 123 address 0x000010a1. Was 0x65 instead of 0x2d
diff 124 address 0x000010a2. Was 0x3a instead of 0x62
diff 125 address 0x000010a3. Was 0x0d instead of 0x75
embedded:startup.tcl:480: Error: ** Verify Failed **
in procedure 'program_esp32'
in procedure 'program_error' called at file "C:/Users/JamesN4/.platformio/packages/tool-openocd-esp32/share/openocd/scripts/target/esp32.cfg", line 138
at file "embedded:startup.tcl", line 480
diff 126 address 0x000010a4. Was 0x0a instead of 0x69
diff 127 address 0x000010a5. Was 0x00 instead of 0x6c
More than 128 errors, the rest are not printed.
embedded:startup.tcl:480: Error: ** Verify Failed **
in procedure 'program_esp32'
in procedure 'program_error' called at file "C:/Users/JamesN4/.platformio/packages/tool-openocd-esp32/share/openocd/scripts/target/esp32.cfg", line 138
at file "embedded:startup.tcl", line 480
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Info : esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
Info : esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
** Programming Started **
** Programming Started **
auto erase enabled
auto erase enabled
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
wrote 4096 bytes from file c:/Users/JamesN4/Documents/PlatformIO/Projects/Blink/.pio/build/esp32dev/partitions.bin in 0.615062s (6.503 KiB/s)
wrote 4096 bytes from file c:/Users/JamesN4/Documents/PlatformIO/Projects/Blink/.pio/build/esp32dev/partitions.bin in 0.615062s (6.503 KiB/s)
** Programming Finished **
** Verify Started **
** Programming Finished **
** Verify Started **
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
read 3072 bytes from file c:/Users/JamesN4/Documents/PlatformIO/Projects/Blink/.pio/build/esp32dev/partitions.bin and flash bank 0 at offset 0x00008000 in 0.285029s (10.525 KiB/s)
contents differ
diff 0 address 0x00008003. Was 0x01 instead of 0x02
diff 1 address 0x00008005. Was 0xf0 instead of 0x90
diff 2 address 0x00008009. Was 0x10 instead of 0x50
read 3072 bytes from file c:/Users/JamesN4/Documents/PlatformIO/Projects/Blink/.pio/build/esp32dev/partitions.bin and flash bank 0 at offset 0x00008000 in 0.285029s (10.525 KiB/s)
diff 3 address 0x0000800c. Was 0x70 instead of 0x6e
diff 4 address 0x0000800d. Was 0x68 instead of 0x76
diff 5 address 0x0000800e. Was 0x79 instead of 0x73
contents differ
diff 0 address 0x00008003. Was 0x01 instead of 0x02
(snip)
diff 74 address 0x000080bb. Was 0x00 instead of 0x5d
diff 78 address 0x000080bf. Was 0x00 instead of 0x07
embedded:startup.tcl:480: Error: ** Verify Failed **
in procedure 'program_esp32'
in procedure 'program_error' called at file "C:/Users/JamesN4/.platformio/packages/tool-openocd-esp32/share/openocd/scripts/target/esp32.cfg", line 138
at file "embedded:startup.tcl", line 480
diff 75 address 0x000080bc. Was 0x00 instead of 0xb9
diff 76 address 0x000080bd. Was 0x00 instead of 0x7a
diff 77 address 0x000080be. Was 0x00 instead of 0x25
diff 78 address 0x000080bf. Was 0x00 instead of 0x07
embedded:startup.tcl:480: Error: ** Verify Failed **
in procedure 'program_esp32'
in procedure 'program_error' called at file "C:/Users/JamesN4/.platformio/packages/tool-openocd-esp32/share/openocd/scripts/target/esp32.cfg", line 138
at file "embedded:startup.tcl", line 480
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Info : esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
Info : esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
** Programming Started **
** Programming Started **
auto erase enabled
auto erase enabled
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
wrote 8192 bytes from file C:/Users/JamesN4/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin in 0.638064s (12.538 KiB/s)
wrote 8192 bytes from file C:/Users/JamesN4/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin in 0.638064s (12.538 KiB/s)
** Programming Finished **
** Verify Started **
** Programming Finished **
** Verify Started **
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
read 8192 bytes from file C:/Users/JamesN4/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin and flash bank 0 at offset 0x0000e000 in 0.311031s (25.721 KiB/s)
contents differ
diff 0 address 0x0000e000. Was 0xff instead of 0x01
diff 1 address 0x0000e001. Was 0xff instead of 0x00
diff 2 address 0x0000e002. Was 0xff instead of 0x00
read 8192 bytes from file C:/Users/JamesN4/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin and flash bank 0 at offset 0x0000e000 in 0.311031s (25.721 KiB/s)
diff 3 address 0x0000e003. Was 0xff instead of 0x00
diff 4 address 0x0000e01c. Was 0xff instead of 0x9a
(snip)
diff 127 address 0x0000f077. Was 0x00 instead of 0xff
More than 128 errors, the rest are not printed.
diff 123 address 0x0000f073. Was 0x00 instead of 0xff
diff 124 address 0x0000f074. Was 0x00 instead of 0xff
diff 125 address 0x0000f075. Was 0x00 instead of 0xff
embedded:startup.tcl:480: Error: ** Verify Failed **
in procedure 'program_esp32'
in procedure 'program_error' called at file "C:/Users/JamesN4/.platformio/packages/tool-openocd-esp32/share/openocd/scripts/target/esp32.cfg", line 138
at file "embedded:startup.tcl", line 480
diff 126 address 0x0000f076. Was 0x00 instead of 0xff
diff 127 address 0x0000f077. Was 0x00 instead of 0xff
More than 128 errors, the rest are not printed.
embedded:startup.tcl:480: Error: ** Verify Failed **
in procedure 'program_esp32'
in procedure 'program_error' called at file "C:/Users/JamesN4/.platformio/packages/tool-openocd-esp32/share/openocd/scripts/target/esp32.cfg", line 138
at file "embedded:startup.tcl", line 480
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Info : esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
Info : esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
** Programming Started **
auto erase enabled
** Programming Started **
auto erase enabled
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
wrote 217088 bytes from file c:/Users/JamesN4/Documents/PlatformIO/Projects/Blink/.pio/build/esp32dev/firmware.bin in 1.347135s (157.371 KiB/s)
wrote 217088 bytes from file c:/Users/JamesN4/Documents/PlatformIO/Projects/Blink/.pio/build/esp32dev/firmware.bin in 1.347135s (157.371 KiB/s)
** Programming Finished **
** Verify Started **
** Programming Finished **
** Verify Started **
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
read 216848 bytes from file c:/Users/JamesN4/Documents/PlatformIO/Projects/Blink/.pio/build/esp32dev/firmware.bin and flash bank 0 at offset 0x00010000 in 1.127112s (187.883 KiB/s)
contents differ
diff 0 address 0x00010001. Was 0x07 instead of 0x06
diff 1 address 0x00010004. Was 0xac instead of 0x70
diff 2 address 0x00010005. Was 0x07 instead of 0x19
read 216848 bytes from file c:/Users/JamesN4/Documents/PlatformIO/Projects/Blink/.pio/build/esp32dev/firmware.bin and flash bank 0 at offset 0x00010000 in 1.127112s (187.883 KiB/s)
diff 3 address 0x00010008. Was 0x00 instead of 0xee
diff 4 address 0x00010017. Was 0x00 instead of 0x01
diff 5 address 0x00010018. Was 0x00 instead of 0x20
contents differ
diff 0 address 0x00010001. Was 0x07 instead of 0x06
diff 1 address 0x00010004. Was 0xac instead of 0x70
(snip)
diff 127 address 0x000100c0. Was 0x00 instead of 0x48
More than 128 errors, the rest are not printed.
diff 123 address 0x000100a2. Was 0x00 instead of 0xff
diff 124 address 0x000100b4. Was 0x00 instead of 0x48
diff 125 address 0x000100b8. Was 0x00 instead of 0x48
embedded:startup.tcl:480: Error: ** Verify Failed **
in procedure 'program_esp32'
in procedure 'program_error' called at file "C:/Users/JamesN4/.platformio/packages/tool-openocd-esp32/share/openocd/scripts/target/esp32.cfg", line 138
at file "embedded:startup.tcl", line 480
diff 126 address 0x000100bc. Was 0x00 instead of 0x48
diff 127 address 0x000100c0. Was 0x00 instead of 0x48
More than 128 errors, the rest are not printed.
embedded:startup.tcl:480: Error: ** Verify Failed **
in procedure 'program_esp32'
in procedure 'program_error' called at file "C:/Users/JamesN4/.platformio/packages/tool-openocd-esp32/share/openocd/scripts/target/esp32.cfg", line 138
at file "embedded:startup.tcl", line 480
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Info : esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
Info : esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
PlatformIO: Initialization completed
PlatformIO: Resume the execution to `debug_init_break = tbreak setup`
PlatformIO: More configuration options -> http://bit.ly/pio-debug
Error: esp32: Failed to read insn (-4)!
Error: esp32: Failed to add SW BP!
Error: can't add breakpoint: resource not available
Warning:
Cannot insert breakpoint 1.
Cannot access memory at address 0x400d0bf8

Ok… Apparently they are serious about having only one source of power, USB /or/ direct, but not both. After resetting, it appears to be ok.

Also, for some strange reason it was detecting the ESP-32 Devkit C v4 as an Adafruit Huzzah ESP-8266. (bottom status line). Correcting that may have helped.

The main thing was just re-doing the driver thing over and over and over until it finally showed up the way it is supposed to in the Device Manager list:

BTW: This guide


was very helpful, although his pictures clearly show him connecting TCK to pin D1 (wrong) vs 13 as is correct.

So far this is… useable… slow, but usable.

2 Likes

I’ve bumped your permissions, so you shouldn’t have issues posting multiple images now. Looks like you’re making progress now though! @manuelbl will be happy you found his guide useful… I know I did! :wink:

btw, when you use ``` (triple backticks) before and after code blocks the forum uses a monospace format, doesn’t try process it for formatting codes, and ignores links, etc.

1 Like