2019-12-07 05:40 PM
"Is it possible to automatically record SWV output in the SWV Console window so i do not have to push the red button manually on every launch?"
This was asked back in 2018 and still annoyes users...
https://blog.atollic.com/learn-serial-wire-viewer-debugging-on-cortex-m
Any chance it will be done?
Thanks,
Pavel
Solved! Go to Solution.
2022-04-19 11:57 PM
Yep!
The errata for release 1.8.0 states under "Fixed issues":
95519 SWV Start Trace button now remembers its state.
Which means that as long as you are using 1.8.0 or a newer release of STM32CubeIDE it should no longer be necessary to press the button for each debug session.
2022-04-20 12:10 AM
Hello,
This feature is supported since STM32CubeIde 1.8.0 version.
You have to start it once (with the red button) and it will be automatically started on the next debug sessions.
Rgds,
Laurent
2022-04-20 04:52 PM
@LaurentL @Markus GIRDLAND don't laugh at me.... but on the second thought - can automatic start of trace cause trouble?
The problem is that the server must know the target system clock frequency.
Usually the target starts on a different clock (internal vs external .... etc) and only some time later switches to the frequency specified in trace parameters.
Can bad trace data that arrives before the target clock switch confuse the server?
-- pa
2022-04-22 01:32 AM
Hello @Pavel A. ,
No laugh here, the point is valid. I asked the developer who implemented it and he said that it's possible that some "garbage" data could appear in the SWV views if, for example, you printf before the clock is configured. However, it shouldn't be able to crash, confuse and/or sabotage anything as far as he is aware.
But as always, if you find a use case that proves him wrong then let me know and I'll write a ticket ;)