<?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: How to debug HardFault? in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-debug-HardFault/m-p/577864#M23391</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by whitecoe on Sat Jun 04 08:53:43 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;In the first place, I would suggest looking at the FAQ "Debugging a hard fault" ! ;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/DebugHardFault&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:56:51 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:56:51Z</dc:date>
    <item>
      <title>How to debug HardFault?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-debug-HardFault/m-p/577863#M23390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by karuna on Sat Jun 04 06:11:54 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using lpc1769 and uip stack for Ethernet. When transferring data continuously, code stops at HardFault_Handler rarely.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; What are the possibilities for this error to occur? How to debug this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; When inspecting core registers, got these status info&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; IPSR - 3(Hard Fault)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Faults - PreciseErr, StkErr&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; How to eliminate this unreliable behavior? pls help..:mad:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Thanks in advance..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:56:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-debug-HardFault/m-p/577863#M23390</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug HardFault?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-debug-HardFault/m-p/577864#M23391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by whitecoe on Sat Jun 04 08:53:43 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;In the first place, I would suggest looking at the FAQ "Debugging a hard fault" ! ;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/DebugHardFault&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:56:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-debug-HardFault/m-p/577864#M23391</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug HardFault?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-debug-HardFault/m-p/577865#M23392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kabirbansod on Sat Jun 13 02:27:37 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;What does this mean? :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BusFault_Handler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Details:{void (void)} 0xcc &amp;lt;BusFault_Handler&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Default:{void (void)} 0xcc &amp;lt;BusFault_Handler&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Decimal:&amp;lt;error reading variable&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hex:&amp;lt;error reading variable&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Binary:&amp;lt;error reading variable&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Octal:&amp;lt;error reading variable&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What can be wrong in my code that is causing PRECISE data bus error?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:56:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-debug-HardFault/m-p/577865#M23392</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug HardFault?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-debug-HardFault/m-p/577866#M23393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Sat Jun 13 02:30:52 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Buy yourself a good book on Cortex-M parts... Such as the Definitive Guide books by Joseph Yiu.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:56:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-debug-HardFault/m-p/577866#M23393</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug HardFault?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-debug-HardFault/m-p/577867#M23394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc on Sat Jun 13 06:41:32 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think below appnote is also useful to understand faults and corresponding registers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.keil.com%2Fappnotes%2Ffiles%2Fapnt209.pdf" rel="nofollow" target="_blank"&gt;http://www.keil.com/appnotes/files/apnt209.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also see below page&amp;nbsp; on lpcware&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fdebugging-hard-fault" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/debugging-hard-fault&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:56:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-debug-HardFault/m-p/577867#M23394</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug HardFault?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-debug-HardFault/m-p/577868#M23395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by starblue on Sat Jun 13 11:57:29 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;What I didn't see in the other documents:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have a hard fault that occurs rarely (so you can't provoke it while debugging your code), you can look at the values of PC, LR (R14) and the values on the stack, to see if there are any addresses that point into your code. You can then use the .map file and .lst files to reconstruct where in your code the hard fault occurred.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:56:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-debug-HardFault/m-p/577868#M23395</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug HardFault?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-debug-HardFault/m-p/577869#M23396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kabirbansod on Sun Jun 14 21:33:41 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot. :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:56:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-debug-HardFault/m-p/577869#M23396</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:56:54Z</dc:date>
    </item>
  </channel>
</rss>

