Hi,
I just received nRF52-DK recently.
I am using Ubuntu 16.04 (64-bits) OS.
I installed JLink_Linux_V620b_x86_64.deb and was using nRF5x-Command-Line-Tools_9_6_0_Linux-x86_64.tar
I could download the demo "Heart rate monitor" to the development board.
nrfjprog -f nrf52 --program heart_rate_demo.hex --sectorerase
nrfjprog -f nrf52 --reset
I could run the demo with my mobile phone.
However, when I wanted to connect with the J-Link GDB Server.
JLinkGDBServer -if JTAG -device nRF52832_xxAA
I got the below messages:
SEGGER J-Link GDB Server V6.20b Command Line Version
JLinkARM.dll V6.20b (DLL compiled Sep 22 2017 17:58:29)
Command line: -if JTAG -device nRF52832_xxAA
-----GDB Server start settings-----
GDBInit file: none
GDB Server Listening port: 2331
SWO raw output listening port: 2332
Terminal I/O port: 2333
Accept remote connection: yes
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: nRF52832_xxAA
Target interface: JTAG
Target interface speed: 1000kHz
Target endian: little
Connecting to J-Link...
J-Link is connected.
Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jul 24 2017 17:30:12
Hardware: V1.00
S/N: 682083335
Checking target voltage...
Target voltage: 3.30 V
Listening on TCP/IP port 2331
Connecting to target...ERROR: Could not connect to target.
Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection...
Shutting down...
Could not connect to target.
I have googled many pages with no help.
Please give me some direction. Thanks!