Skip to content

Commit a4704af

Browse files
committed
Updated scripts
1 parent da110d0 commit a4704af

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

scripts/nrf52/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,9 @@
1717
[`flash-init.ocd`](flash-init.ocd): OpenOCD initialisation script called by `flash-boot.ocd` and `flash-app.ocd`
1818

1919
[`debug.ocd`](debug.ocd): OpenOCD script for debugging the application. Called by `.vscode/launch-nrf52.json`
20+
21+
[`swd-pi.ocd`](swd-pi.ocd): OpenOCD script for removing nRF52 flash protection on Raspberry Pi
22+
23+
[`swd-pi.sh`](swd-pi.sh): Shell script that invokes `swd-pi.ocd`
24+
25+
[`swd-pi.log`](swd-pi.log): Sample log from `swd-pi.sh`

scripts/nrf52/debug.ocd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This is an OpenOCD script that connects to the STM32 L4xx for Cortex Debug.
1+
# This is an OpenOCD script that connects to the nRF52 for Cortex Debug.
22

33
# Debug Level must be 2 or greater or gdb will fail.
44
debug_level 2

scripts/nrf52/unprotect-flash.sh renamed to scripts/nrf52/swd-pi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# Unprotect the nRF52 module using a Raspberry Pi
33
# From https://stackoverflow.com/questions/52308978/problem-flashing-nrf52-chip-using-openocd/54372481#54372481
44

5-
# set -e # Exit when any command fails.
65
set -x # Echo all commands.
76

7+
# Parent Directory of the locally-built OpenOCD
88
OPENOCD_DIR=/home/pi
99

1010
$OPENOCD_DIR/openocd/src/openocd \

0 commit comments

Comments
 (0)