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

[Solved] Using nrf52dk to flash nrf51 RedBear Nano BLE

Nevermind: my problem seems to have been: you need a battery at 3V powering a BLE Nano to program it from a nrf52DK.

Original question: I have connected a nrf52DK dev kit board to a nrf51 Nano BLE module. When I make the flash target I get:

ERROR: The --family option given with the command (or the default from nrfjprog.ini)
Makefile:250: recipe for target 'flash' failed
ERROR: does not match the device connected.
make: *** [flash] Error 18

My question is: should this be possible and where is a definitive schematic for the connection? I suspect my connection is wrong. Many other answers suggest using the P19 connector, but none seem to give a complete schematic. But I am also concerned that this will never be possible because the SEGGER on the DK is preventing it.

The connection is via 5 lines per this link electronut.in/.../ Which is from an nrf51DK to an nrf51 module (same family.)

nrf52DK      BLE Nano
------------------------------
P20.VTG     -> VDD
P20.SWDIO -> DIO
P20.SWCLK -> SCLK
P20.GNDDETECT -> GND
P13.GND     -> GND

My BLE Nano does not have a battery, I am assuming it is powered from the nrfDK52.

The command is:

$(OTHER_TOOLS)/nrfjprog --program $(OUTPUT_BINARY_DIRECTORY)/$<.hex -f nrf51  --chiperase
Related