Friday, May 25th 2018, 1:10pm UTC+2

You are not logged in.

  • Login
  • Register

jjrosent

Beginner

Date of registration: Oct 10th 2014

Posts: 2

1

Friday, October 10th 2014, 9:16am

Jlink EDU jlinkgdbserver cant find rfduino nrf51822 on mac, version 4.92

Im on mac, Jlink V4.92


I can program the rfduino successfully with jlinkexe, but jlinkgdbserver cant find it? I think my pinout is fine as I can program, unless theres a wire used for debugging but not programming?


JLinkExe -if SWD -device nRF51822 upload.script || true
SEGGER J-Link Commander V4.92 ('?' for help)
Compiled Sep 30 2014 09:55:25

Script file read successfully.
Info: Device "NRF51822_XXAA" selected (257 KB flash, 16 KB RAM).
DLL version V4.92, compiled Sep 30 2014 09:55:19
Firmware: J-Link ARM V8 compiled Sep 22 2014 23:26:43
Hardware: V8.00
S/N: XXXXXXXXX
OEM: SEGGER-EDU
Feature(s): FlashBP, GDB
VTarget = 3.287V
Info: Found SWD-DP with ID 0x0BB11477
Info: Found Cortex-M0 r0p0, Little endian.
Info: FPUnit: 4 code (BP) slots and 0 literal slots
Cortex-M0 identified.
Target interface speed: 100 kHz
Processing script file...


Reset delay: 0 ms
Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.

Downloading file [merged.hex]...Info: J-Link: Flash download: Flash programming performed for 1 range (66560 bytes)
Info: J-Link: Flash download: Total time needed: 10.778s (Prepare: 0.532s, Compare: 0.729s, Erase: 0.962s, Program: 8.496s, Verify: 0.004s, Restore: 0.052s)
O.K.

Reset delay: 0 ms
Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.


Script processing completed.

jacob:BLE_Hids_monolith jacobrosenthal$ JLinkGDBServer -device nrf51822 -if swd -speed 4000 -noir
SEGGER J-Link GDB Server V4.92 Command Line Version

JLinkARM.dll V4.92 (DLL compiled Sep 30 2014 09:55:19)

-----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: 5 sec.
------J-Link related settings------
J-Link Host interface: USB
J-Link script: none
J-Link settings file: none
------Target related settings------
Target device: nrf51822
Target interface: SWD
Target interface speed: 4000kHz
Target endian: little

Connecting to J-Link...
J-Link is connected.
Firmware: J-Link ARM V8 compiled Sep 22 2014 23:26:43
Hardware: V8.00
S/N: XXXXXXXXX
OEM: SEGGER-EDU
Feature(s): FlashBP, GDB
Checking target voltage...
Target voltage: 3.28 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...
jacob:BLE_Hids_monolith jacobrosenthal$

SEGGER - Johannes

Super Moderator

Date of registration: Aug 31st 2012

Posts: 379

2

Friday, October 10th 2014, 11:06am

Hi,

Quoted

I think my pinout is fine as I can program, unless theres a wire used for debugging but not programming?
The pins uses for debugging and programming are the same, since it both uses SWD.
Which signals are connected to J-Link? It should be at least SWDIO and SWCLK. Is RESET connected, too?
Which rfduino are you using? This one: http://www.rfduino.com/product/rfd22301-rfduino-ble-smt/ ?

There might be several reasons why GDB Server cannot connect to the target anymore.
Could you answer following questions to narrow the reasons down?

Does connecting via JLinkExe work after programming the device?
Could you try JLinkExe -if SWD -speed 4000 -device nRF51822?
Does connecting via GDB Server to an unprogrammed device work?

Does the programmed application enter a low power mode of the device?
Might the application configure the pins used for SWD to another function like GPIO?


Best regards
Johannes

jjrosent

Beginner

Date of registration: Oct 10th 2014

Posts: 2

3

Friday, October 10th 2014, 9:03pm

I can always connect with jlinkexe. Yeah I can program over and over again.

I use Jlinkexe to erase with w4 4001e504 2 and w4 4001e50c 1 and still cant connect debugger. I can program it with a blank main.cpp and still can't connect debugger, so I dont think Im doing anything to my pins.

My setup is
http://www.rfduino.com/product/rfd22102-rfduino-dip/

http://www.rfduino.com/product/rfd22122-…ld-for-rfduino/

http://www.rfduino.com/product/rfd22121-…ld-for-rfduino/

SEGGER - Johannes

Super Moderator

Date of registration: Aug 31st 2012

Posts: 379

4

Monday, October 13th 2014, 2:59pm

Hi,

We tried to reproduce the problem with an nRF eval board and do not see any problems with connecting GDB Server to an nRF51822.

Could you provide the full output of JLinkExe, started with "JLinkExe -if SWD -speed 4000 -device nRF51822"
when connected to
1.) an empty target
2.) a target running the application

Best regards
Johannes