<?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 LPC-Link2 (LPC4370) Multi-Core Debugging Robustness in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC-Link2-LPC4370-Multi-Core-Debugging-Robustness/m-p/641962#M32632</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello NXP-Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currently, I am evaluating the LPCXpresso's robustness in multi-core debugging before starting an actual project based on a LPC43xx MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm running into serious trouble when I try to start a debug session on the following projects with a LPC-Link2:&lt;/P&gt;&lt;P&gt;- LPCOpen Blinky Multicore Example (from lpcopen_2_12_lpcxpresso_nxp_lpclink2_4370.zip), running the M4 and M0 from SPIFI&lt;/P&gt;&lt;P&gt;- A new, plain multi-core project using the Project Creation Wizard (LPC43XX Multicore M0/M4), running the M4 from SPIFI, the M0 from RAM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trouble means, that&lt;/P&gt;&lt;P&gt;a) starting the debug session on the M0 fails sometimes with various errors and sometimes leads to flash locks (see &lt;A href="https://community.nxp.com/thread/425320"&gt;Flash driver operation failed - Program operation failed validation or readback compare&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;b) trying to pause execution or restart the M0 via the debug toolbar leads to a freeze of the complete IDE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that there are many pitfalls and that there is no way to get an example out of the box up and running. So my general question is: Is LPCXpresso v8.2.2 considered stable in terms of multi-core debugging?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Please note that I do not want to blame anyone. I'm just trying to find out if LPCXpresso is the right development environment for multi-core debugging the LPX43xx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Oct 2016 14:49:01 GMT</pubDate>
    <dc:creator>SynBilly</dc:creator>
    <dc:date>2016-10-17T14:49:01Z</dc:date>
    <item>
      <title>LPC-Link2 (LPC4370) Multi-Core Debugging Robustness</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC-Link2-LPC4370-Multi-Core-Debugging-Robustness/m-p/641962#M32632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello NXP-Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currently, I am evaluating the LPCXpresso's robustness in multi-core debugging before starting an actual project based on a LPC43xx MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm running into serious trouble when I try to start a debug session on the following projects with a LPC-Link2:&lt;/P&gt;&lt;P&gt;- LPCOpen Blinky Multicore Example (from lpcopen_2_12_lpcxpresso_nxp_lpclink2_4370.zip), running the M4 and M0 from SPIFI&lt;/P&gt;&lt;P&gt;- A new, plain multi-core project using the Project Creation Wizard (LPC43XX Multicore M0/M4), running the M4 from SPIFI, the M0 from RAM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trouble means, that&lt;/P&gt;&lt;P&gt;a) starting the debug session on the M0 fails sometimes with various errors and sometimes leads to flash locks (see &lt;A href="https://community.nxp.com/thread/425320"&gt;Flash driver operation failed - Program operation failed validation or readback compare&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;b) trying to pause execution or restart the M0 via the debug toolbar leads to a freeze of the complete IDE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that there are many pitfalls and that there is no way to get an example out of the box up and running. So my general question is: Is LPCXpresso v8.2.2 considered stable in terms of multi-core debugging?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Please note that I do not want to blame anyone. I'm just trying to find out if LPCXpresso is the right development environment for multi-core debugging the LPX43xx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 14:49:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC-Link2-LPC4370-Multi-Core-Debugging-Robustness/m-p/641962#M32632</guid>
      <dc:creator>SynBilly</dc:creator>
      <dc:date>2016-10-17T14:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: LPC-Link2 (LPC4370) Multi-Core Debugging Robustness</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC-Link2-LPC4370-Multi-Core-Debugging-Robustness/m-p/641963#M32633</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;Regarding my M0 debug connection problem, I've found out that the following advice from &lt;A href="https://community.nxp.com/thread/390661"&gt;https://community.nxp.com/thread/390661&lt;/A&gt; is not always true:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;The device closest to TDI (device 2 here) is then the M0APP core.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;With my LPCXpresso V8.2.2 I must select (at least sometimes) the device closest to TDO. Linker settings and startup-code seem to refer both to M0APP, so it shouldn't be the M0SUB which runs the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 07:20:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC-Link2-LPC4370-Multi-Core-Debugging-Robustness/m-p/641963#M32633</guid>
      <dc:creator>SynBilly</dc:creator>
      <dc:date>2016-10-18T07:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPC-Link2 (LPC4370) Multi-Core Debugging Robustness</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC-Link2-LPC4370-Multi-Core-Debugging-Robustness/m-p/641964#M32634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, multicore debugging is pretty solid. We use it ourselves a lot for both development work and testing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an issue recently identified which you might be hitting though, which is related to the automated selection of the M0 cores done in LPCXpresso IDE v8.2.x sometimes not working as expected. This is described in the following post :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/thread/435991#comment-837948" title="https://community.nxp.com/thread/435991#comment-837948"&gt;https://community.nxp.com/thread/435991#comment-837948&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other issue you may encounter is related to the fact that the multicore examples currently shipping in LPCOpen are not configured as "real" multicore projects, from the LPCXpresso IDE viewpoint. Which makes them much more awkward to debug. There is an article here that explains how they can be debugged -&amp;nbsp;&lt;A href="https://community.nxp.com/thread/388766"&gt;How to run Multicore examples provided in LPCOpen LPC43xx packages?&lt;/A&gt;&amp;nbsp;but generally we would recommend that you create new a set of new multicore projects using the LPC43xx new project wizard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, a small number of customers have reported some strange SPIFI flash lockups with. You might want to try swapping to using the flash driver provided in this thread ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/thread/434100#comment-836273" title="https://community.nxp.com/thread/434100#comment-836273"&gt;https://community.nxp.com/thread/434100#comment-836273&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LPCXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 13:14:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC-Link2-LPC4370-Multi-Core-Debugging-Robustness/m-p/641964#M32634</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2016-10-18T13:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: LPC-Link2 (LPC4370) Multi-Core Debugging Robustness</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC-Link2-LPC4370-Multi-Core-Debugging-Robustness/m-p/641965#M32635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might also find the Multicore section of the NXP FTF LPCXpresso workshop presentation useful:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-331545"&gt;DES-N1973 Hands-On Workshop Master Development on the LPCXpresso Toolchain with Our LPCOpen Development Kit .pdf&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;and&amp;nbsp;the videos linked to from the LPCXpresso IDE product page at : &lt;A href="http://www.nxp.com/lpcxpresso"&gt;http://www.nxp.com/lpcxpresso&lt;/A&gt;&amp;nbsp;also contain some demonstrations of multicore debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LPCXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 07:10:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC-Link2-LPC4370-Multi-Core-Debugging-Robustness/m-p/641965#M32635</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2016-10-19T07:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPC-Link2 (LPC4370) Multi-Core Debugging Robustness</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC-Link2-LPC4370-Multi-Core-Debugging-Robustness/m-p/641966#M32636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello NXP Support,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your advices. I'm currently successfully debugging code on the slave M0 core(s), but there were many pitfalls&amp;nbsp;in LPCXpresso v8.2.2 which I want to make you aware of.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem 1: Starting the debug session&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;There is an issue recently identified which you might be hitting though, which is related to the automated selection of the M0 cores done in LPCXpresso IDE v8.2.x sometimes not working as expected.&lt;/BLOCKQUOTE&gt;&lt;P&gt;In my case, this seems a bit optimistic. The automatic core detection (as far as the M0 cores are concerned) does work every now and then. Most of the time, the debugger selects the wrong core and there is no possibility to choose the correct one manually. Having the "Disable Auto-select device on multicore target" selected as you adviced in &lt;A href="https://community.nxp.com/thread/435991"&gt;LPC4370 Cannot reliably enumerate JTAG TAPs&lt;/A&gt;, starting the debug session with the M4 after choosing it from the core list results in an error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="TargetResponse_DisableAutoSelect.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3706i99A8396810F0CC23/image-size/large?v=v2&amp;amp;px=999" role="button" title="TargetResponse_DisableAutoSelect.png" alt="TargetResponse_DisableAutoSelect.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;probelist&lt;BR /&gt;[Started server]&lt;BR /&gt;[Connected on port 3025]&lt;BR /&gt;Index = 1&lt;BR /&gt;Manufacturer = NXP Semiconductors&lt;BR /&gt;Description = LPC-LINK2 CMSIS-DAP V5.173&lt;BR /&gt;Serial Number = IWFWCXOT&lt;BR /&gt;VID:PID = 1FC9:0090&lt;BR /&gt;Path = \\?\hid#vid_1fc9&amp;amp;pid_0090&amp;amp;mi_00#8&amp;amp;1e624100&amp;amp;0&amp;amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030}&lt;BR /&gt;probeopenbyindex 1&lt;BR /&gt;Probe Handle 1 Open&lt;BR /&gt;wirejtagconnect 1&lt;BR /&gt;corelist 1&lt;BR /&gt;TAP 0: 4BA00477 Core 0: M4&amp;nbsp;&amp;nbsp; APID: 24770011&lt;BR /&gt;TAP 1: 0BA01477 Core 0: M0&amp;nbsp;&amp;nbsp; APID: 04770021&lt;BR /&gt;TAP 2: 0BA01477 Core 0: M0&amp;nbsp;&amp;nbsp; APID: 04770021&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The only way to force LPCXpresso to start the debug session on the right cores is to have projects and debug configs for every core (even the unused) and start the debug session in the sequence M4 -&amp;gt; M0SUB -&amp;gt; M0APP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When attaching to the M0 cores, we often get these messages:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="RedLinkInterfaceError255.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3789i344D44F39224DCCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="RedLinkInterfaceError255.jpg" alt="RedLinkInterfaceError255.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, debugging is still working after that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem 2: Debug access to peripherals from a M0 debug session&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Debugging the M0APP core it is not possible to use the "Peripherals+" view in order to access peripheral registers (at least for the ADCHS module). This results in the following error and a debug session crash:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ErrorAfterAccessingPeripheralInM0DebugSession.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3833iC3CC2BF8CC1BBA97/image-size/large?v=v2&amp;amp;px=999" role="button" title="ErrorAfterAccessingPeripheralInM0DebugSession.jpg" alt="ErrorAfterAccessingPeripheralInM0DebugSession.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Despite the problems listed, debugging is working quite stable now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 13:31:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC-Link2-LPC4370-Multi-Core-Debugging-Robustness/m-p/641966#M32636</guid>
      <dc:creator>SynBilly</dc:creator>
      <dc:date>2016-10-19T13:31:56Z</dc:date>
    </item>
  </channel>
</rss>

