diff --git a/openocd/flash_rpi.cfg b/openocd/flash_rpi.cfg new file mode 100644 index 0000000..402445d --- /dev/null +++ b/openocd/flash_rpi.cfg @@ -0,0 +1,2 @@ +source [find openocd/interface_rpi.cfg] +source [find openocd/flash.cfg] diff --git a/openocd/interface_rpi.cfg b/openocd/interface_rpi.cfg new file mode 100644 index 0000000..d827ad0 --- /dev/null +++ b/openocd/interface_rpi.cfg @@ -0,0 +1,5 @@ +source [find interface/sysfsgpio-raspberrypi.cfg] +source [find openocd/rpi.cfg] +transport select swd +source [find target/stm32h7x.cfg] +reset_config none diff --git a/openocd/rpi.cfg b/openocd/rpi.cfg new file mode 100644 index 0000000..88e47f9 --- /dev/null +++ b/openocd/rpi.cfg @@ -0,0 +1,2 @@ +sysfsgpio_swd_nums 25 24 +sysfsgpio_srst_num 23 diff --git a/scripts/rdp1.sh b/scripts/rdp1.sh index 4234cec..c17272f 100755 --- a/scripts/rdp1.sh +++ b/scripts/rdp1.sh @@ -2,7 +2,7 @@ source config.sh $1 -echo "This will look your device! Are you sure? (Y/y)" +echo "This will lock your device! Are you sure? (Y/y)" read -n 1 -r if [[ ! $REPLY =~ ^[Yy]$ ]] then