cancel
Showing results for 
Search instead for 
Did you mean: 

ST Link utility Serial Wire Viewer feature via ST Link 2

gabriel239955_st
Associate II
Posted on August 10, 2013 at 23:28

I have tried to use serial wire viewer capability in St Link utility. See attached file for source code. This simple code emits sequence ''012345689'' of char but seems the ST-Link 2 is loosing the sync with the output stream. Can anybody comment this ? Probably bug inside ST Link firmware ?

0690X000006050AQAQ.png

#swv-st-link/v2 #st-link-utility
6 REPLIES 6
Posted on August 12, 2013 at 00:24

Either that or with the viewer implementation, or drivers?

So what firmware is this with, and what adapter? Is this a stand-alone ST-Link or on one of the Discovery series boards?

Does running at higher speeds impact this?
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
stm32forum
Associate II
Posted on August 12, 2013 at 10:30

Taken from the UM0892 User Manual  STM32 ST-LINK Utility software description.

0690X00000602mcQAA.jpg

Posted on August 12, 2013 at 16:20

V16 and Keil seems to have the occasional drop. Not sure it's designed to be a high bandwidth connection, just periodic debug/telemetry

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
gabriel239955_st
Associate II
Posted on August 13, 2013 at 22:24

We have tried in

http://sourceforge.net/projects/codeblockeps-ni/?source=directory

where is possibility to adjust SWO baud rate but this drop also persist. Tested with STM32F4 DISCOVERY firmware V2.J17.S0. The SWO baud rate was decreased to 19200 bps which significantly low.

0690X00000604opQAA.png

Posted on August 13, 2013 at 23:08

STM32F2 @ 120 MHz w/ULINK2 also periodically lossy

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
gabriel239955_st
Associate II
Posted on October 10, 2013 at 11:41

Another case is when one wants to use wprintf to output UNICODE wchar_t type characters for example chinese text. Single byte loss corrupts the whole stream until next ITM SYNC packet. So the mentioned ST-LINK, ULINK2 are for this case totally unusable ? Any other product ?

0690X000006051cQAA.png