<?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>LPC MicrocontrollersのトピックRe: LPC4357 JTAG malfunction with both cores active</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-JTAG-malfunction-with-both-cores-active/m-p/715257#M28903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was in contact with Segger and they don't believe the probe or their driver is at fault. Perhaps it is some memory corruption bug in IAR EW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed I wasn't able to connect to both cores through JLink using its GDB interface. I wanted to try that with IAR EW as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try the NXP IDE and see what happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 25 Mar 2018 19:35:39 GMT</pubDate>
    <dc:creator>leecoakley</dc:creator>
    <dc:date>2018-03-25T19:35:39Z</dc:date>
    <item>
      <title>LPC4357 JTAG malfunction with both cores active</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-JTAG-malfunction-with-both-cores-active/m-p/715254#M28900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a while I've been developing just on the Cortex M4 and had no problems. I'm using IAR EW 8.22.1 with the latest J-Link DLL.&amp;nbsp; But after starting to do dual-core debugging I now see very strange behaviour and I have no idea where it's coming from. doing dual-core debugging I have two IDE windows open and I see the same problems in both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Examples:&lt;/P&gt;&lt;P&gt;- The debugger thinks the core is halted but it actually isn't. I can see the activity LEDs blinking and LCD screen updating normally.&lt;/P&gt;&lt;P&gt;- The debugger reads register values incorrectly as all zero, or all 0x0400'0000 etc.&lt;/P&gt;&lt;P&gt;- Rarely it will corrupt a value in the watch window seemingly by accidentally writing the address of another register into it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you guys ever seen anything like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the debugger is doing the corrupting of the watch variables because I set data breakpoints on both the M4 and M0 and neither ever write to the value.&amp;nbsp; Not only that, the M4 has the MPU configured to catch memory corruptions and I've verified that it does catch such cases.&amp;nbsp; Also when the debugger isn't connected the system is completely stable. I've run it for many hours overnight with zero problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a log of one example where the debugger corrupted the watch variable. I'll attach it to the post. The value I'm watching is "SystemCoreClock".&amp;nbsp; After attaching the debugger and having it foul up, the value in the watch window reads 0xA05F'0003 instead of the clock frequency. This is interesting: that value is what the debugger should write to the DHCSR register to halt the core.&amp;nbsp; But it wrote it to the wrong place somehow!&amp;nbsp; And now it believes the core is halted, when it most definitely isn't. I can see the TX activity light still blinking on the UART and the screen updating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some other info:&lt;/P&gt;&lt;P&gt;- When the M0 isn't running - held in reset in CREG - this doesn't ever happen, or is so rare that I can never observe it.&lt;/P&gt;&lt;P&gt;- If I start the M0 and halt it at the reset vector, the problem still happens on the M4 side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System configuration:&lt;/P&gt;&lt;P&gt;- Cores running at 204MHz from crystal&lt;/P&gt;&lt;P&gt;- EMC with SDRAM @ 102MHz&lt;/P&gt;&lt;P&gt;- USART0 at 115200 baud&lt;/P&gt;&lt;P&gt;- LCD controller driving 480x272 TFT screen&lt;/P&gt;&lt;P&gt;- USB0 in host mode with a HID device attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the obvious: try another probe. But I don't have a spare one! I'll have to go order another to see if that's the problem. But if it's broken then why does it work with only one core active?&amp;nbsp; Tricky.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 19:42:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-JTAG-malfunction-with-both-cores-active/m-p/715254#M28900</guid>
      <dc:creator>leecoakley</dc:creator>
      <dc:date>2018-03-19T19:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4357 JTAG malfunction with both cores active</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-JTAG-malfunction-with-both-cores-active/m-p/715255#M28901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I can now reproduce the issue when the Cortex M0 is not running at all.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It is simply that SWD works and JTAG fails after some time.&amp;nbsp; Even got my hands on a spare probe but the results are the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can it be that JTAG malfunctions but SWD never does?&amp;nbsp; Could there be a bug in the debug probe? I will contact Segger and see what they have to say about it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2018 03:40:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-JTAG-malfunction-with-both-cores-active/m-p/715255#M28901</guid>
      <dc:creator>leecoakley</dc:creator>
      <dc:date>2018-03-21T03:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4357 JTAG malfunction with both cores active</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-JTAG-malfunction-with-both-cores-active/m-p/715256#M28902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could download the latest NXP MCUXpresso IDE for free. It has JLink support. The caveat is I didn’t see JTAG work with their GDB server. SWD provides access only to the M4 core at AP 0. The M0 is accessible only on the JTAG scan chain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;MCUXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2018 03:48:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-JTAG-malfunction-with-both-cores-active/m-p/715256#M28902</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2018-03-21T03:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4357 JTAG malfunction with both cores active</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-JTAG-malfunction-with-both-cores-active/m-p/715257#M28903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was in contact with Segger and they don't believe the probe or their driver is at fault. Perhaps it is some memory corruption bug in IAR EW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed I wasn't able to connect to both cores through JLink using its GDB interface. I wanted to try that with IAR EW as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try the NXP IDE and see what happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Mar 2018 19:35:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-JTAG-malfunction-with-both-cores-active/m-p/715257#M28903</guid>
      <dc:creator>leecoakley</dc:creator>
      <dc:date>2018-03-25T19:35:39Z</dc:date>
    </item>
  </channel>
</rss>

