only:start somewhere

This commit is contained in:
rusefillc 2023-12-18 13:07:26 -05:00
parent f54d7d56bc
commit 28014092f1
1 changed files with 11 additions and 0 deletions

View File

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