17 lines
446 B
Batchfile
Raw Normal View History

2017-11-27 21:19:49 +00:00
@echo off
rem Note %~dp0 get path of this batch file
rem Need to change drive if My Documents is on a drive other than C:
2017-11-27 21:19:49 +00:00
set driverLetter=%~dp0
set driverLetter=%driverLetter:~0,2%
%driverLetter%
cd %~dp0
rem The lines below are needed to fix path issues with incorrect slashes before the bin file name
set fwpath=%3
set fwpath=%fwpath:/=\%
2017-11-27 21:19:49 +00:00
echo stm32flash -v -g %2 -b 57600 -w %fwpath% %1
echo.
2017-11-27 21:19:49 +00:00
stm32flash -v -g %2 -b 57600 -w %fwpath% %1