Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions win/stm32CubeProg.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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=<tmpFile.txt
mode %%cdc_port%% BAUD=1200
goto :opt

:opt
Expand Down