Skip to content

Commit

Permalink
Fix for ST-Link / Com port issue #584
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerclarkmelbourne committed Feb 3, 2019
1 parent 49d0cd4 commit 0f868ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion STM32F1/platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ tools.stlink_upload.path.linux={runtime.hardware.path}/tools/linux
tools.stlink_upload.path.linux64={runtime.hardware.path}/tools/linux64
tools.stlink_upload.upload.params.verbose=-d
tools.stlink_upload.upload.params.quiet=
tools.stlink_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin"
tools.stlink_upload.upload.pattern="{path}/{cmd}" "{build.path}/{build.project_name}.bin"

# blackmagic probe upload
tools.bmp_upload.cmd=arm-none-eabi-gdb
Expand Down
6 changes: 3 additions & 3 deletions tools/win/stlink_upload.bat
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

0 comments on commit 0f868ec

Please sign in to comment.