Sysprogs forums › Forums › VisualGDB › Fail: https://visualgdb.com/tutorials/esp32/
- This topic has 6 replies, 2 voices, and was last updated 7 years, 6 months ago by donvukovic.
-
AuthorPosts
-
June 9, 2017 at 19:30 #11442donvukovicParticipant
I have been trying for days to get this tutorial to work.
At step 10, I get an “unable to connect message”.
I have re-installed VisualGDB, I have reloaded the Olimex drivers, ( re-installing V_GDB and re-starting VS2017 community says the driver is wrong for OpenOCD and reinstalled the correct driver) (thank you)
But I still get the timeout error.
What can I check, re-install or do, to get this working.
June 9, 2017 at 20:14 #11443supportKeymasterHi,
This depends on the exact type of error you get. Could you paste the entire log from “test OpenOCD settings” here?
June 9, 2017 at 20:24 #11444donvukovicParticipantC:\SysGCC\esp32\esp32-bsp\OpenOCD\bin\openocd.exe -f interface/ftdi/olimex-arm-usb-ocd-h.cfg -f target/esp32.cfg -c “adapter_khz 3000”
Open On-Chip Debugger 0.9.0 (2017-05-09)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport “jtag”. To override use ‘transport select <transport>’.
adapter speed: 3000 kHz
Info : clock speed 3000 kHz
Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway…
Error: esp32.cpu0: IR capture error; saw 0x1f not 0x01
Warn : Bypassing JTAG setup events due to errors
Info : esp32.cpu0: Debug controller was reset (pwrstat=0xFF, after clear 0xFF).
Info : esp32.cpu0: Core was reset (pwrstat=0xFF, after clear 0xFF).
Info : esp32.cpu1: Debug controller was reset (pwrstat=0xFF, after clear 0xFF).
Info : esp32.cpu1: Core was reset (pwrstat=0xFF, after clear 0xFF).
Info : accepting ‘telnet’ connection on tcp/4444
shutdown command invoked
Info : dropped ‘telnet’ connectionJune 9, 2017 at 20:28 #11445supportKeymasterHi,
This looks like a JTAG wiring problem. Please double-check the JTAG pins you are using and ensure you have no other hardware connected to them.
June 9, 2017 at 20:55 #11446donvukovicParticipantC:\SysGCC\esp32\esp32-bsp\OpenOCD\bin\openocd.exe -f interface/ftdi/olimex-arm-usb-ocd-h.cfg -f target/esp32.cfg -c “adapter_khz 3000”
Open On-Chip Debugger 0.9.0 (2017-05-09)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport “jtag”. To override use ‘transport select <transport>’.
adapter speed: 3000 kHz
Info : clock speed 3000 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 (pwrstat=0x5F, after clear 0x0F).
Info : esp32.cpu0: Core was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32.cpu1: Debug controller was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32.cpu1: Core was reset (pwrstat=0x5F, after clear 0x0F).
Info : accepting ‘telnet’ connection on tcp/4444
shutdown command invoked
Info : dropped ‘telnet’ connectionJune 9, 2017 at 22:17 #11447donvukovicParticipantContinuing to follow the ../tutorials/esp32
At step 16:
Your VisualGDB trial expires in 25 days!
C:\SysGCC\esp32\bin\xtensa-esp32-msvs-gdb.exe –interpreter mi C:\Users\Donald\Documents\visualStudio2017\Projects\ESP32DEMO\VisualGDB\Debug\ESP32DEMO
-gdb-version
=thread-group-added,id=”i1″
GNU gdb (GDB) 7.10
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type “show copying”
and “show warranty” for details.
This GDB was configured as “–host=i686-pc-mingw32 –target=xtensa-esp32-elf”.
Type “show configuration” for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type “help”.
Type “apropos word” to search for commands related to “word”…
Reading symbols from C:\Users\Donald\Documents\visualStudio2017\Projects\ESP32DEMO\VisualGDB\Debug\ESP32DEMO…
done.
GNU gdb (GDB) 7.10
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type “show copying”
and “show warranty” for details.
This GDB was configured as “–host=i686-pc-mingw32 –target=xtensa-esp32-elf”.
Type “show configuration” for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type “help”.
Type “apropos word” to search for commands related to “word”.
OK
-list-features
^done,features=[“frozen-varobjs”,”pending-breakpoints”,”thread-info”,”data-read-memory-bytes”,”breakpoint-notifications”,”ada-task-info”,”language-option”,”info-gdb-mi-command”,”undefined-command-error-code”,”exec-run-start-option”]
-gdb-set disassembly-flavor intel
No symbol “disassembly” in current context.
-gdb-set print demangle off
OK
-break-insert -f main
&”Function \”main\” not defined.\n”
^done,bkpt={number=”1″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”<PENDING>”,pending=”main”,times=”0″,original-location=”main”}
Warning: could not set a breakpoint on main. ‘Step into new instance’ will not work.
-break-delete 1
OK
target remote :3333
&”target remote :3333\n”
Remote debugging using :3333
=thread-group-started,id=”i1″,pid=”42000″
=thread-created,id=”1″,group-id=”i1″
=thread-created,id=”2″,group-id=”i1″
../../../../src/gdb-7.10/gdb/inline-frame.c:171: internal-error: inline_frame_this_id: Assertion `!frame_id_eq (*this_id, outer_frame_id)’ failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session?
(y or n) [answered Y; input not from terminal]
&”\nThis is a bug, please report it.”
&” For instructions, see:\n<http://www.gnu.org/software/gdb/bugs/>.”
&”\n\n”
../../../../src/gdb-7.10/gdb/inline-frame.c:171: internal-error: inline_frame_this_id: Assertion `!frame_id_eq (*this_id, outer_frame_id)’ failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB?
(y or n) [answered Y; input not from terminal]
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application’s support team for more information.
vj+z1: GDB session exited prematurely. Please verify that the project is built, the selected GDB binary exists and the working directory is specified correctly.at vj.b2()
at VisualGDB.GDBDebugEngine.d1(rw b, a a)
June 9, 2017 at 23:17 #11448donvukovicParticipantOK, I found it. Reset the board.
-
AuthorPosts
- You must be logged in to reply to this topic.