http://openocd.zylin.com/5908
Other topic mentionned in this ticket in http://openocd.zylin.com/5909
---
** [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 31, 2020 11:18 AM 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