From cba9f49e64b11920b2b6cc5eaccbebebce334837 Mon Sep 17 00:00:00 2001 From: Bhavesh Kakwani Date: Mon, 30 Aug 2021 11:51:37 -0400 Subject: [PATCH] Support for flashing Olimex STM32-E407 with STLINK v2 debuggers --- config/freertos/olimex-stm32-e407/flash.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/freertos/olimex-stm32-e407/flash.sh b/config/freertos/olimex-stm32-e407/flash.sh index 1225c181..f9e18e12 100755 --- a/config/freertos/olimex-stm32-e407/flash.sh +++ b/config/freertos/olimex-stm32-e407/flash.sh @@ -11,6 +11,10 @@ pushd $OLIMEX_EXTENSIONS_DIR > /dev/null PROGRAMMER=interface/ftdi/olimex-arm-usb-ocd.cfg elif lsusb -d 15BA:002b;then PROGRAMMER=interface/ftdi/olimex-arm-usb-ocd-h.cfg + elif lsusb -d 0483:374b; then + PROGRAMMER=interface/stlink-v2-1.cfg + elif lsusb -d 0483:3748; then + PROGRAMMER=interface/stlink-v2.cfg else echo "Error. Unsuported OpenOCD USB programmer" exit 1