From bac4bade307276d606c2ccabac4ed1cddc212cee Mon Sep 17 00:00:00 2001 From: Rohit Samineni Date: Wed, 21 Oct 2020 13:43:51 +0530 Subject: [PATCH] Add support to request reset to bootloader mode Add support to request reset to bootloader mode for windows This will auto detect the availble Stm32 virtual comport and knocks the com port at 1200 bauds and the comtroller jumps to internal USB DFU method. --- win/stm32CubeProg.bat | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/win/stm32CubeProg.bat b/win/stm32CubeProg.bat index ef892ead8..71e336cfc 100644 --- a/win/stm32CubeProg.bat +++ b/win/stm32CubeProg.bat @@ -59,8 +59,13 @@ set PORT=%~3 shift goto :opt +:: Finds the COMPORT with manufacturer StMicro and knocks the COM POrt at 1200 baud rate :DFU set PORT=USB1 +wmic path Win32_SerialPort Where "Caption LIKE '%%StMicro%%'" Get DeviceID | findstr "COM" > tmpFile.txt +del tmpFile.txt +set /p cdc_port=