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

JLINK connect fails with new NRF51822 module on BLE400 board. What to do next?

Target NRF51822 QFAA
Board Waveshare BLE400
The board is powered from its USB port (+regulator)
I am trying to connect for the first time using Jlink Edu Mini and a Win10 platform
I had planned to flash softDevice and then Blinky using Segger Embedded Systems. However neither SES nor JLINK Commander can establish connection with the device

How could I get more details on the error log? Attached is the transcript from Commander.  I get the same result when I reduce the speed of the JLINK comms to 1000kHz

After failing to connect I tried to erase the factory firmware using nRFgo Studio and got the error:
Recover failed:
Can not connect to the device

With a DVM I measured VCC on the NRF51822 module at 3v3 (good)
I probed with a scope SWDIO and SWD (SWCLK?) which are brought out on a header on the motherboard. There is clearly traffic during the 'connect' dialog, i.e. SWDIO switches 3.3V<>0V several times. What should I be looking for?


How could I further diagnose (and hopefully fix) the problem?
I expect that the NRF51822 module is simply not working, but this would be surprising since it is new

Any help would be much appreciated!

Many thanks

SEGGER J-Link Commander V6.40 (Compiled Oct 26 2018 15:06:29)
DLL version V6.40, compiled Oct 26 2018 15:06:02

Connecting to J-Link via USB...O.K.
Firmware: J-Link EDU Mini V1 compiled Oct 26 2018 12:05:31
Hardware version: V1.00
S/N: 801005893
License(s): FlashBP, GDB
VTref=3.281V


Type "connect" to establish a target connection, '?' for help
J-Link>connect
Please specify device / core. <Default>: NRF51422_XXAC
Type '?' for selection dialog
Device>?
Please specify target interface:
  J) JTAG (Default)
  S) SWD
  T) cJTAG
TIF>S
Specify target interface speed [kHz]. <Default>: 4000 kHz
Speed>4000
Device "NRF51822_XXAA" selected.


Connecting to target via SWD
Cannot connect to target.
J-Link>

Related