File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 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 `
Original file line number Diff line number Diff line change 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.
44debug_level 2
Original file line number Diff line number Diff line change 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.
65set -x # Echo all commands.
76
7+ # Parent Directory of the locally-built OpenOCD
88OPENOCD_DIR=/home/pi
99
1010$OPENOCD_DIR /openocd/src/openocd \
You can’t perform that action at this time.
0 commit comments