EthKit v1.2 Debugging issues
Posted: Thu Dec 03, 2020 7:37 am
Hi all,
I have been using the esp32 variants for some-time now and I have finally decided to try and setup the debugging tools so I dont have to use the printf/delay option anymore for analysing code.
I have an Ethernetkit v1.2 that comes with the on-board jtag, having started with several issues myself, I followed the documentation at:
https://docs.espressif.com/projects/esp ... ight=zadig
and
https://docs.espressif.com/projects/esp ... un-openocd
Though I keep getting stuck, I can confirm the WinUSB driver has overridden the older default windows one and I am now left with only 1 comport for general purpose UART as expected. Note that I currently have a completely new board, no peripherals are connected to it and all switches are in their default "ON" positions.
When I run the suggested command, though modified for my board I get:
No matter what I do or what driver/configuration I get I always seem to get the below errors.
If however the WinUSB drivers we not installed, I would instead get a different message:
So since installing it, it does appear to be working slightly better. Though still failing, but slightly less...
Finally, after reading a little bit around and playing with the vs code launch/tasks, and reading various forum posts etc. I ended up with some configuration options that should work better in the long run, though still fail for the same reason as #1.
If anyone could assist with this it would be awesome! I am very much looking forward to moving on from the my printf/delay debugging.
I have been using the esp32 variants for some-time now and I have finally decided to try and setup the debugging tools so I dont have to use the printf/delay option anymore for analysing code.
I have an Ethernetkit v1.2 that comes with the on-board jtag, having started with several issues myself, I followed the documentation at:
https://docs.espressif.com/projects/esp ... ight=zadig
and
https://docs.espressif.com/projects/esp ... un-openocd
Though I keep getting stuck, I can confirm the WinUSB driver has overridden the older default windows one and I am now left with only 1 comport for general purpose UART as expected. Note that I currently have a completely new board, no peripherals are connected to it and all switches are in their default "ON" positions.
When I run the suggested command, though modified for my board I get:
Code: Select all
$ openocd -f board/esp32-ethernet-kit-3.3v.cfg
Open On-Chip Debugger v0.10.0-esp32-20191114 (2019-11-14-14:19)
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
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Error: type 'esp32' is missing virt2phys
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling"
Info : clock speed 20000 kHz
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: esp32.cpu0: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors
Info : Listening on port 3333 for gdb connections
Code: Select all
Error: type 'esp32' is missing virt2phys
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Code: Select all
Info : Configured 2 cores
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Error: type 'esp32' is missing virt2phys
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Error: libusb_open() failed with LIBUSB_ERROR_ACCESS
Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6010, description '*', serial '*' at bus location '*'
Finally, after reading a little bit around and playing with the vs code launch/tasks, and reading various forum posts etc. I ended up with some configuration options that should work better in the long run, though still fail for the same reason as #1.
Code: Select all
> Executing task: openocd -s share/openocd/scripts -f interface/ftdi/esp32_devkitj_v1.cfg -f board/esp32-ethernet-kit-3.3v.cfg -c "init; reset halt; program_esp build/bootloader/bootloader.bin 0x1000 verify; program_esp build/partition_table/partition-table.bin 0x8000 verify; program_esp build/TestApp.bin 0x10000 verify" <
Open On-Chip Debugger v0.10.0-esp32-20191114 (2019-11-14-14:19)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
none separate
adapter speed: 20000 kHz
Warn : Interface already configured, ignoring
none separate
adapter speed: 20000 kHz
Info : Configured 2 cores
Error: type 'esp32' is missing virt2phys
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling"
Info : clock speed 20000 kHz
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: esp32.cpu0: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors
Info : Listening on port 3333 for gdb connections
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections