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

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • 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$
  • Hi,
    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: 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
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • 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
    rfduino.com/product/rfd22102-rfduino-dip/

    rfduino.com/product/rfd22122-rgb-button-shield-for-rfduino/

    rfduino.com/product/rfd22121-usb-shield-for-rfduino/
  • 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
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.