I received confirmation that the max SWV freq on ST-Link v3 is 24 MHz. Good.
But then, depending on the amount of data generated on SWO, the bottleneck can 
become the USB connections. So be sure to not exaggerate otherwise data could 
be lost.
Are you willing to send your patch on OpenOCD gerrit http://openocd.zylin.com ?

Regarding the other question about checking the baudrate.
We already have merged two patches for J-Link
http://openocd.zylin.com/5807
http://openocd.zylin.com/5846
and there is ongoing a patch for cmsis-dap.
I was planning to use the same method for stlink, after the patches for TPIU 
get merged
http://openocd.zylin.com/#/q/topic:tpiu

Antonio


---

** [tickets:#283] Speed of SWD with SWV with ST-link V3**

**Status:** new
**Milestone:** 0.10.0
**Labels:** SWV stlink 
**Created:** Sat Oct 24, 2020 12:20 PM UTC by Pawel
**Last Updated:** Sat Oct 24, 2020 05:04 PM UTC
**Owner:** nobody


Hi all,

ST-link v3 support SWV up to 24MHz but in openocd it is limited to max 2MHz.
( UM2448 Rev 5 page 18). I work with patched openocd and can verify that it is 
working fine with higher speeds that 2MHz.

It can looks like this:
[https://github.com/ntfreak/openocd/compare/master...phryniszak:master?diff=split](http://)

And one more thing - does it make sense to check baudrate like pyocd?

```python
    def set_swo_clock(self, swo_clock, system_clock):
        """! @brief Prepare TPIU for transmitting SWO at a given baud rate.
        
        Configures the TPIU for SWO UART mode, then sets the SWO clock 
frequency based on
        the provided system clock.
        
        @param self
        @param swo_clock Desired SWO baud rate in Hertz.
        @param system_clock The frequency of the SWO clock source in Hertz. 
This is almost always
            the system clock, also called the HCLK or fast clock.
        @return Boolean indicating if SWO UART mode could be configured with 
the requested
            baud rate set within 3%.
```

I noticed that some baudrate combinations are giving for some reason wrong 
output with openocd.



---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to