<?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 Configuring an LPC43xx debug connection to use SWD in LPCXpresso IDE FAQs</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Configuring-an-LPC43xx-debug-connection-to-use-SWD/m-p/468714#M23</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;NOTE :&lt;/STRONG&gt; In LPCXpresso IDE v7.8.0 and later, when you first debug a project, you will be given the option to select SWD (enabling the use of SWO Trace) or JTAG (to support multicore debugging). This typically avoids the need to modify the launch configuration to swap to SWD. However if you initially selected JTAG and later want to swap to debugging over SWD, then the method below can be used.&lt;/P&gt;&lt;HR style="color: #646464; font-family: Arial, sans-serif; font-size: 12px;" /&gt;&lt;H1 style="font-size: 26px; font-weight: 400; color: #333333; font-family: Lato, sans-serif;"&gt;&lt;/H1&gt;&lt;H1 style="font-size: 26px; font-weight: 400; color: #333333; font-family: Lato, sans-serif;"&gt;&lt;SPAN style="color: #eb7a3d;"&gt;Introduction&lt;/SPAN&gt;&lt;/H1&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to support multi-core debugging, when making debug connections to LPC43xx parts, LPCXpresso IDE will default to using the JTAG protocol rather than SWD (which is used by default for connections to other Cortex-M based MCUs).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally, the use of JTAG rather than SWD is not a problem. But in some circumstances, you may wish to change your LPC43xx debug configuration to use SWD. For example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SWO Trace functionality is only available when connecting to the target MCU using SWD. If you try to start SWO Trace whilst connected over JTAG, you will see an error message.&lt;/LI&gt;&lt;LI&gt;Typically, debug connections made over SWD may be slighter faster than JTAG ones. This might be useful, for example, if programming very large images to SPIFI flash.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;H1 style="font-size: 26px; font-weight: 400; color: #333333; font-family: Lato, sans-serif;"&gt;&lt;SPAN style="color: #eb7a3d;"&gt;Switching to use SWD&lt;/SPAN&gt;&lt;/H1&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select your project in the Project Explorer view and use right click to display the context sensitive menu.Now select the Launch Configuration entry:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; font-family: Arial, sans-serif; font-size: 12px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="148158_148158.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121259iBE744458EE7D80E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="148158_148158.png" alt="148158_148158.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LPCX_LaunchConfigMenu.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54617iAA1BD82B3DD787F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPCX_LaunchConfigMenu.png" alt="LPCX_LaunchConfigMenu.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have previously debugged the selected project, then select "&lt;STRONG&gt;Edit current...&lt;/STRONG&gt;".If you have not previously debugged the selected project, then select "&lt;STRONG&gt;Create and edit new...&lt;/STRONG&gt;"You will then see a new dialog box pop up...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; font-family: Arial, sans-serif; font-size: 12px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="148159_148159.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121260iD9494566F8B6C84D/image-size/large?v=v2&amp;amp;px=999" role="button" title="148159_148159.jpg" alt="148159_148159.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LPC43_debugconfig1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54635i0E040CC5218DAD61/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPC43_debugconfig1.jpg" alt="LPC43_debugconfig1.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ensure that the required project/build configuration is selected in the left hand column...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then on the right hand side of the dialog, select the &lt;STRONG&gt;Debugger&lt;/STRONG&gt; tab and then the &lt;STRONG&gt;Target configuration&lt;/STRONG&gt; sub-tab (as shown in the above screenshot).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then scroll to the bottom of the sub-tab, and change the "Debug options template" from the default "&lt;STRONG&gt;NXP LPC43xx (JTAG)&lt;/STRONG&gt;" to "&lt;STRONG&gt;NXP LPC43xx (SWD)&lt;/STRONG&gt;":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; font-family: Arial, sans-serif; font-size: 12px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="148160_148160.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121261iDE385F01FCB1AD48/image-size/large?v=v2&amp;amp;px=999" role="button" title="148160_148160.jpg" alt="148160_148160.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LPC43_debugconfig2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54773i1638D44BC36CC0E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPC43_debugconfig2.jpg" alt="LPC43_debugconfig2.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then click on the &lt;STRONG&gt;Debug&lt;/STRONG&gt; button to save the change and start a new debug session using an SWD connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; You will need to repeat this for each project that you wish to debug using SWD, and also for each build configuration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR style="color: #646464; font-family: Arial, sans-serif; font-size: 12px;" /&gt;&lt;P&gt;For more general info on launch configurations, please see:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A _jive_internal="true" data-containerid="11529" data-containertype="14" data-objectid="389073" data-objecttype="1" href="https://community.nxp.com/thread/389073"&gt;Launch Configuration Menu&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2016 17:39:38 GMT</pubDate>
    <dc:creator>lpcware-support</dc:creator>
    <dc:date>2016-03-31T17:39:38Z</dc:date>
    <item>
      <title>Configuring an LPC43xx debug connection to use SWD</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Configuring-an-LPC43xx-debug-connection-to-use-SWD/m-p/468714#M23</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;NOTE :&lt;/STRONG&gt; In LPCXpresso IDE v7.8.0 and later, when you first debug a project, you will be given the option to select SWD (enabling the use of SWO Trace) or JTAG (to support multicore debugging). This typically avoids the need to modify the launch configuration to swap to SWD. However if you initially selected JTAG and later want to swap to debugging over SWD, then the method below can be used.&lt;/P&gt;&lt;HR style="color: #646464; font-family: Arial, sans-serif; font-size: 12px;" /&gt;&lt;H1 style="font-size: 26px; font-weight: 400; color: #333333; font-family: Lato, sans-serif;"&gt;&lt;/H1&gt;&lt;H1 style="font-size: 26px; font-weight: 400; color: #333333; font-family: Lato, sans-serif;"&gt;&lt;SPAN style="color: #eb7a3d;"&gt;Introduction&lt;/SPAN&gt;&lt;/H1&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to support multi-core debugging, when making debug connections to LPC43xx parts, LPCXpresso IDE will default to using the JTAG protocol rather than SWD (which is used by default for connections to other Cortex-M based MCUs).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally, the use of JTAG rather than SWD is not a problem. But in some circumstances, you may wish to change your LPC43xx debug configuration to use SWD. For example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SWO Trace functionality is only available when connecting to the target MCU using SWD. If you try to start SWO Trace whilst connected over JTAG, you will see an error message.&lt;/LI&gt;&lt;LI&gt;Typically, debug connections made over SWD may be slighter faster than JTAG ones. This might be useful, for example, if programming very large images to SPIFI flash.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;H1 style="font-size: 26px; font-weight: 400; color: #333333; font-family: Lato, sans-serif;"&gt;&lt;SPAN style="color: #eb7a3d;"&gt;Switching to use SWD&lt;/SPAN&gt;&lt;/H1&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select your project in the Project Explorer view and use right click to display the context sensitive menu.Now select the Launch Configuration entry:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; font-family: Arial, sans-serif; font-size: 12px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="148158_148158.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121259iBE744458EE7D80E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="148158_148158.png" alt="148158_148158.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LPCX_LaunchConfigMenu.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54617iAA1BD82B3DD787F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPCX_LaunchConfigMenu.png" alt="LPCX_LaunchConfigMenu.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have previously debugged the selected project, then select "&lt;STRONG&gt;Edit current...&lt;/STRONG&gt;".If you have not previously debugged the selected project, then select "&lt;STRONG&gt;Create and edit new...&lt;/STRONG&gt;"You will then see a new dialog box pop up...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; font-family: Arial, sans-serif; font-size: 12px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="148159_148159.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121260iD9494566F8B6C84D/image-size/large?v=v2&amp;amp;px=999" role="button" title="148159_148159.jpg" alt="148159_148159.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LPC43_debugconfig1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54635i0E040CC5218DAD61/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPC43_debugconfig1.jpg" alt="LPC43_debugconfig1.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ensure that the required project/build configuration is selected in the left hand column...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then on the right hand side of the dialog, select the &lt;STRONG&gt;Debugger&lt;/STRONG&gt; tab and then the &lt;STRONG&gt;Target configuration&lt;/STRONG&gt; sub-tab (as shown in the above screenshot).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then scroll to the bottom of the sub-tab, and change the "Debug options template" from the default "&lt;STRONG&gt;NXP LPC43xx (JTAG)&lt;/STRONG&gt;" to "&lt;STRONG&gt;NXP LPC43xx (SWD)&lt;/STRONG&gt;":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; font-family: Arial, sans-serif; font-size: 12px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="148160_148160.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121261iDE385F01FCB1AD48/image-size/large?v=v2&amp;amp;px=999" role="button" title="148160_148160.jpg" alt="148160_148160.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LPC43_debugconfig2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54773i1638D44BC36CC0E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPC43_debugconfig2.jpg" alt="LPC43_debugconfig2.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then click on the &lt;STRONG&gt;Debug&lt;/STRONG&gt; button to save the change and start a new debug session using an SWD connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; You will need to repeat this for each project that you wish to debug using SWD, and also for each build configuration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR style="color: #646464; font-family: Arial, sans-serif; font-size: 12px;" /&gt;&lt;P&gt;For more general info on launch configurations, please see:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A _jive_internal="true" data-containerid="11529" data-containertype="14" data-objectid="389073" data-objecttype="1" href="https://community.nxp.com/thread/389073"&gt;Launch Configuration Menu&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 17:39:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Configuring-an-LPC43xx-debug-connection-to-use-SWD/m-p/468714#M23</guid>
      <dc:creator>lpcware-support</dc:creator>
      <dc:date>2016-03-31T17:39:38Z</dc:date>
    </item>
  </channel>
</rss>

