Add configs for picoprobe

This commit is contained in:
Luis Correia 2023-08-30 20:06:09 +01:00
parent 7f402f4c6f
commit 12ee9ac081
3 changed files with 10 additions and 2 deletions

View File

@ -8,7 +8,7 @@ if [[ -z ${OPENOCD} ]]; then
fi
helptext() {
echo "Usage: $0 <Adapter: jlink or stlink or rpi> <mario or zelda>"
echo "Usage: $0 <Adapter: jlink or stlink or rpi or pico> <mario or zelda>"
}
OPENOCD_VERSION=$(${OPENOCD} -v 2> >(cut -f 4 -d" " ) |head -1)
@ -42,4 +42,4 @@ if [[ $# -ne 2 ]] && [[ ! "$0" =~ .*"config.sh" ]]; then
exit 1
fi
mkdir -p logs backups
mkdir -p logs backups

2
openocd/flash_pico.cfg Normal file
View File

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

View File

@ -0,0 +1,6 @@
source [find interface/cmsis-dap.cfg]
adapter speed 500
transport select swd
source [find openocd/stm32h7x_spiflash.cfg]
reset_config none