<?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: SWO/SWV on LPC-Link2 with CMSIS-DAP? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SWO-SWV-on-LPC-Link2-with-CMSIS-DAP/m-p/1079443#M41516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bryan,&lt;/P&gt;&lt;P&gt;Hope you are doing well.&lt;/P&gt;&lt;P&gt;From my understanding to your question. You would like to use the onboard LPC4322 and enable the SWO Trace capabilities for the LPC55S69 EVK board, is this correct?&lt;/P&gt;&lt;P&gt;Eanbling the following windows?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/108652i3F98F9E81B36C02B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If so, please let me know so that I can guide you through the process.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 May 2020 16:00:30 GMT</pubDate>
    <dc:creator>Sabina_Bruce</dc:creator>
    <dc:date>2020-05-29T16:00:30Z</dc:date>
    <item>
      <title>SWO/SWV on LPC-Link2 with CMSIS-DAP?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SWO-SWV-on-LPC-Link2-with-CMSIS-DAP/m-p/1079442#M41515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have an LPC55S69 on an LPCXpresso556S9, and we are trying to use the built-in LPC-Link2 (an LPC4322) as a debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running the CMSIS-DAP firmware (v5.361) on the LPC-Link2, the probe reports that it has no SWO/SWV capabilities; rltool output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;&amp;gt; probestatus&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;Index = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;Manufacturer = NXP Semiconductors&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;Description = LPC-LINK2 CMSIS-DAP V5.361&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;Serial Number = JSAQCQIQ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;VID:PID = 1FC9:0090&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;Path = /dev/hidraw2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;IsOpen = TRUE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;WireInitialized = TRUE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;WireProtocol = SWD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;CoresConfigured = TRUE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;PacketSize = 1024&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;Reference Count = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;HasSWV = FALSE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;HasETM = FALSE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;HasJTAG = TRUE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;HasSWD = TRUE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;Probe Type = CMSIS-DAP&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;TAP = 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; Core = 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; CoreReferenceCount = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; HighestPriority = 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; APID = 84770001&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; APIndex = 00&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; DPID = 6ba02477&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; CorePartNo = M33&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;AddrInc = 1024&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;Probe Reference Count = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;However, we know that this is not the case: when running (for example) the lpcxpresso55s69_hello_world_swo via the MCUXpresso IDE (version 11.1.1_3241), we are able to get DWT data (and can see from a logic analyzer that there is DWT data on the SWO pin on the SWD header) -- and we know that the LPC55S69 can successfully generate TPIU-framed ITM data as well by using an external debugger via the SWD header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our questions: it appears that MCUXpresso is going through an interface other than CMSIS-DAP to enable SWO trace on the LPC-Link2; is this interface documented so we can use it through other CMSIS-DAP based tooling? Alternatively, is there LPC-Link2 firmware that correctly reflects its SWV capabilities via CMSIS-DAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With our thanks in advance for any help you can provide!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 06:34:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SWO-SWV-on-LPC-Link2-with-CMSIS-DAP/m-p/1079442#M41515</guid>
      <dc:creator>bryan4</dc:creator>
      <dc:date>2020-05-27T06:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: SWO/SWV on LPC-Link2 with CMSIS-DAP?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SWO-SWV-on-LPC-Link2-with-CMSIS-DAP/m-p/1079443#M41516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bryan,&lt;/P&gt;&lt;P&gt;Hope you are doing well.&lt;/P&gt;&lt;P&gt;From my understanding to your question. You would like to use the onboard LPC4322 and enable the SWO Trace capabilities for the LPC55S69 EVK board, is this correct?&lt;/P&gt;&lt;P&gt;Eanbling the following windows?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/108652i3F98F9E81B36C02B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If so, please let me know so that I can guide you through the process.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2020 16:00:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SWO-SWV-on-LPC-Link2-with-CMSIS-DAP/m-p/1079443#M41516</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2020-05-29T16:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: SWO/SWV on LPC-Link2 with CMSIS-DAP?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SWO-SWV-on-LPC-Link2-with-CMSIS-DAP/m-p/1079444#M41517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sabina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply! No, that's not our question; we know that we can enable SWO via the IDE -- we need to be able to enable SWO &lt;EM&gt;outside&lt;/EM&gt; of the IDE for purposes of development, debugging, CI/CD and so on. Normally, CMSIS-DAP would be the vector for this, but the firmware (incorrectly) reports that it has no SWO capabilities via CMSIS-DAP. So we are really asking for documentation around the interface that we know exists (that is, the interface used via the IDE)&amp;nbsp;&lt;EM&gt;or&lt;/EM&gt; LPC-Link2 firmware that correctly reflects (and allows for operation of) its SWO capabilities via CMSIS-DAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your reply, and in advance for any help you can offer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2020 17:16:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SWO-SWV-on-LPC-Link2-with-CMSIS-DAP/m-p/1079444#M41517</guid>
      <dc:creator>bryan4</dc:creator>
      <dc:date>2020-05-29T17:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: SWO/SWV on LPC-Link2 with CMSIS-DAP?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SWO-SWV-on-LPC-Link2-with-CMSIS-DAP/m-p/1079445#M41518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bryan,&lt;/P&gt;&lt;P&gt;Hope you are doing well.&lt;/P&gt;&lt;P&gt;I've not worked with this outside of the IDE. Could you please describe what other platform you are using so that I may check. In addition, please check the following posts that may provide assistance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/389044"&gt;LPC-Link2 fails to enumerate with CMSIS-DAP firmware&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or the reference guide for further details.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/quick-reference-guide/MCUXpresso_IDE_SWO_Trace.pdf" title="https://www.nxp.com/docs/en/quick-reference-guide/MCUXpresso_IDE_SWO_Trace.pdf"&gt;MCUXpresso IDE SWO Trace&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2020 15:53:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SWO-SWV-on-LPC-Link2-with-CMSIS-DAP/m-p/1079445#M41518</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2020-06-04T15:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: SWO/SWV on LPC-Link2 with CMSIS-DAP?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SWO-SWV-on-LPC-Link2-with-CMSIS-DAP/m-p/1079446#M41519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think MCUXpresso is accessing the Coresight registers directly to configure SWO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2020 17:09:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SWO-SWV-on-LPC-Link2-with-CMSIS-DAP/m-p/1079446#M41519</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2020-06-04T17:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: SWO/SWV on LPC-Link2 with CMSIS-DAP?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SWO-SWV-on-LPC-Link2-with-CMSIS-DAP/m-p/1079447#M41520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CMSIS-DAP is an open source product of Arm.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/ARM-software/CMSIS_5/tree/develop/CMSIS/DAP/Firmware" title="https://github.com/ARM-software/CMSIS_5/tree/develop/CMSIS/DAP/Firmware"&gt;CMSIS_5/CMSIS/DAP/Firmware at develop · ARM-software/CMSIS_5 · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has Apache 2.0 license and source code is available.&amp;nbsp; It uses USB HID for implementation simplicity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first version of CMSIS-DAP (v0.01) did not incorporate SWO support.&lt;/P&gt;&lt;P&gt;There was no v 1.0.&lt;/P&gt;&lt;P&gt;V 1.1.0 was the first to incorporate SWO.&lt;/P&gt;&lt;P&gt;The current version V2.0 fully incorporates it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NXP did not use V 2.0 in their LPCLINKV2 implementation (AFAIK - because it will not work with Keil uVision)&lt;/P&gt;&lt;P&gt;The GitHub link above references an LPCLINK example that might (I have not tried it) work on a LPCLINKV2 board if you can program the on-board processor.&amp;nbsp; (If someone gets this working with SWO and uVision I would like to know about this).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One other clue:&amp;nbsp; I was recently working on a LPC55S69 Cortex-M33 board with a ULINKplus and I was not able to get SWO working. I did have signal at the SWO pin but it was degraded (slow rising and falling edges).&amp;nbsp; It turns out the SWO speed was 96 MHz which is very fast.&amp;nbsp; I found a register TRACECLKDIV that I can easily use to lower the SWO speed to a more sane frequency.&amp;nbsp; 48 MHz works great but for slower debuggers you might have to lower it more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bob Boys&lt;/P&gt;&lt;P&gt;Arm/Keil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 17:12:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SWO-SWV-on-LPC-Link2-with-CMSIS-DAP/m-p/1079447#M41520</guid>
      <dc:creator>robertboys</dc:creator>
      <dc:date>2020-07-01T17:12:22Z</dc:date>
    </item>
  </channel>
</rss>

