stlink
stlink copied to clipboard
[feature] st-util with SWO support possible?
- [x] Stlink/v2-onboard
- [x] Linux
- [x]
st-util
- [x] STM32F769 Discovery
I was wondering if it's possible to have SWO output from target. It will be great to have sort of printf window for debug messages. The closest minimalist solution I have found is explained here, but depends on STM32 ST-Link Utility or Keil uVision for it.
Please let me know your thoughts,
Its possible, but not implemented. OpenOCD has support for this to write ITM port 0 or 1 to a file.
Hello, Do you plan to implement swo?
+1 on SWO feature
also +1 on SWO feature
Hi @mhanuel26, @shizacat, @langhaarschneider, The stlink project now contains a st-trace utility program that will read SWO output from a target. (Run "st-trace --help" for more details.) Does this meet your needs? If not, can you explain how you would like this to work?
@simplerobot Viewing the SWO output while debugging would be a nice touch. Currently only the semihosting is supported: https://github.com/stlink-org/stlink/blob/01418b5666c72ce802ea5af88b62dc9aa06c8c3e/src/st-util/gdb-server.c#L1423-L1481
I really need this feature. I see it is added to the list of release v1.7.1. When can I expect the release of v1.7.1?
Currently no date or time frame is planned for any new release. This is because development is currently mostly on hold within this project, see also: https://github.com/stlink-org/stlink/discussions/1223
I'd consider this a useful feature as well. Who can help out on this topic? Does anybody have an idea how to implement this?
What is the status of SWO working with STLink (st-util) such that Cortex-Debug and uScope (RTT viewer, https://github.com/DEMCON/uscope) can use it ?
If it now does work, does one need to reflash the STLink device to make SWO work or just update st-util ?
If it doesn't work, what can I do to help the situation ?
Hi @mhanuel26, @shizacat, @langhaarschneider, The stlink project now contains a st-trace utility program that will read SWO output from a target. (Run "st-trace --help" for more details.) Does this meet your needs? If not, can you explain how you would like this to work?
Speaking as a VSCode user, how would I configure VSCode to work with st-trace ? Let's assume I want to use uScope (https://github.com/DEMCON/uscope) as my rtt viewer.
@linuxguy123 There have been no action or any efforts on this topic since the last response of @Ant-ON. I personally can't contribute to this topic, sorry.