support for raspberry pi

This commit is contained in:
al3x10m 2020-12-29 08:40:12 +00:00 committed by Konrad Beckmann
parent f47de1ddcc
commit 4f8041cf5d
4 changed files with 10 additions and 1 deletions

2
openocd/flash_rpi.cfg Normal file
View File

@ -0,0 +1,2 @@
source [find openocd/interface_rpi.cfg]
source [find openocd/flash.cfg]

View File

@ -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

2
openocd/rpi.cfg Normal file
View File

@ -0,0 +1,2 @@
sysfsgpio_swd_nums 25 24
sysfsgpio_srst_num 23

View File

@ -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