From 4e4b5955db2d9604ae82949e6cd06d5b92a15408 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Mon, 8 Jun 2020 16:29:54 +0200 Subject: [PATCH] nrf: support debugging the PCA10056 This change adds support for `tinygo gdb` on the PCA10056. The board is normally flashed with the MSD programmer. Debugging needs a real debugger interface however, which is relatively simple by just adding the right OpenOCD configuration. --- targets/pca10056.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/targets/pca10056.json b/targets/pca10056.json index 1e35e51e..fc0acaa0 100644 --- a/targets/pca10056.json +++ b/targets/pca10056.json @@ -4,5 +4,7 @@ "flash-method": "command", "flash-command": "nrfjprog -f nrf52 --sectorerase --program {hex} --reset", "msd-volume-name": "JLINK", - "msd-firmware-name": "firmware.hex" + "msd-firmware-name": "firmware.hex", + "openocd-interface": "jlink", + "openocd-transport": "swd" }