Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ESP-PROG debugging problems (Read 2350 times)
jasper2
Newbies
*
Offline


Posts: 5
Joined: Feb 24th, 2015
ESP-PROG debugging problems
Nov 25th, 2019 at 4:51pm
Print Post  
I have connected an ESP-PROG debugger to an ESP-32 devkit device using the following pins:
TWS ->D14 green
TCK -> D13 purple
TDO -> D15 orange
TDI ->  D12 blue

GND to GND

the jumper is set to 3.3 V on the ESP-PROG

When i plug it in to the USB port i get the 2 serial ports generated by the ESP-PROG as per the Expressif driver instructions (I didnt need to install any drivers manually).

I follow the visual micro instructions and select ESP32 PROG from the list of hardware debuggers.

I click "Debug-> start debugging, the sketch uploads to the ESP32 and I get the dreaded: "unable to start debugging. Unable to establish a connection to GDB.." error. 


my debug output is as follows:
Starting: "C:\ProgramData\vmicro\tools\openocd-espressif-esp32-10.0.1\bin/openocd.exe" -d2 -l devkit-v1\Debug/HX711_basic_example.ino_DebugOpenOCD.log}" -s s/" -f s/interface/ftdi/minimodule-lowcost.cfg" -c "set ESP32_RTOS none" -f s/board/esp-wroom-32.cfg" -c "init"
Starting: c\1.22.0-80-g6c4433a-5.2.0/bin\xtensa-esp32-elf-gdb.exe" --interpreter=mi -ex "set remote hardware-watchpoint-limit 2" -ex "mon reset halt" -ex "flushregs" -ex "thb app_main" -ex "c"
"C:\ProgramData\vmicro\tools\openocd-espressif-esp32-10.0.1\bin/openocd.exe" exited with code 1 (0x1).



any tips would be appreciated!
« Last Edit: Nov 25th, 2019 at 4:52pm by jasper2 »  
Back to top
 
IP Logged
 
jasper2
Newbies
*
Offline


Posts: 5
Joined: Feb 24th, 2015
Re: ESP-PROG debugging problems
Reply #1 - Nov 25th, 2019 at 4:56pm
Print Post  
my ....OCD.log file contains the following:

none
adapter speed: 2000 kHz
Info : Configured 2 cores
esp32 interrupt mask on
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 'Dual RS232-HS', 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()
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: ESP-PROG debugging problems
Reply #2 - Nov 25th, 2019 at 5:20pm
Print Post  
Thanks for the detailed information.

From the output in the OCD Log it appears it cannot find the Debugger USB device.

Check the USB Drivers are installed for "Interface 0" of the ESP32-PROG device, using the Zadig tool - more detailed information is below:


ESP32 Debug Overview: https://www.visualmicro.com/page/ESP32-Debugging.aspx

ESP32 Debug Instructable: https://www.instructables.com/id/Arduino-GDB-Debug-ESP32/

Video Including Driver Installation: https://www.youtube.com/watch?v=m0-qlb0Vjms
« Last Edit: Nov 25th, 2019 at 5:21pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint