<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>STM32 ULINK2 Serial Wire debug Issue</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/28117/stm32-ulink2-serial-wire-debug-issue</link><description> 
I am attempting to transfer debug messages from an STM32
(STM32F103VE) via ULINK2. 
I am outputting the messages via the ST library version of
ITM_ReceiveChar. 

 
Serial Wire works great for &amp;quot;normal&amp;quot; debugging and programming,
but the trace features</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: STM32 ULINK2 Serial Wire debug Issue</title><link>https://community.arm.com/thread/136334?ContentTypeID=1</link><pubDate>Thu, 18 Nov 2010 23:05:10 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:58d9745a-e820-4704-914f-f1403a03bd55</guid><dc:creator>Robert &amp;#160;</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;If JTAG firmware verify works then that&amp;#39;s the same line as the
trace connector, so the connection should be fine right?&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Not necessarily. Serial Wire Trace uses a separate pin SWO (shared
with TDO) where Serial Wire Debug uses SWCLK/TCK and SWDIO/TMS.&lt;/p&gt;

&lt;p&gt;
You can verify the connection of all Serial Wire lines buy
switching the debug port to JTAG (without trace).&lt;/p&gt;

&lt;p&gt;
&amp;quot;No Synchronization&amp;quot; usually means that the SWO signal is not
present or the frequency doesn&amp;rsquo;t match. Check the waveform on
the SWO line. Should be UART style communication with frequency
matching the trace setting.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32 ULINK2 Serial Wire debug Issue</title><link>https://community.arm.com/thread/126523?ContentTypeID=1</link><pubDate>Thu, 18 Nov 2010 19:48:40 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e01ac9fd-7a71-4867-bb65-53132708df09</guid><dc:creator>Bill Johnson</dc:creator><description>&lt;p&gt;&lt;p&gt;
Tried a totally different board (previous tests were on a
prototype board).&lt;br /&gt;
Now using STM32-h103 from olimex, same micro but not made by me.&lt;/p&gt;

&lt;p&gt;
It still doesn&amp;#39;t work.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32 ULINK2 Serial Wire debug Issue</title><link>https://community.arm.com/thread/116126?ContentTypeID=1</link><pubDate>Thu, 18 Nov 2010 19:37:56 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e07ef5ff-f34d-4bdb-994e-0ca87abdeda1</guid><dc:creator>Bill Johnson</dc:creator><description>&lt;p&gt;&lt;p&gt;
Tried out that example.&lt;br /&gt;
Same results...No Synchronization.&lt;br /&gt;
If JTAG firmware verify works then that&amp;#39;s the same line as the trace
connector, so the connection should be fine right?&lt;br /&gt;
I put a CRO on the trace line and can see heaps of activity.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32 ULINK2 Serial Wire debug Issue</title><link>https://community.arm.com/thread/102326?ContentTypeID=1</link><pubDate>Thu, 18 Nov 2010 02:44:55 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c5b9d1f1-ab5b-4299-98ac-e2c53f49f889</guid><dc:creator>Bill Johnson</dc:creator><description>&lt;p&gt;&lt;p&gt;
I&amp;#39;ve quadruple checked the core clock (HCLK) via setting in
peripheral debug window and various other ways, 72 MHz in my
case.&lt;br /&gt;
Of course the micro doesn&amp;#39;t power on at this speed.&lt;br /&gt;
I&amp;#39;ll try this example and see how I go.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32 ULINK2 Serial Wire debug Issue</title><link>https://community.arm.com/thread/78806?ContentTypeID=1</link><pubDate>Wed, 17 Nov 2010 23:10:29 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f87bb12d-4c45-4e51-9742-df734f967624</guid><dc:creator>Robert &amp;#160;</dc:creator><description>&lt;p&gt;&lt;p&gt;
Trace via Serial Wire needs to be properly configured. This
includes configuration of pins for STM32F and Trace configuration of
debugger under Options - Debug - ULINK - Settings - Trace. It is
crucial that a correct Core Clock is entered.&lt;/p&gt;

&lt;p&gt;
Take a look at the example Keil\ARM\Boards\Keil\MCBSTM32E\Blinky
(Target MCBSTM32E Trace) in your Keil installation. This example is
properly configured for STM32F and ULINK2 and captures trace over
Serial Wire.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32 ULINK2 Serial Wire debug Issue</title><link>https://community.arm.com/thread/58888?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2010 09:50:15 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a4deb3d5-dc23-4307-9b55-1ec708932cd0</guid><dc:creator>Bill Johnson</dc:creator><description>&lt;p&gt;&lt;p&gt;
Minor update...&lt;br /&gt;
I&amp;#39;ve tried the CMSIS example off hte keil website and that doesn&amp;#39;t
work either.&lt;br /&gt;
I&amp;#39;ve also read everything I can get my hands on and nothing seems to
explain this.&lt;br /&gt;
There are also no messages in the trace records dialog.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>