Well, it’s interesting about Manuel’s wiring suggestion because I’d already used a simple Youtube guide to wire it up and this didn’t use two USB’s. I’d already come across Manuels page when researching my earlier problems and have had both, two RS232 HS entries working and at another point one of those and a COM entry instead. In another post from Manuel he mentions that it’s probably best to use the 3.3V supply from the esp-prog to power the ESP32 and I wasn’t sure how this reconcilled with the two USB approach he’d suggested.
Yes, that AZ board is mine.
o.exe run --verbose --target upload --environment az-delivery-devkit-v4 <
Processing az-delivery-devkit-v4 (platform: espressif32; board: az-delivery-devkit-v4; framework: arduino; board_build.f_cpu: 20000000L; upload_speed: 115200; monitor_speed: 115200; debug_tool: esp-prog; upload_protocol: esp-prog; build_type: debug; debug_init_break: tbreak setup; debug_speed: 500; build_flags: -O0 -ggdb3 -g3)
CONFIGURATION: Redirecting...
PLATFORM: Espressif 32 (3.1.0) > AZ-Delivery ESP-32 Dev Kit C V4
HARDWARE: ESP32 20MHz, 520KB RAM, 16MB 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:
- framework-arduinoespressif32 3.10005.210223 (1.0.5)
- tool-esptoolpy 1.30000.201119 (3.0.0)
- tool-mkspiffs 2.230.0 (2.30)
- tool-openocd-esp32 2.1000.20201202 (10.0)
- toolchain-xtensa32 2.50200.97 (5.2.0)
LDF: Library Dependency Finder → Library Dependency Finder (LDF) — PlatformIO latest documentation
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 28 compatible libraries
Scanning dependencies…
No dependencies
Building in debug mode
([“checkprogsize”], [“.pio\build\az-delivery-devkit-v4\firmware.elf”])
MethodWrapper([“checkprogsize”], [“.pio\build\az-delivery-devkit-v4\firmware.elf”])
Advanced Memory Usage is available via “PlatformIO Home > Project Inspect”
RAM: [ ] 2.5% (used 13404 bytes from 532480 bytes)
Flash: [== ] 15.4% (used 202264 bytes from 1310720 bytes)
.pio\build\az-delivery-devkit-v4\firmware.elf :
section size addr
.rtc.text 0 1074528256
.rtc.dummy 0 1073217536
.rtc.force_fast 0 1073217536
.rtc_noinit 0 1342177792
.rtc.force_slow 0 1342177792
.iram0.vectors 1024 1074266112
.iram0.text 43448 1074267136
.dram0.data 8956 1073470304
.noinit 0 1073479260
.dram0.bss 4448 1073479264
.flash.rodata 48804 1061158944
.flash.text 100032 1074593816
.debug_frame 83832 0
.debug_info 1466086 0
.debug_abbrev 182103 0
.debug_loc 553243 0
.debug_aranges 32824 0
.debug_ranges 42560 0
.debug_line 726792 0=
.debug_str 909699 0
.comment 477 0
.xtensa.info 56 0
.xt.prop._ZTV9Printable 12 0
.xt.lit._ZN9IPAddressD5Ev 0 0
.xt.prop._ZN9IPAddressD5Ev 0 0
.xt.prop._ZN9IPAddressD2Ev 36 0
.xt.prop._ZN9IPAddressD0Ev 36 0
.xt.prop._ZTV9IPAddress 12 0
.xt.lit._ZN5Print5writeEPKc 8 0
.xt.prop._ZN5Print5writeEPKc 60 0
.xt.lit._ZN6String4initEv 8 0
.xt.prop._ZN6String4initEv 60 0
.xt.prop._ZNK6String3lenEv 60 0
.xt.prop._ZN6String6setLenEi 60 0
.xt.prop._ZNK6String7wbufferEv 48 0
Open On-Chip Debugger v0.10.0-esp32-20201202 (2020-12-02-17:38)
Licensed under GNU GPL v2
.xt.prop._ZTISt9exception 12 0
For bug reports, read
.xt.prop._ZTISt9bad_alloc 12 0
OpenOCD: Bug Reporting
debug_level: 2
.xt.prop._ZTVN10__cxxabiv120__si_class_type_infoE 12 0
.xt.prop._ZTVN10__cxxabiv117__class_type_infoE 12 0
adapter speed: 20000
kH.debug_macro 154961 0
z
Total 4359793
WARNING: boards/esp-wroom-32.cfg is deprecated, and may be removed in a future release.
([“upload”], [“.pio\build\az-delivery-devkit-v4\firmware.bin”])
Info : FreeRTOS creation
AVAILABLE: esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esp-prog
Info : FreeRTOS creation
openocd -d2 -s “.platformio/packages/tool-openocd-esp32/share/openocd/scripts” -f interface/ftdi/esp32_devkitj_v1.cfg -f board/esp-wroom-32.cfg -c “adapter_khz 500” -c “program_esp {{.pio\build\az-delivery-devkit-v4\firmware.bin}} 0x1000adapter speed: 500
kHz
0 v
erify” -c “program_esp {{C:/Users//.platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader_dio_40m.bin}}
0x1000 verify” -c “program_esp {{C:/Users//Documents/PlatformIO/Projects/Test after reinstallation/.pio/build/az-delivery-devkit-v4/partitions.bin}} 0x8000 verify” -c “program_esp {{C:/Users//.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin}} 0xe000 verify” -c “reset run; shutdown”
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : clock speed 500 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 : esp32.cpu0: Target halted, PC=0x40000400, debug_reason=00000001
Info : esp32.cpu1: Target halted, PC=0x40000400, debug_reason=00000000
Info : Listening on port 3333 for gdb connections
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 : esp32.cpu0: Debug controller was reset.
Info : esp32.cpu0: Core was reset.
Info : esp32.cpu0: Target halted, PC=0x500000CF, debug_reason=00000000
Info : Set GDB target to ‘esp32.cpu0’
Info : esp32.cpu0: Core was reset.
Info : esp32.cpu0: Target halted, PC=0x40000400, debug_reason=00000000
Info : esp32.cpu1: Debug controller was reset.
Info : esp32.cpu1: Core was reset.
Info : esp32.cpu1: Target halted, PC=0x40000400, debug_reason=00000000
** Programming Started **
Info : esp32.cpu0: Target halted, PC=0x40091856, debug_reason=00000001
Info : Flash mapping 0: 0x10020 → 0x3f400020, 53 KB
Info : Flash mapping 1: 0x20018 → 0x400d0018, 103 KB
Info : esp32.cpu0: Target halted, PC=0x40091856, debug_reason=00000001
Info : Auto-detected flash bank ‘esp32.cpu1.flash’ size 4096 KB
Info : Using flash bank ‘esp32.cpu1.flash’ size 4096 KB
Info : esp32.cpu0: Target halted, PC=0x40091856, debug_reason=00000001
Info : esp32.cpu0: Target halted, PC=0x40091856, debug_reason=00000001
** Programming Finished **
** Verify Started **
Info : esp32.cpu0: Target halted, PC=0x40091856, debug_reason=00000001
Info : Flash mapping 0: 0x10020 → 0x3f400020, 53 KB
Info : Flash mapping 1: 0x20018 → 0x400d0018, 103 KB
Info : esp32.cpu0: Target halted, PC=0x40091856, debug_reason=00000001
Info : Auto-detected flash bank ‘esp32.cpu0.flash’ size 4096 KB
Info : Using flash bank ‘esp32.cpu0.flash’ size 4096 KB
Info : esp32.cpu0: Target halted, PC=0x40091856, debug_reason=00000001
embedded:startup.tcl:449: Error: ** Verify Failed **
in procedure ‘program_esp’
in procedure ‘program_error’ called at file “C:/Users//.platformio/packages/tool-openocd-esp32/share/openocd/scripts/target/esp_common.cfg”, line 92
at file “embedded:startup.tcl”, line 449
*** [upload] Error 1