This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52832 cannot connect to J-Link

Hi, I followed the steps to setup my nRF52 DK with eclipse. I could also build the code without errors. However, when I try to debug it, it says cannot connect to J-Link.

The following is the output on my console

*SEGGER J-Link GDB Server V6.12a Command Line Version
JLinkARM.dll V6.12a (DLL compiled Dec  2 2016 16:44:26)
-----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:      localhost only
Generate logfile:              off
Verify download:               on
Init regs on start:            on
Silent mode:                   off
Single run mode:               on
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:              SWD
Target interface speed:        1000kHz
Target endian:                 little*

***Connecting to J-Link...
Connecting to J-Link failed. Connected correctly?
GDBServer will be closed...
Shutting down...
Could not connect to J-Link.
Please check power, connection and settings.***
Parents
  • Output:

    C:\nRF5_SDK_11.0.0_89a8197\examples\peripheral\blinky\pca10040\blank\armgcc>make
    rm -rf _build
    echo  Makefile
    Makefile
    mkdir _build
    Compiling file: system_nrf52.c
    Compiling file: main.c
    Compiling file: nrf_delay.c
    Assembly file: gcc_startup_nrf52.s
    Linking target: nrf52832_xxaa.out
    make[1]: Entering directory 'C:/nRF5_SDK_11.0.0_89a8197/examples/peripheral/blinky/pca10040/blank/armgcc'
    Preparing: nrf52832_xxaa.bin
    Preparing: nrf52832_xxaa.hex
    
       text    data     bss     dec     hex filename
       3108     112      28    3248     cb0 _build/nrf52832_xxaa.out
    
    make[1]: Leaving directory 'C:/nRF5_SDK_11.0.0_89a8197/examples/peripheral/blinky/pca10040/blank/armgcc'
    
    C:\nRF5_SDK_11.0.0_89a8197\examples\peripheral\blinky\pca10040\blank\armgcc>nrfjprog --family <nRF52> -e
    The system cannot find the file specified.
    
    C:\nRF5_SDK_11.0.0_89a8197\examples\peripheral\blinky\pca10040\blank\armgcc>
    
Reply
  • Output:

    C:\nRF5_SDK_11.0.0_89a8197\examples\peripheral\blinky\pca10040\blank\armgcc>make
    rm -rf _build
    echo  Makefile
    Makefile
    mkdir _build
    Compiling file: system_nrf52.c
    Compiling file: main.c
    Compiling file: nrf_delay.c
    Assembly file: gcc_startup_nrf52.s
    Linking target: nrf52832_xxaa.out
    make[1]: Entering directory 'C:/nRF5_SDK_11.0.0_89a8197/examples/peripheral/blinky/pca10040/blank/armgcc'
    Preparing: nrf52832_xxaa.bin
    Preparing: nrf52832_xxaa.hex
    
       text    data     bss     dec     hex filename
       3108     112      28    3248     cb0 _build/nrf52832_xxaa.out
    
    make[1]: Leaving directory 'C:/nRF5_SDK_11.0.0_89a8197/examples/peripheral/blinky/pca10040/blank/armgcc'
    
    C:\nRF5_SDK_11.0.0_89a8197\examples\peripheral\blinky\pca10040\blank\armgcc>nrfjprog --family <nRF52> -e
    The system cannot find the file specified.
    
    C:\nRF5_SDK_11.0.0_89a8197\examples\peripheral\blinky\pca10040\blank\armgcc>
    
Children
No Data
Related