From 4dadb31e18ffbd74b86ef0e775ec378bb2c2161f Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Tue, 15 Sep 2020 15:18:24 +0200 Subject: [PATCH] microbit: reelboard: flash using OpenOCD when needed When using a SoftDevice, the MSD flash method is not appropriate as it will erase the entire flash area before writing the new firmware. This also wipes the SoftDevice. Instead, use OpenOCD to only rewrite the parts of flash that need to be rewritten and leave the SoftDevice alone. --- targets/microbit-s110v8.json | 3 ++- targets/reelboard-s140v7.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/targets/microbit-s110v8.json b/targets/microbit-s110v8.json index 02c90153..c5d34c5c 100644 --- a/targets/microbit-s110v8.json +++ b/targets/microbit-s110v8.json @@ -1,3 +1,4 @@ { - "inherits": ["microbit", "nrf51-s110v8"] + "inherits": ["microbit", "nrf51-s110v8"], + "flash-method": "openocd" } diff --git a/targets/reelboard-s140v7.json b/targets/reelboard-s140v7.json index 7e658c7d..4d1adfc0 100644 --- a/targets/reelboard-s140v7.json +++ b/targets/reelboard-s140v7.json @@ -1,3 +1,4 @@ { - "inherits": ["reelboard", "nrf52840-s140v7"] + "inherits": ["reelboard", "nrf52840-s140v7"], + "flash-method": "openocd" }