Sysprogs forums › Forums › VisualGDB › Help on JLink GDB server Connection Fail
- This topic has 4 replies, 2 voices, and was last updated 1 year, 11 months ago by
tman2018.
-
AuthorPosts
-
September 26, 2022 at 01:32 #33238
tman2018
ParticipantHi There,
Having a issue for connecting JLink GDB server! Help please!
The log info from GDB stub log:
=============================================================
C:\Program Files\SEGGER\JLink_v780a\JLinkGDBServerCL.exe -select USB -device NUC029LEE -speed 33000 -if SWD -port 50692
SEGGER J-Link GDB Server V7.80a Command Line VersionJLinkARM.dll V7.80a (DLL compiled Sep 14 2022 15:42:42)
Command line: -select USB -device NUC029LEE -speed 33000 -if SWD -port 50692
—–GDB Server start settings—–
GDBInit file: none
GDB Server Listening port: 50692
SWO raw output listening port: 2332
Terminal I/O port: 2333
Accept remote connection: localhost only
Generate logfile: off
Verify download: off
Init regs on start: off
Silent mode: off
Single run mode: off
Target connection timeout: 0 ms
——J-Link related settings——
J-Link Host interface: USB
J-Link script: none
J-Link settings file: none
——Target related settings——
Target device: NUC029LEE
Target device parameters: none
Target interface: SWD
Target interface speed: 33000kHz
Target endian: littleConnecting to J-Link…
J-Link is connected.
Firmware: J-Link Pro V4 compiled Sep 24 2021 16:41:59
Hardware: V4.00
S/N: 174504218
Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
Checking target voltage…
Target voltage: 3.33 V
Listening on TCP/IP port 50692
Connecting to target…
Connected to target
Waiting for GDB connection…Connected to 127.0.0.1
GDB closed TCP/IP connection (Socket 948)=============================================================
September 26, 2022 at 13:35 #33243support
KeymasterHi,
It looks like gdb manages to connect to J-Link and then disconnects. Please try collecting and analyzing the GDB log as shown here: https://visualgdb.com/support/logsubmit
September 27, 2022 at 18:43 #33257tman2018
ParticipantHi,
Here is the logged info, advise please! Thanks!
====================================================
C:\Program Files (x86)\Sysprogs\VisualGDB\Keil\arm-none-eabi-gdb.exe –interpreter mi “D:\@coding\@bce\ap8557cdma\_AP8557x1.0828t191Bx0821V2(REV)_220118R0_Lib\.project\vgdb\AP8557V2REV\VisualGDB\Debug\AP8557V2REV.elf”
[ 0 ms] -gdb-version
[ 42 ms] C:\Program Files (x86)\Sysprogs\VisualGDB\Keil\arm-none-eabi-gdb.exe: warning: Couldn’t determine a path for the index cache directory.
[ 70 ms] =thread-group-added,id=”i1″
[ 70 ms] ~”GNU gdb (GDB) 9.2\n”
[ 70 ms] ~”Copyright (C) 2020 Free Software Foundation, Inc.\n”
[ 70 ms] ~”License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.”
[ 70 ms] ~”\nType \”show copying\” and \”show warranty\” for details.\n”
[ 70 ms] ~”This GDB was configured as \”–host=i686-w64-mingw32 –target=arm-none-eabi\”.\n”
[ 70 ms] ~”Type \”show configuration\” for configuration details.\n”
[ 70 ms] ~”For bug reporting instructions, please see:\n”
[ 70 ms] ~”<http://www.gnu.org/software/gdb/bugs/>.\n”
[ 71 ms] ~”Find the GDB manual and other documentation resources online at:\n <http://www.gnu.org/software/gdb/documentation/>.”
[ 71 ms] ~”\n\n”
[ 71 ms] ~”For help, type \”help\”.\n”
[ 71 ms] ~”Type \”apropos word\” to search for commands related to \”word\”…\n”
[ 76 ms] ~”Reading symbols from D:\\@coding\\@bce\\ap8557cdma\\_AP8557x1.0828t191Bx0821V2(REV)_220118R0_Lib\\.project\\vgdb\\AP8557V2REV\\VisualGDB\\Debug\\AP8557V2REV.elf…\n”
[ 96 ms] ~”GNU gdb (GDB) 9.2\n”
[ 96 ms] ~”Copyright (C) 2020 Free Software Foundation, Inc.\n”
[ 96 ms] ~”License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.”
[ 96 ms] ~”\nType \”show copying\” and \”show warranty\” for details.\n”
[ 97 ms] ~”This GDB was configured as \”–host=i686-w64-mingw32 –target=arm-none-eabi\”.\n”
[ 97 ms] ~”Type \”show configuration\” for configuration details.\n”
[ 97 ms] ~”For bug reporting instructions, please see:\n”
[ 97 ms] ~”<http://www.gnu.org/software/gdb/bugs/>.\n”
[ 97 ms] ~”Find the GDB manual and other documentation resources online at:\n <http://www.gnu.org/software/gdb/documentation/>.”
[ 97 ms] ~”\n\n”
[ 97 ms] ~”For help, type \”help\”.\n”
[ 97 ms] ~”Type \”apropos word\” to search for commands related to \”word\”.\n”
[ 97 ms] ^done
[ 97 ms] -list-features
[ 113 ms] ~”Exception condition detected on fd -1\n”
[ 114 ms] ^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”,”data-disassemble-a-option”]
[ 114 ms] -gdb-set verbose on
[ 129 ms] ~”Exception condition detected on fd -1\n”
[ 129 ms] ^done
[ 130 ms] -gdb-set disassembly-flavor intel
[ 131 ms] ~”Exception condition detected on fd -1\n”
[ 132 ms] ^error,msg=”No symbol \”disassembly\” in current context.”
[ 132 ms] -gdb-set print demangle off
[ 132 ms] ~”Exception condition detected on fd -1\n”
[ 133 ms] ^done
[ 134 ms] target remote :51007
[ 143 ms] ~”Exception condition detected on fd -1\n”
[ 143 ms] &”target remote :51007\n”
[ 2226 ms] ~”Remote debugging using :51007\n”
[ 10788 ms] &”Quit\n”
[ 10788 ms] ^error,msg=”Quit”====================================================
Attachments:
You must be logged in to view attached files.September 27, 2022 at 18:48 #33259support
KeymasterThanks, it looks like gdb never reports a successful connection to the J-Link GDB server. Please try running both of them manually:
C:\Program Files\SEGGER\JLink_v780a\JLinkGDBServerCL.exe -select USB -device NUC029LEE -speed 33000 -if SWD -port 50692
and gdb:
C:\Program Files (x86)\Sysprogs\VisualGDB\Keil\arm-none-eabi-gdb.exe “D:\@coding\@bce\ap8557cdma\_AP8557x1.0828t191Bx0821V2(REV)_220118R0_Lib\.project\vgdb\AP8557V2REV\VisualGDB\Debug\AP8557V2REV.elf” target remote :50692
Does it result in a successful debugging session? If not, please try disabling your firewall/antivirus and using a different port number.
September 28, 2022 at 00:12 #33269tman2018
ParticipantHi,
Thanks for prompt reply! Would give it a try!
-
AuthorPosts
- You must be logged in to reply to this topic.