From 28014092f1b188f1bab8e078eab31bf87adb4e5b Mon Sep 17 00:00:00 2001 From: rusefillc Date: Mon, 18 Dec 2023 13:07:26 -0500 Subject: [PATCH] only:start somewhere --- misc/install/run_openocd_f7.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 misc/install/run_openocd_f7.sh diff --git a/misc/install/run_openocd_f7.sh b/misc/install/run_openocd_f7.sh new file mode 100644 index 0000000000..962036ce48 --- /dev/null +++ b/misc/install/run_openocd_f7.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +STLINK=$(lsusb | grep 'ST-LINK\|STLINK') +if [ "$STLINK" ]; then + echo "I see $STLINK make sure your board file accepts this specific kind of ST-LINK" +else + echo "Do not see any ST-LINK. If you are on WSL make sure you have bound USB" + exit -1 +fi + +sudo openocd -f board/st_nucleo_f7.cfg -c init -c reset