From 87732d3ac33f5dceee9c7cb534637754ce480fe7 Mon Sep 17 00:00:00 2001 From: Bhavesh Kakwani <67327096+bhavesh-sr@users.noreply.github.com> Date: Tue, 31 Aug 2021 01:52:42 -0400 Subject: [PATCH] Support for flashing Olimex STM32-E407 with STLINK v2 debuggers (#374) (cherry picked from commit ae44150c759b8b98390e907b1c1f59c70f108b6d) --- 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