diff --git a/src/openocd/flash.sh b/src/openocd/flash.sh index 35b2990..dbe1149 100644 --- a/src/openocd/flash.sh +++ b/src/openocd/flash.sh @@ -37,4 +37,12 @@ sudo openocd \ -c "reset run" \ -c "shutdown" +sudo openocd \ + -f ./raspberrypi-${INTERFACE}.cfg \ + -c "init" \ + -c "nrf54l.dap apreg 2 0x000 0x1" \ + -c "sleep 100" \ + -c "nrf54l.dap apreg 2 0x000 0x0" \ + -c "shutdown" + echo "Flashing complete." \ No newline at end of file