diff --git a/src/openocd/flash.sh b/src/openocd/flash.sh index dbe1149..64972dd 100644 --- a/src/openocd/flash.sh +++ b/src/openocd/flash.sh @@ -45,4 +45,11 @@ sudo openocd \ -c "nrf54l.dap apreg 2 0x000 0x0" \ -c "shutdown" +sudo openocd \ + -f ./raspberrypi-${INTERFACE}.cfg \ + -c "init" \ + -c "nrf54l.dap apreg 2 0x000 0x4" \ + -c "nrf54l.dap apreg 2 0x000 0x0" \ + -c "shutdown" + echo "Flashing complete." \ No newline at end of file