2024-06-01 05:10 AM
Hello everyone,
I am designing a PCB and I need a ST-Link connection for debug and programming. This is my first time in this kinda stuff so I need some help.
Which one should I have to use for debug and programming?
As I understand Serial Wire is for debug.
1) What is Trace Asynchronous Sw? Can I also program with this ?
2024-06-01 05:49 AM
Use Serial Wire
PB3 = SWO provides for a debug communication channel, basically a serial output.
The Trace requires a more advanced debug/trace pod, connectors frequently found on the EVAL series boards.
https://www.segger.com/products/debug-probes/j-trace/models/j-trace/
https://www.pdqlogic.com/what-is-trace/
2024-06-01 11:05 AM
If you want to use SWD with SWO, "Trace asynchronous sw" is the option that you want. Else, select "Serial Wire". This is for SWD without SWO.
Yet another example of clever, intuitive naming in the Cube GUI.
In both cases you can add optional pin DEBUG_TRGIO (I've never used it).