-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for ST-Link / Com port issue #584
- Loading branch information
1 parent
49d0cd4
commit 0f868ec
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
@echo off | ||
rem @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: | ||
set driverLetter=%~dp0 | ||
set driverLetter=%driverLetter:~0,2% | ||
%driverLetter% | ||
cd %~dp0 | ||
rem: the two line below are needed to fix path issues with incorrect slashes before the bin file name | ||
set str=%4 | ||
set str=%1 | ||
set str=%str:/=\% | ||
|
||
|
||
rem: ------------- use STLINK CLI | ||
stlink\ST-LINK_CLI.exe -c SWD -P %str% 0x8000000 -Rst -Run | ||
stlink\ST-LINK_CLI.exe -c SWD -P %str% 0x8000000 -Rst -Run -NoPrompt | ||
|
||
rem: Using the open source texane-stlink instead of the proprietary STM stlink exe | ||
rem:texane-stlink\st-flash.exe write %str% 0x8000000 |