<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Enable SWO Debug on LPC55xx Custom Board and LPC-Link2 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Enable-SWO-Debug-on-LPC55xx-Custom-Board-and-LPC-Link2/m-p/1395520#M47549</link>
    <description>&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;the thread includes one additional step "&lt;SPAN&gt;&lt;STRONG&gt;Step3. Enable SWO Trace clock&lt;/STRONG&gt;" which is not explicitly mentioned in the device manual&amp;nbsp;UM11126.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I might sound tedious but this should be explicitly mentioned in the device manual.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now to configure trace clock, I need to know what the maximum speed of the SWO is. Manual states that I should set TRACECLKDIV to 0 (i.e., divide by 1). Connected to system clock this would mean a trace clock for SWO fo 100 MHz in my system. &lt;/SPAN&gt;&lt;SPAN&gt;I wonder whether this is too high.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;What is the (maximum) recommended value for Trace Clock?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;What do I have to configure as Clock Speed in SWO Trace Config view: System Clock or Trace Clock? Note: pressing "Detect" fills in the value of System Clock, i.e., 100 MHz.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;What are requirements regarding cabling (ribbon cable between board and LPC-Link2)?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jan 2022 16:52:11 GMT</pubDate>
    <dc:creator>danielholala</dc:creator>
    <dc:date>2022-01-06T16:52:11Z</dc:date>
    <item>
      <title>Enable SWO Debug on LPC55xx Custom Board and LPC-Link2</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Enable-SWO-Debug-on-LPC55xx-Custom-Board-and-LPC-Link2/m-p/1395002#M47539</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I have a custom board with LPC5526. It has an SWD connector with SWO connected to&amp;nbsp;PIO0_8. So far I had no issues with debugging my program using MCUXpresso IDE 11.4.1. I can stop the program, set breakpoints and everything else in the debugger works like a charm.&lt;/P&gt;&lt;P&gt;Now I wanted to use the SWO Debug views that MCUXpresso provides (e.g., SWO ITM Console). Using Pins Tool, I configured PIO0_8 for SWO. In SWO Trace Config I set the clock speed to system clock speed (which is 100 MHz).&lt;/P&gt;&lt;P&gt;However, as soon as I click "Resume data display" (white triangle on green ball) in, e.g., SWO ITM Console I get the error message:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Failed to initialize SWO trace.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Reason: Failed to configure the probe for SWO. Unable to program the SWO coresight component.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I wonder why this is?&lt;/P&gt;&lt;P&gt;Do I have to explicitly enable the Trace clock first?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="danielholala_0-1641403212154.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/166788iD0D9A81A70B6C275/image-size/large?v=v2&amp;amp;px=999" role="button" title="danielholala_0-1641403212154.png" alt="danielholala_0-1641403212154.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'M asking as neither the User Manual UM11126 (chapter 51) nor the "MCUXpresso IDE SWO Trace Guide" (included with MCUXpresso installation)&amp;nbsp; suggest to enable TRACECLKSEL before using SWO.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 17:29:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Enable-SWO-Debug-on-LPC55xx-Custom-Board-and-LPC-Link2/m-p/1395002#M47539</guid>
      <dc:creator>danielholala</dc:creator>
      <dc:date>2022-01-05T17:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Enable SWO Debug on LPC55xx Custom Board and LPC-Link2</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Enable-SWO-Debug-on-LPC55xx-Custom-Board-and-LPC-Link2/m-p/1395504#M47547</link>
      <description>&lt;P&gt;Hello &lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-V lia-component-message-view-widget-author-username"&gt;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" style="color: #333f48;" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/139806" target="_self" aria-label="View Profile of danielholala"&gt;&lt;SPAN class=""&gt;danielholala&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;How about refer to&amp;nbsp; the below thread:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/MCUXpresso-General-Knowledge/How-To-Use-SWO-Trace-on-MCUXpresso-IDE/ta-p/1125902" target="_blank"&gt;https://community.nxp.com/t5/MCUXpresso-General-Knowledge/How-To-Use-SWO-Trace-on-MCUXpresso-IDE/ta-p/1125902&lt;/A&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 09:00:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Enable-SWO-Debug-on-LPC55xx-Custom-Board-and-LPC-Link2/m-p/1395504#M47547</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-01-06T09:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Enable SWO Debug on LPC55xx Custom Board and LPC-Link2</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Enable-SWO-Debug-on-LPC55xx-Custom-Board-and-LPC-Link2/m-p/1395520#M47549</link>
      <description>&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;the thread includes one additional step "&lt;SPAN&gt;&lt;STRONG&gt;Step3. Enable SWO Trace clock&lt;/STRONG&gt;" which is not explicitly mentioned in the device manual&amp;nbsp;UM11126.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I might sound tedious but this should be explicitly mentioned in the device manual.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now to configure trace clock, I need to know what the maximum speed of the SWO is. Manual states that I should set TRACECLKDIV to 0 (i.e., divide by 1). Connected to system clock this would mean a trace clock for SWO fo 100 MHz in my system. &lt;/SPAN&gt;&lt;SPAN&gt;I wonder whether this is too high.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;What is the (maximum) recommended value for Trace Clock?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;What do I have to configure as Clock Speed in SWO Trace Config view: System Clock or Trace Clock? Note: pressing "Detect" fills in the value of System Clock, i.e., 100 MHz.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;What are requirements regarding cabling (ribbon cable between board and LPC-Link2)?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 16:52:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Enable-SWO-Debug-on-LPC55xx-Custom-Board-and-LPC-Link2/m-p/1395520#M47549</guid>
      <dc:creator>danielholala</dc:creator>
      <dc:date>2022-01-06T16:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Enable SWO Debug on LPC55xx Custom Board and LPC-Link2</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Enable-SWO-Debug-on-LPC55xx-Custom-Board-and-LPC-Link2/m-p/1396060#M47563</link>
      <description>&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;I now configured Trace Clock to 100 MHz using Clocks Tool (TRACECLKDIV = 0, i.e., Trace Clock == System Clock). LPC-Link2 debug probe is connected to target via 100 mm ribbon cable.&lt;/P&gt;&lt;P&gt;Further, after starting a debugging session on the target (using MCUXpresso IDE) I let it run past the clock configuration code to make sure all clocks are configured properly.&lt;/P&gt;&lt;P&gt;Then in "SWO Trace Config" I click on "Change" button and click on "Detect". A clock speed of 100 MHz is detected. I accept this value.&lt;/P&gt;&lt;P&gt;This is what "SWO Trace Config" looks like thereafter:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="danielholala_0-1641542464456.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/166996iA022669115BA77E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="danielholala_0-1641542464456.png" alt="danielholala_0-1641542464456.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="danielholala_1-1641542483378.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/166997iFF2BA2A36124EED2/image-size/large?v=v2&amp;amp;px=999" role="button" title="danielholala_1-1641542483378.png" alt="danielholala_1-1641542483378.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Everything seems ready to start an SWO trace.&lt;/P&gt;&lt;P&gt;However, clicking on "Resume data display" in any of the SWO views results in this error message window:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Data communication error&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Error encountered during data processing.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;see screenshot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="danielholala_2-1641542580879.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/166998iD89A080B77F368DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="danielholala_2-1641542580879.png" alt="danielholala_2-1641542580879.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got the SWO trace running only twice on this board and I have difficulties getting it to work again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 08:55:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Enable-SWO-Debug-on-LPC55xx-Custom-Board-and-LPC-Link2/m-p/1396060#M47563</guid>
      <dc:creator>danielholala</dc:creator>
      <dc:date>2022-01-07T08:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Enable SWO Debug on LPC55xx Custom Board and LPC-Link2</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Enable-SWO-Debug-on-LPC55xx-Custom-Board-and-LPC-Link2/m-p/1396082#M47564</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;danielholala,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How about directly use the demo "hello_world_swo" under SDK/&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 09:36:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Enable-SWO-Debug-on-LPC55xx-Custom-Board-and-LPC-Link2/m-p/1396082#M47564</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-01-07T09:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Enable SWO Debug on LPC55xx Custom Board and LPC-Link2</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Enable-SWO-Debug-on-LPC55xx-Custom-Board-and-LPC-Link2/m-p/1396129#M47567</link>
      <description>&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;followed your advice:&lt;/P&gt;&lt;P&gt;I imported this example from the SDK for the LPCXpresso55S28 evaluation board. This board includes a LPC-Link2 debug probe if I'm not mistaken.&lt;/P&gt;&lt;P&gt;After compiling and starting a "Debug session", debugger stops it in &lt;EM&gt;main()&lt;/EM&gt; (default breakpoint) as usual and I continue execution.&lt;/P&gt;&lt;P&gt;While the target ist running, I go to SWO Trace Config and set clock speed. A clock speed of 12 MHz is detected. See screenshot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="danielholala_0-1641554252613.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/167016i5694590D69F9D5D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="danielholala_0-1641554252613.png" alt="danielholala_0-1641554252613.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SWO Status is incomplete:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="danielholala_1-1641554277614.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/167017i7BC7A6C1C721217B/image-size/large?v=v2&amp;amp;px=999" role="button" title="danielholala_1-1641554277614.png" alt="danielholala_1-1641554277614.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Starting SWO "Resume data display" results in the same error message window as reported earlier:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Data communication error&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Error encountered during data processing.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Please advise. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 11:27:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Enable-SWO-Debug-on-LPC55xx-Custom-Board-and-LPC-Link2/m-p/1396129#M47567</guid>
      <dc:creator>danielholala</dc:creator>
      <dc:date>2022-01-07T11:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Enable SWO Debug on LPC55xx Custom Board and LPC-Link2</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Enable-SWO-Debug-on-LPC55xx-Custom-Board-and-LPC-Link2/m-p/1396191#M47568</link>
      <description>&lt;P&gt;I figured that my custom board is having no SWO issues. It's running perfectly as is the LPCXpresso55S28 board. However, &lt;A href="https://community.nxp.com/t5/MCUXpresso-IDE/SWO-Issues-SWO-works-only-once-MCUXpresso-IDE-11-4-1-LPC55xx/m-p/1396188" target="_self"&gt;SWO only works in the &lt;STRONG&gt;first debug&lt;/STRONG&gt; session after starting MCUXpresso IDE&lt;/A&gt;. As soon as I stop debugging and start to debug my project again, the error message window appears. So I assume that this is a bug in MCUXpresso IDE.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 14:40:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Enable-SWO-Debug-on-LPC55xx-Custom-Board-and-LPC-Link2/m-p/1396191#M47568</guid>
      <dc:creator>danielholala</dc:creator>
      <dc:date>2022-01-07T14:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Enable SWO Debug on LPC55xx Custom Board and LPC-Link2</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Enable-SWO-Debug-on-LPC55xx-Custom-Board-and-LPC-Link2/m-p/1396506#M47574</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/139806" target="_self" aria-label="View Profile of danielholala"&gt;&lt;SPAN class=""&gt;danielholala&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;OK, thanks for your sharing, about your IDE case, there will be other help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 03:51:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Enable-SWO-Debug-on-LPC55xx-Custom-Board-and-LPC-Link2/m-p/1396506#M47574</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-01-10T03:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Enable SWO Debug on LPC55xx Custom Board and LPC-Link2</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Enable-SWO-Debug-on-LPC55xx-Custom-Board-and-LPC-Link2/m-p/1397909#M47602</link>
      <description>&lt;P&gt;Summary:&lt;/P&gt;&lt;P&gt;a) Trace Clock has to be enabled. Set TRACECLKDIV = 0 (Divider = 1) and withTRACECLKSEL select divider output.&lt;/P&gt;&lt;P&gt;b) SWO and MCUXpresso IDE 11.4 is buggy. Tried with clean installation and issues persist. See &lt;A href="https://community.nxp.com/t5/MCUXpresso-IDE/SWO-Issues-SWO-works-only-once-MCUXpresso-IDE-11-4-1-LPC55xx/m-p/1396790" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;c) Good introduction to SWO Trace can be found &lt;A href="https://mcuoneclipse.com/2021/05/22/swo-with-arm-cortex-m33/" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 07:43:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Enable-SWO-Debug-on-LPC55xx-Custom-Board-and-LPC-Link2/m-p/1397909#M47602</guid>
      <dc:creator>danielholala</dc:creator>
      <dc:date>2022-01-12T07:43:55Z</dc:date>
    </item>
  </channel>
</rss>

