Skip to content

SWO support when using ST-LINK GDB server#1072

Merged
haneefdm merged 4 commits intoMarus:masterfrom
minuteos:feat/stlink-swo
Jan 14, 2025
Merged

SWO support when using ST-LINK GDB server#1072
haneefdm merged 4 commits intoMarus:masterfrom
minuteos:feat/stlink-swo

Conversation

@ssimek
Copy link
Contributor

@ssimek ssimek commented Jan 13, 2025

Adds the ability to use the raw SWO stream from the ST-LINK debugger.

One important change is waiting for SWO connection during startup - this seems to be necessary because starting the actual launch completely confuses ST-LINK's GDB and leaves it in a semi-frozen state. I'm sure this change should be beneficial for other adapters as well as I've seen SWO randomly not working from time to time and this is a possible explanation.

For the future, we could consider refactoring the GDB server controllers for better code sharing, there is not much about SWO init that is server specific, other than an occasional monitor command.

@haneefdm
Copy link
Collaborator

Can you please update the CHANGELOG.md as well? Just something brief for anything that might be user-visible.

@haneefdm
Copy link
Collaborator

Especially for new features.

@haneefdm haneefdm merged commit 2da1274 into Marus:master Jan 14, 2025
3 checks passed
@ssimek ssimek deleted the feat/stlink-swo branch January 17, 2025 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants