<?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: Trouble Debugging with J-Link in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Trouble-Debugging-with-J-Link/m-p/724770#M1209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding two break point one at 0x00000000 and one at 0x&lt;SPAN&gt;0000000&lt;/SPAN&gt;4 seems to fix the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm really not sure why.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Oct 2017 00:20:23 GMT</pubDate>
    <dc:creator>sbranover</dc:creator>
    <dc:date>2017-10-27T00:20:23Z</dc:date>
    <item>
      <title>Trouble Debugging with J-Link</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Trouble-Debugging-with-J-Link/m-p/724766#M1205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to debug my code using a Segger J-link and I seem to be getting a hard fault at startup. The same code works with the&amp;nbsp;on board PE-Micro debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the&amp;nbsp;&lt;SPAN style="color: #4a4a4d; background-color: #ffffff; font-size: 16px;"&gt;TWR-KM34Z75M board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4a4a4d; background-color: #ffffff; font-size: 16px;"&gt;Attached is the image of the call tree.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 17:25:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Trouble-Debugging-with-J-Link/m-p/724766#M1205</guid>
      <dc:creator>sbranover</dc:creator>
      <dc:date>2017-10-26T17:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Debugging with J-Link</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Trouble-Debugging-with-J-Link/m-p/724767#M1206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would check if the device specified in the Segger connection dialog is matching your device, as this could cause a hard fault too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 18:09:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Trouble-Debugging-with-J-Link/m-p/724767#M1206</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2017-10-26T18:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Debugging with J-Link</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Trouble-Debugging-with-J-Link/m-p/724768#M1207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The device specified&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;in the Segger connection dialog&lt;/SPAN&gt; is the correct device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the&amp;nbsp;&lt;A href="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0662b/Babefdjc.html"&gt;ARM Exception handling &lt;/A&gt;&lt;/P&gt;&lt;P&gt;Looking at the registers:&lt;/P&gt;&lt;P&gt;LR&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 0xFFFFFFF9&lt;/P&gt;&lt;P&gt;MSP&amp;nbsp; &amp;nbsp; = 0x20005FE0 (pretty much start of stack)&lt;/P&gt;&lt;P&gt;xPSR&amp;nbsp; =&amp;nbsp; 0x61000003&lt;/P&gt;&lt;P&gt;Looking at the stack the previous state was:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;xPSR&amp;nbsp; =&amp;nbsp;&lt;/SPAN&gt;0x61000000&lt;/P&gt;&lt;P&gt;PC&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;0x00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LR&amp;nbsp; &amp;nbsp; &amp;nbsp; = 0x1FFFE32F&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 21:04:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Trouble-Debugging-with-J-Link/m-p/724768#M1207</guid>
      <dc:creator>sbranover</dc:creator>
      <dc:date>2017-10-26T21:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Debugging with J-Link</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Trouble-Debugging-with-J-Link/m-p/724769#M1208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems suspicious to me that g_pfnVectors() shows up in the stack trace with an address of 0x0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That could just be because the stack got clobbered, but can you verify that there were no linker errors?&amp;nbsp; Or start single stepping from _pvHeapStart() and see where things go bad?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 23:33:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Trouble-Debugging-with-J-Link/m-p/724769#M1208</guid>
      <dc:creator>robertpoor</dc:creator>
      <dc:date>2017-10-26T23:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Debugging with J-Link</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Trouble-Debugging-with-J-Link/m-p/724770#M1209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding two break point one at 0x00000000 and one at 0x&lt;SPAN&gt;0000000&lt;/SPAN&gt;4 seems to fix the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm really not sure why.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 00:20:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Trouble-Debugging-with-J-Link/m-p/724770#M1209</guid>
      <dc:creator>sbranover</dc:creator>
      <dc:date>2017-10-27T00:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Debugging with J-Link</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Trouble-Debugging-with-J-Link/m-p/724771#M1210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Setting breakpoints solving the problem&amp;nbsp;sounds a little wierd. Might be interesting to see the log generated by the SEGGER software. See section 3.10, "SEGGER Troubleshooting", of the MCUXpresso IDE v10.02 User Guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also are you seeing this with a standard off-the-shelf project, or is it something you have pulled together yourself?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, please can you confirm what version of MCUXpresso IDE you are using, and also the version of the SEGGER software (and it might be worth installing the latest from their website too and seeing if that helps).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MCUXpresso IDE Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 15:50:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Trouble-Debugging-with-J-Link/m-p/724771#M1210</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2017-10-27T15:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Debugging with J-Link</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Trouble-Debugging-with-J-Link/m-p/724772#M1211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've attached the&amp;nbsp;the logs from J-link and from&amp;nbsp;GDB Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I first discovered the problem on my own project so I tested it on the hello world demo app with similar results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm running&amp;nbsp;MCUXpresso v10.0.2 [Build 411] [2017-07-11]&amp;nbsp;and SEGGER J-Link V6.16b&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 20:42:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Trouble-Debugging-with-J-Link/m-p/724772#M1211</guid>
      <dc:creator>sbranover</dc:creator>
      <dc:date>2017-10-27T20:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Debugging with J-Link</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Trouble-Debugging-with-J-Link/m-p/724773#M1212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't see anything obvious in the logs you sent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As previously suggested, can you try installing the latest SEGGER J-Link software (from&amp;nbsp;&lt;A class="link-titled" href="https://www.segger.com/downloads/jlink/" title="https://www.segger.com/downloads/jlink/"&gt;SEGGER - The Embedded Experts - Downloads - J-Link / J-Trace&lt;/A&gt;&amp;nbsp;) and see if you still see the same behaviour?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would also also be interesting to know whether you see the same behaviour if you delete all breakpoints in the Breakpoints view before you start your debug session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MCUXpresso IDE Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 09:59:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Trouble-Debugging-with-J-Link/m-p/724773#M1212</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2017-10-31T09:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Debugging with J-Link</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Trouble-Debugging-with-J-Link/m-p/724774#M1213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Updating to the latest version of the J-Link software solves the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deleting all breakpoints has no effect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 17:05:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Trouble-Debugging-with-J-Link/m-p/724774#M1213</guid>
      <dc:creator>sbranover</dc:creator>
      <dc:date>2017-11-06T17:05:14Z</dc:date>
    </item>
  </channel>
</rss>

