Build a stub for PineTime using NRF52-DK

NRF52-DK is the official developpment kit for NRF52832 SoC from Nordic Semiconductor.

It can be very useful for PineTime developpment:

This page is about the 2nd point : we will build a stub that will allow us to run the same code than the one you could run on the PineTime. This will allow you to work more easily if you don’t have a PineTime dev kit around, if you don’t want to modify your dev kit for SWD programming, or if you want to use some feature from the DK (like power measurement).

This stub only implements the display, the button and the BLE radio. The other features from the pintime are missing:

These devices could be added on this stub, but I do not have the parts to try them out for now.

Pinetime stub

Here are the parts you need to build this simulator:

You just need to make the following connections:

NRF52-DK ST7889 display
VDD VCC
GND GND
P0.03 SDA
P0.26 RES
P0.02 SCL
P0.18 DC
NRF52-DK Push Button
P0.13 Button IN (D3 in my case)
GND GND

You also need to enable the I/O expander to disconnect pins from buttons and led on the NRF52-DK and leave them available on the pin headers:

NRF52 -DK NRF52- DK
DETECT GND

Now, you should be able to program the SoC on the NRF52-DK board, and use it as if it was running on the pintime.