Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request reset to bootloader mode in Windows #1

Closed
wants to merge 1 commit into from
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