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 Cannot attach debugging - ESP32 - Olimex-ARM-USB-TINY-H (Read 1473 times)
drumzzzzz
Newbies
*
Offline


Posts: 5
Location: Wisconsin
Joined: Aug 12th, 2023
Cannot attach debugging - ESP32 - Olimex-ARM-USB-TINY-H
Apr 3rd, 2024 at 1:29pm
Print Post  
Hello,
I've been experiencing a "Don't know how to run." error after attempting to attach for a debug session.
Attached are the build and GDB logs.

When running from the command line it appears to find the adapter (below); however, it does not appear to be connecting through COM26 - could this be the issue?

.exe" -d2 -c "gdb_port pipe; telnet_port disabled" -s ts/" -c "adapter_khz 5000" -f ts/interface/ftdi/olimex-arm-usb-tiny-h.cfg" -c "set ESP32_RTOS none" -f ts/board/esp-wroom-32.cfg" -c "init; reset halt"
Open On-Chip Debugger  v0.10.0-esp32-20211111 (2021-11-10-21:40)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
debug_level: 2

adapter speed: 5000 kHz

none
WARNING: boards/esp-wroom-32.cfg is deprecated, and may be removed in a future release.
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : clock speed 5000 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: Debug controller was reset.
Info : esp32.cpu0: Core was reset.
Info : esp32.cpu1: Debug controller was reset.
Info : esp32.cpu1: Core was reset.
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=0x401F8EA2, debug_reason=00000000
Info : Set GDB target to 'esp32.cpu0'
Info : esp32.cpu1: Target halted, PC=0x401F3FCB, debug_reason=00000000
Info : esp32.cpu0: Debug controller was reset.
Info : esp32.cpu0: Core was reset.
Info : esp32.cpu0: Target halted, PC=0x500000CF, debug_reason=00000000
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
Info : Listening on port 6666 for tcl connections
Info : telnet server disabled
Info : accepting 'gdb' connection from pipe
+Warn : No symbols for FreeRTOS!





  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2697
Joined: Feb 13th, 2019
Re: Cannot attach debugging - ESP32 - Olimex-ARM-USB-TINY-H
Reply #1 - Apr 3rd, 2024 at 1:56pm
Print Post  
Thanks for the report.

The COM port shouldn't be an issue as the connection is not run via Serial in any way when using the Olimex probe for debugging.

Can you attach the .vmgdbinit file from the build folder, and rename it to have the .txt extension before uploading?
  
Back to top
IP Logged
 
drumzzzzz
Newbies
*
Offline


Posts: 5
Location: Wisconsin
Joined: Aug 12th, 2023
Re: Cannot attach debugging - ESP32 - Olimex-ARM-USB-TINY-H
Reply #2 - Apr 3rd, 2024 at 2:01pm
Print Post  
Your welcome, thanks for the response.
I have attached the .vmgdbinit file as tex.t
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
drumzzzzz
Newbies
*
Offline


Posts: 5
Location: Wisconsin
Joined: Aug 12th, 2023
Re: Cannot attach debugging - ESP32 - Olimex-ARM-USB-TINY-H
Reply #3 - Apr 3rd, 2024 at 3:24pm
Print Post  
Got it to work  Smiley
Commented everything I had in board.txt and added "fg".

The previous settings were added found in a forum post for debugging over a year ago (no longer needed?)

Attached original board.txt file.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2697
Joined: Feb 13th, 2019
Re: Cannot attach debugging - ESP32 - Olimex-ARM-USB-TINY-H
Reply #4 - Apr 3rd, 2024 at 3:39pm
Print Post  
Thanks for confirming the solution.

We will check why these didn't work and try to simplify when the overrides are needed (not generally required for standard ESP32 boards, but are for ESP32C3/S2/S3 boards).

Can you clarify what you mean by adding "fg", or attach the final board.txt which worked?
  
Back to top
IP Logged
 
drumzzzzz
Newbies
*
Offline


Posts: 5
Location: Wisconsin
Joined: Aug 12th, 2023
Re: Cannot attach debugging - ESP32 - Olimex-ARM-USB-TINY-H
Reply #5 - Apr 3rd, 2024 at 3:48pm
Print Post  
I noticed in a previous post of adding a single "fg" to board.txt here:
https://www.visualmicro.com/forums/YaBB.pl?num=1563203059
Re: Unable to start debugging. Olimex AMT-USB-TINY + Esp32
Reply #10 

If related, my processor is a ESP32-MINI-1U-N4 (PICO-D2)
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2697
Joined: Feb 13th, 2019
Re: Cannot attach debugging - ESP32 - Olimex-ARM-USB-TINY-H
Reply #6 - Apr 3rd, 2024 at 3:50pm
Print Post  
Thanks for the detail, the "fg" is a display issue on that post as it should be the full override to change the config to the right one (which yours already has).

If you comment out everything in the board.txt does it continue to work as expected?
  
Back to top
IP Logged
 
drumzzzzz
Newbies
*
Offline


Posts: 5
Location: Wisconsin
Joined: Aug 12th, 2023
Re: Cannot attach debugging - ESP32 - Olimex-ARM-USB-TINY-H
Reply #7 - Apr 3rd, 2024 at 3:52pm
Print Post  
Ah yes, working perfectly without the "fg".
Thanks for the help!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint