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$
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$