Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions boards/96boards/stm32_sensor_mez/support/openocd.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
source [find interface/stlink.cfg]
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd

transport select hla_swd
# If you use a recent OpenOCD release (strictly after release tag v0.12.0)
# and your targets embeds an ST-Link firmware v1 and you cannot upgrade it,
# it is recommended to replace the 2 lines above with:
#
# source [find interface/stlink-hla.cfg]
# transport select hla_swd

set WORKAREASIZE 0x2000

Expand Down
10 changes: 8 additions & 2 deletions boards/adafruit/feather_stm32f405/support/openocd.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
source [find interface/stlink.cfg]
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd

transport select hla_swd
# If you use a recent OpenOCD release (strictly after release tag v0.12.0)
# and your targets embeds an ST-Link firmware v1 and you cannot upgrade it,
# it is recommended to replace the 2 lines above with:
#
# source [find interface/stlink-hla.cfg]
# transport select hla_swd

source [find target/stm32f4x.cfg]

Expand Down
4 changes: 2 additions & 2 deletions boards/alientek/pandora_stm32l475/support/openocd.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
# an stlink-v2-1 interface.
# This is for STM32L4 boards that are connected via stlink-v2-1.

source [find interface/stlink.cfg]
source [find interface/stlink-dap.cfg]

transport select hla_swd
transport select dapdirect_swd

source [find target/stm32l4x.cfg]

Expand Down
11 changes: 8 additions & 3 deletions boards/arduino/giga_r1/support/openocd_arduino_giga_r1_m4.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd

source [find interface/stlink.cfg]

transport select hla_swd
# If you use a recent OpenOCD release (strictly after release tag v0.12.0)
# and your targets embeds an ST-Link firmware v1 and you cannot upgrade it,
# it is recommended to replace the 2 lines above with:
#
# source [find interface/stlink-hla.cfg]
# transport select hla_swd

set DUAL_BANK 1

Expand Down
11 changes: 8 additions & 3 deletions boards/arduino/giga_r1/support/openocd_arduino_giga_r1_m7.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd

source [find interface/stlink.cfg]

transport select hla_swd
# If you use a recent OpenOCD release (strictly after release tag v0.12.0)
# and your targets embeds an ST-Link firmware v1 and you cannot upgrade it,
# it is recommended to replace the 2 lines above with:
#
# source [find interface/stlink-hla.cfg]
# transport select hla_swd

source [find target/stm32h7x.cfg]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd

source [find interface/stlink.cfg]

transport select hla_swd
# If you use a recent OpenOCD release (strictly after release tag v0.12.0)
# and your targets embeds an ST-Link firmware v1 and you cannot upgrade it,
# it is recommended to replace the 2 lines above with:
#
# source [find interface/stlink-hla.cfg]
# transport select hla_swd

set DUAL_BANK 1

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd

source [find interface/stlink.cfg]

transport select hla_swd
# If you use a recent OpenOCD release (strictly after release tag v0.12.0)
# and your targets embeds an ST-Link firmware v1 and you cannot upgrade it,
# it is recommended to replace the 2 lines above with:
#
# source [find interface/stlink-hla.cfg]
# transport select hla_swd

source [find target/stm32h7x.cfg]

Expand Down
11 changes: 8 additions & 3 deletions boards/arduino/opta/support/openocd_opta_stm32h747xx_m7.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd

source [find interface/stlink.cfg]

transport select hla_swd
# If you use a recent OpenOCD release (strictly after release tag v0.12.0)
# and your targets embeds an ST-Link firmware v1 and you cannot upgrade it,
# it is recommended to replace the 2 lines above with:
#
# source [find interface/stlink-hla.cfg]
# transport select hla_swd

source [find target/stm32h7x.cfg]

Expand Down
10 changes: 8 additions & 2 deletions boards/blues/cygnet/support/openocd.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
source [find interface/stlink.cfg]
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd

transport select hla_swd
# If you use a recent OpenOCD release (strictly after release tag v0.12.0)
# and your targets embeds an ST-Link firmware v1 and you cannot upgrade it,
# it is recommended to replace the 2 lines above with:
#
# source [find interface/stlink-hla.cfg]
# transport select hla_swd

source [find target/stm32l4x.cfg]

Expand Down
12 changes: 9 additions & 3 deletions boards/dragino/lsn50/support/openocd.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
source [find interface/stlink.cfg]
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd

transport select hla_swd
# If you use a recent OpenOCD release (strictly after release tag v0.12.0)
# and your targets embeds an ST-Link firmware v1 and you cannot upgrade it,
# it is recommended to replace the 2 lines above with:
#
# source [find interface/stlink-hla.cfg]
# transport select hla_swd

set WORKAREASIZE 0x2000

Expand All @@ -18,4 +24,4 @@ $_TARGETNAME configure -event gdb-attach {
$_TARGETNAME configure -event gdb-detach {
echo "Debugger detaching: resuming execution"
resume
}
}
10 changes: 8 additions & 2 deletions boards/dragino/nbsn95/support/openocd.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
#
# Copyright (c) 2021 Next Big Thing AG

source [find interface/stlink.cfg]
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd

transport select hla_swd
# If you use a recent OpenOCD release (strictly after release tag v0.12.0)
# and your targets embeds an ST-Link firmware v1 and you cannot upgrade it,
# it is recommended to replace the 2 lines above with:
#
# source [find interface/stlink-hla.cfg]
# transport select hla_swd

set WORKAREASIZE 0x2000

Expand Down
11 changes: 9 additions & 2 deletions boards/fanke/fk723m1_zgt6/support/openocd.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@

#debug_level 3

source [find interface/stlink.cfg]
transport select hla_swd
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd

# If you use a recent OpenOCD release (strictly after release tag v0.12.0)
# and your targets embeds an ST-Link firmware v1 and you cannot upgrade it,
# it is recommended to replace the 2 lines above with:
#
# source [find interface/stlink-hla.cfg]
# transport select hla_swd
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The board doesn't have an embedded debugger.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this openocd config applies when one uses the ST-Link adapter between the host and the target.
In such case, the inline comments above apply to the firmware in the ST-Link adapter. Maybe should I rephrase the description.

Or more simply: do you assume one using an ST-Link adapter to debug fk723m1_zgt6 would use a recent ST-Link adapter product so that this inline comment can be simply removed?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I was a bit confused when I wrote this.
The new config works on my side and I doubt that a lot of people will use legacy ST-Links.
Maybe you want to extend the documentation page for debug probes instead of adding the same notice a bunch of times.


set CHIPNAME STM32H723ZG
set WORKAREASIZE 0x3000
Expand Down
12 changes: 9 additions & 3 deletions boards/mikroe/mini_m4_for_stm32/support/openocd.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
source [find interface/stlink.cfg]
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd

set WORKAREASIZE 0x30000
# If you use a recent OpenOCD release (strictly after release tag v0.12.0)
# and your targets embeds an ST-Link firmware v1 and you cannot upgrade it,
# it is recommended to replace the 2 lines above with:
#
# source [find interface/stlink-hla.cfg]
# transport select hla_swd

transport select hla_swd
set WORKAREASIZE 0x30000

source [find target/stm32f4x.cfg]

Expand Down
10 changes: 8 additions & 2 deletions boards/olimex/stm32_h103/support/openocd.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
source [find interface/stlink.cfg]
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd

transport select hla_swd
# If you use a recent OpenOCD release (strictly after release tag v0.12.0)
# and your targets embeds an ST-Link firmware v1 and you cannot upgrade it,
# it is recommended to replace the 2 lines above with:
#
# source [find interface/stlink-hla.cfg]
# transport select hla_swd

source [find board/olimex_stm32_h103.cfg]

Expand Down
10 changes: 8 additions & 2 deletions boards/olimex/stm32_h103/support/openocd_stlink.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
source [find interface/stlink.cfg]
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd

transport select hla_swd
# If you use a recent OpenOCD release (strictly after release tag v0.12.0)
# and your targets embeds an ST-Link firmware v1 and you cannot upgrade it,
# it is recommended to replace the 2 lines above with:
#
# source [find interface/stlink-hla.cfg]
# transport select hla_swd

source [find board/olimex_stm32_h103.cfg]

Expand Down
12 changes: 9 additions & 3 deletions boards/olimex/stm32_h405/support/openocd.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
source [find interface/stlink.cfg]
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd

set WORKAREASIZE 0x10000
# If you use a recent OpenOCD release (strictly after release tag v0.12.0)
# and your targets embeds an ST-Link firmware v1 and you cannot upgrade it,
# it is recommended to replace the 2 lines above with:
#
# source [find interface/stlink-hla.cfg]
# transport select hla_swd

transport select hla_swd
set WORKAREASIZE 0x10000

source [find target/stm32f4x.cfg]

Expand Down
12 changes: 9 additions & 3 deletions boards/olimex/stm32_p405/support/openocd.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
source [find interface/stlink.cfg]
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd

set WORKAREASIZE 0x10000
# If you use a recent OpenOCD release (strictly after release tag v0.12.0)
# and your targets embeds an ST-Link firmware v1 and you cannot upgrade it,
# it is recommended to replace the 2 lines above with:
#
# source [find interface/stlink-hla.cfg]
# transport select hla_swd

transport select hla_swd
set WORKAREASIZE 0x10000

source [find target/stm32f4x.cfg]

Expand Down
10 changes: 8 additions & 2 deletions boards/others/stm32f103_mini/support/openocd.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
source [find interface/stlink.cfg]
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd

transport select hla_swd
# If you use a recent OpenOCD release (strictly after release tag v0.12.0)
# and your targets embeds an ST-Link firmware v1 and you cannot upgrade it,
# it is recommended to replace the 2 lines above with:
#
# source [find interface/stlink-hla.cfg]
# transport select hla_swd

source [find target/stm32f1x.cfg]

Expand Down
10 changes: 8 additions & 2 deletions boards/others/stm32f401_mini/support/openocd.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
source [find interface/stlink.cfg]
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd

transport select hla_swd
# If you use a recent OpenOCD release (strictly after release tag v0.12.0)
# and your targets embeds an ST-Link firmware v1 and you cannot upgrade it,
# it is recommended to replace the 2 lines above with:
#
# source [find interface/stlink-hla.cfg]
# transport select hla_swd

source [find target/stm32f4x.cfg]

Expand Down
10 changes: 8 additions & 2 deletions boards/seco/stm32f3_seco_d23/support/openocd.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
# Flashing is possible by connecting the board to an ST-Link via SWD
# https://edge.seco.com/juno.html

source [find interface/stlink.cfg]
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd

transport select hla_swd
# If you use a recent OpenOCD release (strictly after release tag v0.12.0)
# and your targets embeds an ST-Link firmware v1 and you cannot upgrade it,
# it is recommended to replace the 2 lines above with:
#
# source [find interface/stlink-hla.cfg]
# transport select hla_swd

source [find target/stm32f3x.cfg]

Expand Down
10 changes: 8 additions & 2 deletions boards/seeed/lora_e5_dev_board/support/openocd.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
source [find interface/stlink.cfg]
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd

transport select hla_swd
# If you use a recent OpenOCD release (strictly after release tag v0.12.0)
# and your targets embeds an ST-Link firmware v1 and you cannot upgrade it,
# it is recommended to replace the 2 lines above with:
#
# source [find interface/stlink-hla.cfg]
# transport select hla_swd

source [find target/stm32wlx.cfg]

Expand Down
10 changes: 8 additions & 2 deletions boards/seeed/lora_e5_mini/support/openocd.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
source [find interface/stlink.cfg]
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd

transport select hla_swd
# If you use a recent OpenOCD release (strictly after release tag v0.12.0)
# and your targets embeds an ST-Link firmware v1 and you cannot upgrade it,
# it is recommended to replace the 2 lines above with:
#
# source [find interface/stlink-hla.cfg]
# transport select hla_swd

source [find target/stm32wlx.cfg]

Expand Down
10 changes: 8 additions & 2 deletions boards/steelseries/apex_pro_mini/support/openocd.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
source [find interface/stlink.cfg]
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd

transport select hla_swd
# If you use a recent OpenOCD release (strictly after release tag v0.12.0)
# and your targets embeds an ST-Link firmware v1 and you cannot upgrade it,
# it is recommended to replace the 2 lines above with:
#
# source [find interface/stlink-hla.cfg]
# transport select hla_swd

source [find target/stm32l4x.cfg]

Expand Down
10 changes: 8 additions & 2 deletions boards/weact/blackpill_f401cc/support/openocd.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
source [find interface/stlink.cfg]
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd

transport select hla_swd
# If you use a recent OpenOCD release (strictly after release tag v0.12.0)
# and your targets embeds an ST-Link firmware v1 and you cannot upgrade it,
# it is recommended to replace the 2 lines above with:
#
# source [find interface/stlink-hla.cfg]
# transport select hla_swd

source [find target/stm32f4x.cfg]

Expand Down
Loading