Skip to content

Commit dbcba3e

Browse files
STM32F4 fixed issue with stlink uploads, and added windows driver bat for STM Virtual com ports
1 parent a699971 commit dbcba3e

File tree

2 files changed

+7
-21
lines changed

2 files changed

+7
-21
lines changed

STM32F4/boards.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
##############################################################
44
discovery_f407.name=STM32 Discovery F407
55

6-
discovery_f407.upload.tool=stlink
6+
discovery_f407.upload.tool=stlink_upload
77
discovery_f407.upload.protocol=stlink
88

99
#discovery_f407.upload.use_1200bps_touch=false

STM32F4/platform.txt

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -117,28 +117,14 @@ tools.maple_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altI
117117
# Generic STM32 upload via serial to Serial Port 1 (pins PA9 and PA10) - note. Boot0 line needs to high on board reset to enable upload via serial
118118
# at the end of the upload the program is automatically run, without the board being reset
119119

120-
tools.serial_upload.cmd=serial_upload
121-
tools.serial_upload.cmd.windows=serial_upload.bat
122-
tools.serial_upload.cmd.macosx=serial_upload
123-
tools.serial_upload.path={runtime.hardware.path}/tools/win
124-
tools.serial_upload.path.macosx={runtime.hardware.path}/tools/macosx
125-
tools.serial_upload.path.linux={runtime.hardware.path}/tools/linux
126-
tools.serial_upload.path.linux64={runtime.hardware.path}/tools/linux64
127-
tools.serial_upload.upload.params.verbose=-d
128-
tools.serial_upload.upload.params.quiet=
129-
tools.serial_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin"
130-
131-
# STLINK/V2
132-
133-
tools.stlink.cmd=stlink_upload
134-
tools.stlink.cmd.windows=stlink_upload.bat
120+
# stlink upload
121+
tools.stlink_upload.cmd=stlink_upload
122+
tools.stlink_upload.cmd.windows=stlink_upload.bat
135123
tools.stlink_upload.path.windows={runtime.hardware.path}/tools/win
136124
tools.stlink_upload.path.macosx={runtime.hardware.path}/tools/macosx
137125
tools.stlink_upload.path.linux={runtime.hardware.path}/tools/linux
138126
tools.stlink_upload.path.linux64={runtime.hardware.path}/tools/linux64
139-
tools.stlink.path.linux={runtime.hardware.path}/tools/linux/
140-
tools.stlink.path.macosx={runtime.hardware.path}/tools/macosx/
141-
tools.stlink.upload.params.verbose=-d
142-
tools.stlink.upload.params.quiet=
143-
tools.stlink.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin"
127+
tools.stlink_upload.upload.params.verbose=-d
128+
tools.stlink_upload.upload.params.quiet=
129+
tools.stlink_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin"
144130

0 commit comments

Comments
 (0)