debug with PlatfomIO and esp_prog in vscode

-1

My Proglem After many trie I finally result in debug console working some how and producin an error that I cannot solve. I uded xadig 2.5, platformio last edition, and example esp_blink that is ready made from plaformio. platformio.ini is the following [env:esp32dev32] platform = hps://github.com/platformio/platform-espressif32.git framework = espidf board = esp32doit-devkit-v1 monitor_speed = 115200 build_flags = ; hps://docs.espressif.com/projects/esp-idf/en/latest/get-started/get-started-wrover-kit.html#rgb-led -D CONFIG_BLINK_GPIO=2 debug_tool = esp-prog debug_init_break = tbreak setup

TERMINAL produces

Building .pio\build\esp32dev32\firmware.bin     
esptool.py v3.0
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [          ]   3.3% (used 10660 bytes from 327680 bytes)
Flash: [=         ]  14.1% (used 148090 bytes from 1048576 bytes)
============================================================================================================= [SUCCESS] Took 22.03 seconds =============================================================================================================
Terminal will be reused by tasks, press any key to close it.

DEBUG CONSOLE produces this

Processing esp32dev32 (platform: https://github.com/platformio/platform-espressif32.git; framework: espidf; board: esp32doit-devkit-v1)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: h**ps://docs.platformio.org/page/boards/espressif32/esp32doit-devkit-v1.html
PLATFORM: Espressif 32 (2.1.0+sha.a57403c) > DOIT ESP32 DEVKIT V1
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: 
 - framework-espidf 3.40100.200827 (4.1.0) 
 - tool-cmake 3.16`.4 
 - tool-esptoolpy 1.30000.201119 (3.0.0) 
 - tool-idf 1.0.1 
 - tool-mconf 1.4060000.20190628 (406.0.0) 
 - tool-ninja 1.9.0 
 - toolchain-esp32ulp 1.22851.191205 (2.28.51) 
 - toolchain-xtensa32 2.80200.200827 (8.2.0)
Reading CMake configuration
LDF: Library Dependency Finder -> http://bit.ly/   configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies
No dependencies
Building in debug mode
Compiling .pio\build\esp32dev32\esp-idf\src\blink.c.o
Generating LD script .pio\build\esp32dev32\esp32_out.ld
Archiving .pio\build\esp32dev32\esp-idf\libsodium\liblibsodium.a
Indexing .pio\build\esp32dev32\esp-idf\libsodium\liblibsodium.a
Archiving .pio\build\esp32dev32\esp-idf\wpa_supplicant\libwpa_supplicant.a
Indexing .pio\build\esp32dev32\esp-idf\wpa_supplicant\libwpa_supplicant.a
Generating project linker script .pio\build\esp32dev32\esp32.project.ld
Linking .pio\build\esp32dev32\firmware.elf
Retrieving maximum program size .pio\build\esp32dev32\firmware.elf
Checking size .pio\build\esp32dev32\firmware.elf
Building .pio\build\esp32dev32\firmware.bin
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [          ]   3.3% (used 10660 bytes from 327680 bytes)
Flash: [=         ]  14.1% (used 148090 bytes from 1048576 bytes)
esptool.py v3.0
========================= [SUCCESS] Took 21.54 seconds =========================
Reading symbols from c:\Users\user\Documents\PlatformIO\Projects\210125-125643-espidf-blink\.pio\build\esp32dev32\firmware.elf...
done.
PlatformIO Unified Debugger -> h**p://bit.ly/ pio-debug
PlatformIO: debug_tool = esp-prog
PlatformIO: Initializing remote target...
Open On-Chip Debugger  v0.10.0-esp32-20201202 (2020-12-02-17:38)
Licensed under GNU GPL v2
For bug reports, read
    h**p://openocd.org/doc/doxygen/bugs.html
adapter speed: 20000 kHz

WARNING: boards/esp-wroom-32.cfg is deprecated, and may be removed in a future release.
2
Info : FreeRTOS creation
adapter speed: 20000 kHz

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 : TAP auto0.tap has invalid IDCODE (0x0)
Info : TAP auto1.tap has invalid IDCODE (0x0)
Info : TAP auto2.tap has invalid IDCODE (0x0)
Info : TAP auto3.tap has invalid IDCODE (0x0)
Info : TAP auto4.tap has invalid IDCODE (0x0)
Info : TAP auto5.tap has invalid IDCODE (0x0)
Info : TAP auto6.tap has invalid IDCODE (0x0)
Info : TAP auto7.tap has invalid IDCODE (0x0)
Info : TAP auto8.tap has invalid IDCODE (0x0)
Info : TAP auto9.tap has invalid IDCODE (0x0)
Info : TAP auto10.tap has invalid IDCODE (0x0)
Info : TAP auto11.tap has invalid IDCODE (0x0)
Info : TAP auto12.tap has invalid IDCODE (0x0)
Info : TAP auto13.tap has invalid IDCODE (0x0)
Info : TAP auto14.tap has invalid IDCODE (0x0)
Info : TAP auto15.tap has invalid IDCODE (0x0)
Info : TAP auto16.tap has invalid IDCODE (0x0)
Info : TAP auto17.tap has invalid IDCODE (0x0)
Info : TAP auto18.tap has invalid IDCODE (0x0)
Warn : Unexpected idcode after end of chain: 83 0x00000000
Warn : Unexpected idcode after end of chain: 115 0x00000000
Warn : Unexpected idcode after end of chain: 147 0x00000000
Warn : Unexpected idcode after end of chain: 179 0x00000000
Warn : Unexpected idcode after end of chain: 211 0x00000000
Warn : Unexpected idcode after end of chain: 243 0x00000000
Warn : Unexpected idcode after end of chain: 275 0x00000000
Warn : Unexpected idcode after end of chain: 307 0x00000000
Warn : Unexpected idcode after end of chain: 339 0x00000000
Warn : Unexpected idcode after end of chain: 371 0x00000000
Warn : Unexpected idcode after end of chain: 403 0x00000000
Warn : Unexpected idcode after end of chain: 435 0x00000000
Warn : Unexpected idcode after end of chain: 467 0x00000000
Warn : Unexpected idcode after end of chain: 499 0x00000000
Warn : Unexpected idcode after end of chain: 531 0x00000000
Warn : Unexpected idcode after end of chain: 563 0x00000000
Warn : Unexpected idcode after end of chain: 595 0x00000000
Warn : Unexpected idcode after end of chain: 627 0x00000000
Error: double-check your JTAG setup (interface, speed, ...)
Error: Trying to use configured scan chain anyway...
Warn : AUTO auto0.tap - use "jtag newtap auto0 tap -irlen 2 -expected-id 0x00000000"
Error: auto0.tap: IR capture error; saw 0x0000 not 0x0001
Warn : Bypassing JTAG setup events due to errors
Info : accepting 'gdb' connection from pipe
Warn : No symbols for FreeRTOS!
Error: Target not examined yet
Error executing event gdb-attach on target esp32.cpu0:

Error: Target not halted
Error: auto_probe failed
Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'.
Error: attempted 'gdb' connection rejected
Error: error during select: Unknown error
.pioinit:11: Error in sourced command file:
Remote communication error.  Target disconnected.: Success.

Can You please Help?

 
c
visual-studio-code
platformio
asked on Stack Overflow Jan 25, 2021 by nikos42

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0