-
Notifications
You must be signed in to change notification settings - Fork 8.1k
boards: st: address recent OpenOCD deprecation of HLA interface #97638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jhedberg
merged 2 commits into
zephyrproject-rtos:main
from
etienne-lms:stm32-openocd-hla
Oct 22, 2025
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,7 +1 @@ | ||
source [find interface/stlink.cfg] | ||
|
||
transport select hla_swd | ||
|
||
source [find target/stm32g0x.cfg] | ||
|
||
reset_config srst_only | ||
source [find board/st_nucleo_g0.cfg] |
This file contains hidden or 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,7 +1 @@ | ||
source [find interface/stlink.cfg] | ||
|
||
transport select hla_swd | ||
|
||
source [find target/stm32g0x.cfg] | ||
|
||
reset_config srst_only | ||
source [find board/st_nucleo_g0.cfg] |
This file contains hidden or 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,7 +1 @@ | ||
source [find interface/stlink.cfg] | ||
|
||
transport select hla_swd | ||
|
||
source [find target/stm32g0x.cfg] | ||
|
||
reset_config srst_only | ||
source [find board/st_nucleo_g0.cfg] |
This file contains hidden or 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,7 +1 @@ | ||
source [find interface/stlink.cfg] | ||
|
||
transport select hla_swd | ||
|
||
source [find target/stm32g4x.cfg] | ||
|
||
reset_config srst_only | ||
source [find board/st_nucleo_g4.cfg] |
This file contains hidden or 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,7 +1 @@ | ||
source [find interface/stlink.cfg] | ||
|
||
transport select hla_swd | ||
|
||
source [find target/stm32g4x.cfg] | ||
|
||
reset_config srst_only | ||
source [find board/st_nucleo_g4.cfg] |
This file contains hidden or 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,7 +1 @@ | ||
source [find interface/stlink.cfg] | ||
|
||
transport select hla_swd | ||
|
||
source [find target/stm32g4x.cfg] | ||
|
||
reset_config srst_only | ||
source [find board/st_nucleo_g4.cfg] |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,7 +1 @@ | ||
source [find interface/stlink.cfg] | ||
|
||
transport select hla_swd | ||
|
||
source [find target/stm32l4x.cfg] | ||
|
||
reset_config srst_only | ||
source [find board/st_nucleo_l4.cfg] |
This file contains hidden or 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,7 +1 @@ | ||
source [find interface/stlink.cfg] | ||
|
||
transport select hla_swd | ||
|
||
source [find target/stm32l4x.cfg] | ||
|
||
reset_config srst_only | ||
source [find board/st_nucleo_l4.cfg] |
This file contains hidden or 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,7 +1 @@ | ||
source [find interface/stlink.cfg] | ||
|
||
transport select hla_swd | ||
|
||
source [find target/stm32l4x.cfg] | ||
|
||
reset_config srst_only | ||
source [find board/st_nucleo_l4.cfg] |
This file contains hidden or 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,7 +1 @@ | ||
source [find interface/stlink.cfg] | ||
|
||
transport select hla_swd | ||
|
||
source [find target/stm32l4x.cfg] | ||
|
||
reset_config srst_only | ||
source [find board/st_nucleo_l4.cfg] |
This file contains hidden or 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 hidden or 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,7 +1 @@ | ||
source [find interface/stlink.cfg] | ||
|
||
transport select hla_swd | ||
|
||
source [find target/stm32wbx.cfg] | ||
|
||
reset_config srst_only | ||
source [find board/st_nucleo_wb55rg] |
mathieuchopstm marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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 hidden or 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,6 +1,14 @@ | ||||||||||||||||||||||||||||||||||
source [find interface/stlink.cfg] | ||||||||||||||||||||||||||||||||||
source [find interface/stlink-dap.cfg] | ||||||||||||||||||||||||||||||||||
transport select dapdirect_swd | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
transport select hla_swd | ||||||||||||||||||||||||||||||||||
# If you use an OpenOCD version higher than 0.12.0 and your target embeds | ||||||||||||||||||||||||||||||||||
# an ST-Link firmware earlier than v2j24, connection will not work. | ||||||||||||||||||||||||||||||||||
# It is recommended to upgrade the ST-Link firmware of the target, | ||||||||||||||||||||||||||||||||||
# however, if not possible, the 2 lines above can be replaced with the | ||||||||||||||||||||||||||||||||||
# following to connect successfully: | ||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||
# source [find interface/stlink-hla.cfg] | ||||||||||||||||||||||||||||||||||
# transport select hla_swd | ||||||||||||||||||||||||||||||||||
Comment on lines
+4
to
+11
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit:
Suggested change
(ditto; I'll let you realign paragraphs to fit length limit) |
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
source [find target/stm32f4x.cfg] | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
|
This file contains hidden or 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 hidden or 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,5 +1,5 @@ | ||
source [find interface/stlink.cfg] | ||
source [find interface/stlink-dap.cfg] | ||
|
||
transport select hla_swd | ||
transport select dapdirect_swd | ||
|
||
source [find target/stm32g0x.cfg] |
4 changes: 2 additions & 2 deletions
4
boards/st/stm32h747i_disco/support/openocd_stm32h747i_disco_m4.cfg
This file contains hidden or 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
4 changes: 2 additions & 2 deletions
4
boards/st/stm32h747i_disco/support/openocd_stm32h747i_disco_m7.cfg
This file contains hidden or 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
4 changes: 2 additions & 2 deletions
4
boards/st/stm32h757i_eval/support/openocd_stm32h757i_eval_m4.cfg
This file contains hidden or 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
4 changes: 2 additions & 2 deletions
4
boards/st/stm32h757i_eval/support/openocd_stm32h757i_eval_m7.cfg
This file contains hidden or 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 hidden or 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 hidden or 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,7 +1,2 @@ | ||
source [find interface/stlink.cfg] | ||
|
||
transport select hla_swd | ||
|
||
source [find target/stm32wbx.cfg] | ||
|
||
reset_config srst_only | ||
# OpenOCD st_nucleo_wb55rg.cfg matches stm32wb55mm_dk support | ||
source [find board/st_nucleo_wb55rg.cfg] |
This file contains hidden or 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,7 +1,2 @@ | ||
source [find interface/stlink.cfg] | ||
|
||
transport select hla_swd | ||
|
||
source [find target/stm32wbx.cfg] | ||
|
||
reset_config srst_only | ||
# OpenOCD st_nucleo_wb55rg.cfg matches stm32wb55mmg support | ||
source [find board/st_nucleo_wb55k.cfg] |
This file contains hidden or 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 | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -56,6 +56,16 @@ Boards | |||||||||||||||||||||
|
||||||||||||||||||||||
* Panasonic ``panb511evb`` is renamed to ``panb611evb``. | ||||||||||||||||||||||
|
||||||||||||||||||||||
* STM32 boards OpenOCD configuration files have been changed to support latest OpenOCD versions | ||||||||||||||||||||||
(> v0.12.0) in which the HLA/SWD transport has been deprecated (see | ||||||||||||||||||||||
https://review.openocd.org/c/openocd/+/8523 and commit | ||||||||||||||||||||||
https://sourceforge.net/p/openocd/code/ci/34ec5536c0ba3315bc5a841244bbf70141ccfbb4/). | ||||||||||||||||||||||
Issues may be encountered when connecting to an ST-Link adapter running firmware prior | ||||||||||||||||||||||
v2j24 which do not support the new transport. In this case, the ST-Link firmware should | ||||||||||||||||||||||
be upgraded or, if not possible, the OpenOCD configuration script should be changed to | ||||||||||||||||||||||
source "interface/stlink-hla.cfg" and select the "hla_swd" interface explicitly. | ||||||||||||||||||||||
Backward compatibility with OpenOCD v0.12.0 or older is maintained. | ||||||||||||||||||||||
Comment on lines
+63
to
+67
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit:
Suggested change
(I'll let you re-align paragraph to fit length limit) |
||||||||||||||||||||||
|
||||||||||||||||||||||
Device Drivers and Devicetree | ||||||||||||||||||||||
***************************** | ||||||||||||||||||||||
|
||||||||||||||||||||||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: this could be dropped entirely (moved to commit message if anything)