From 2ba33d58c6a2faa1be6bfb28bcd5867007fee8c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Thu, 9 Jan 2020 20:44:07 +0100 Subject: [PATCH] global: define RST as DFU force input --- global.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/global.h b/global.h index 4db388b..37c51fc 100644 --- a/global.h +++ b/global.h @@ -665,6 +665,9 @@ #elif defined (BLASTER) #define DFU_FORCE_PIN PA8 /**< GPIO pin (pin PA8, not SWD and UART pin on debug port) */ #define DFU_FORCE_VALUE 0 /**< short to nearby ground connection to force DFU */ +#elif defined(STLINKV2) + #define DFU_FORCE_PIN PB6 /**< RST pin pin */ + #define DFU_FORCE_VALUE 0 /**< short to nearby GND pin to force DFU */ #elif defined(BUSVOODOO) #if BUSVOODOO_HARDWARE_VERSION==0 /* on BusVoodoo v0 DFU input is on PC7 */