Skip to main content
Visitor II
August 10, 2013
Question

ST Link utility Serial Wire Viewer feature via ST Link 2

  • August 10, 2013
  • 6 replies
  • 1939 views
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
    This topic has been closed for replies.

    6 replies

    Graduate II
    August 11, 2013
    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?
    Visitor II
    August 12, 2013
    Posted on August 12, 2013 at 10:30

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

    0690X00000602mcQAA.jpg

    Graduate II
    August 12, 2013
    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

    Visitor II
    August 13, 2013
    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

    Graduate II
    August 13, 2013
    Posted on August 13, 2013 at 23:08

    STM32F2 @ 120 MHz w/ULINK2 also periodically lossy

    Visitor II
    October 10, 2013
    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