Skip to content

Commit 9ae9274

Browse files
Add ST-Link/OpenOCD support as a programmer
1 parent f4d6ad0 commit 9ae9274

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

platform.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ tools.stm32l4_upload.bootloader.params.verbose=-v
121121
tools.stm32l4_upload.bootloader.params.quiet=
122122
tools.stm32l4_upload.bootloader.pattern="{path}/{cmd}" "{runtime.platform.path}/bootloaders/{bootloader.file}"
123123

124-
tools.openocd.path={runtime.platform.path}/tools/windows
125-
tools.openocd.path.macosx={runtime.platform.path}/tools/macosx
126-
tools.openocd.path.linux={runtime.platform.path}/tools/linux/openocd
127-
tools.openocd.cmd=bin/openocd
128-
tools.openocd.cmd.windows=bin/openocd.exe
124+
tools.openocd.path={runtime.platform.path}/tools/windows/openocd/bin
125+
tools.openocd.path.macosx={runtime.platform.path}/tools/macosx/openocd/bin
126+
tools.openocd.path.linux={runtime.platform.path}/tools/linux/openocd/bin
127+
tools.openocd.cmd=/openocd
128+
tools.openocd.cmd.windows=openocd.exe
129129

130130
tools.openocd.upload.params.verbose=-d2
131131
tools.openocd.upload.params.quiet=-d0

variants/STM32L476RE-Dragonfly/openocd_scripts/stm32l476re_dragonfly.cfg

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# This is an STM32L476G disco board with a single STM32L476VGT6 (1MB) chip.
2-
# ### To be updated ### http://www.st.com/internet/evalboard/product/.jsp
1+
# This is a Dragonfly L476RE board with a single STM32L476RET6 chip.
32
#
43

54
# This is for using the onboard STLINK/V2
@@ -13,7 +12,7 @@ set WORKAREASIZE 0x18000
1312
# chip name
1413
set CHIPNAME STM32L476
1514

16-
source [find target/stm32l4.cfg]
15+
source [find target/stm32l4x.cfg]
1716

1817
reset_config none separate
1918

0 commit comments

Comments
 (0)