<?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: Processor crash in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524217#M6853</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Fri Nov 27 02:28:32 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: chris_williams_uk&lt;/STRONG&gt;&lt;BR /&gt;An interrupt causes it to crash at some point, randomly, nothing unusual there.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stack corruption?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Possible reasons for a Hard Fault include:&lt;BR /&gt;&lt;BR /&gt; -&amp;nbsp; Trying to read or write to an on-chip peripheral that is powered down or not being clocked&lt;BR /&gt; -&amp;nbsp; Stack corruption - for example, overwriting the stack with data&lt;BR /&gt; -&amp;nbsp; Calling a function pointer with an invalid address&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:07:54 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:07:54Z</dc:date>
    <item>
      <title>Processor crash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524205#M6841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by chris_williams_uk on Thu Nov 26 01:59:48 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am sure you get lots of 'processor crash' problems, BUT I think this one is different:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The processor is the LPC1788&amp;nbsp; (ARM cortex M3) running bare bones with attached TFT LCD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An interrupt causes it to crash at some point, randomly, nothing unusual there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HOWEVER,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The processor seems to have completely died.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Non of the traps have been called, they are all monitored.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The main oscillator is running.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The LCD which runs from external memory has a blank single colour screen. When I look at the external memory bus it is stopped, so the LCD is still trying to run, but not accessing external memory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The watchdog trap is not called, however, if watchdog is set to reset, that will recover.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Jtag debug port crashes. It works fine up until the processor crash and then the debugger fails to access the processor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, the processor sems to be completely stopped.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody know what state the processor is in? and how it might have got there?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, Chris.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:07:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524205#M6841</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Processor crash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524206#M6842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu Nov 26 02:27:56 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: chris_williams_uk&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Any ideas appreciated.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you boot into ISP already?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:07:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524206#M6842</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Processor crash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524207#M6843</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 Thu Nov 26 03:03:45 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;There is Lockup state (see ARMv7-M Architecture Reference Manual, DDI 0403 for details), but as far as I understand Debug should still work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:07:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524207#M6843</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Processor crash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524208#M6844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by vtw.433e on Thu Nov 26 03:09:50 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Has it gone to sleep? That would explain what you are seeing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:07:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524208#M6844</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Processor crash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524209#M6845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by chris_williams_uk on Thu Nov 26 03:14:07 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Good idea, I had not thought of that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have just checked. I try sending '?' to the serial port which is I think the sync character and I get no reply. Also, should the Jtag still work in ISP?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:07:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524209#M6845</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Processor crash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524210#M6846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu Nov 26 03:31:03 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: chris_williams_uk&lt;/STRONG&gt;&lt;BR /&gt;Good idea, I had not thought of that.&lt;BR /&gt;I have just checked. I try sending '?' to the serial port which is I think the sync character and I get no reply. Also, should the Jtag still work in ISP?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nice theory&amp;nbsp; :D &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately it's possible that you are in ISP and debugging isn't working&amp;nbsp; :(( &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would suggest to use FlashMagic after booting into ISP. If UART-ISP isn't working your MCU is dead...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Probably you have more than 1 board, so testing UART-ISP / FlashMagic with a working board should show a different behaviour.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Usually the MCU is dead (or CRP locked) if ISP isn't working...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: IIRC there's a baud rate issue and you can't use ISP baudrates &amp;gt; 57600... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:07:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524210#M6846</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Processor crash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524211#M6847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mysepp on Thu Nov 26 04:36:40 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;What does "The processor seems to have completely died." mean?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What does "So, the processor sems to be completely stopped." mean?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Works again after reset? Till next time this happens? Or does it not respond any more at all?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or is the controller not usable any more at all?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:07:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524211#M6847</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Processor crash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524212#M6848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by chris_williams_uk on Thu Nov 26 08:04:58 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Processor seems to have completely died. It is not running the code from external flash, it has not called any traps, it will not respond to the Jtag debugger.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After a reset it restarts with no problems. I can then cause the fault again by running a particular bit of code when it interacts with an interrupt routine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This does NOT permanently damage the processor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, as I said the processor seems to have stopped. The fact that the Jtag also fails seems to be important in this, I just don't know how.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:07:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524212#M6848</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Processor crash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524213#M6849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by chris_williams_uk on Thu Nov 26 08:45:33 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: vtw.433e&lt;/STRONG&gt;&lt;BR /&gt;Has it gone to sleep? That would explain what you are seeing.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good idea. However I have just checked and I have put MMU protection over all the sys control registers, so it should give an MMU fault if it tries to write to the power down registers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the idea.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:07:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524213#M6849</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Processor crash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524214#M6850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by chris_williams_uk on Thu Nov 26 09:07:16 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: R2D2&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: chris_williams_uk&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Any ideas appreciated.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Did you boot into ISP already?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought I would do a further test.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have just booted into ISP and then run the debugger. It connects with no problem and I can halt and step with no problem, so I don't think that is the mode I am getting into.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:07:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524214#M6850</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Processor crash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524215#M6851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Thu Nov 26 18:20:09 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you configure for Ethernet?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the EMAC RX and (or?) TX clocks are not correct the dubugger stops (I was using SWD)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem does not arise if you are not using Ethernet. The are a few threads on this if you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;do use Ethernet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:07:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524215#M6851</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Processor crash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524216#M6852</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 Fri Nov 27 01:34:44 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: MikeSimmonds&lt;/STRONG&gt;&lt;BR /&gt;If the EMAC RX and (or?) TX clocks are not correct the debugger stops (I was using SWD)&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, it could be stalled when trying to access some peripheral register when the peripheral is without clock.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Similar things could happen with the realtime clock, I think.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:07:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524216#M6852</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Processor crash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524217#M6853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Fri Nov 27 02:28:32 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: chris_williams_uk&lt;/STRONG&gt;&lt;BR /&gt;An interrupt causes it to crash at some point, randomly, nothing unusual there.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stack corruption?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Possible reasons for a Hard Fault include:&lt;BR /&gt;&lt;BR /&gt; -&amp;nbsp; Trying to read or write to an on-chip peripheral that is powered down or not being clocked&lt;BR /&gt; -&amp;nbsp; Stack corruption - for example, overwriting the stack with data&lt;BR /&gt; -&amp;nbsp; Calling a function pointer with an invalid address&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:07:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524217#M6853</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Processor crash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524218#M6854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by chris_williams_uk on Fri Nov 27 03:03:06 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: MikeSimmonds&lt;/STRONG&gt;&lt;BR /&gt;Do you configure for Ethernet?&lt;BR /&gt;&lt;BR /&gt;If the EMAC RX and (or?) TX clocks are not correct the dubugger stops (I was using SWD)&lt;BR /&gt;The problem does not arise if you are not using Ethernet. The are a few threads on this if you&lt;BR /&gt;do use Ethernet.&lt;BR /&gt;&lt;BR /&gt;Mike.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I do use Ethernet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Its actually working quite hard at this point. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you point me to a thread to look at?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:07:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524218#M6854</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Processor crash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524219#M6855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by chris_williams_uk on Fri Nov 27 03:08:27 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: R2D2&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: chris_williams_uk&lt;/STRONG&gt;&lt;BR /&gt;An interrupt causes it to crash at some point, randomly, nothing unusual there.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;Stack corruption?&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Possible reasons for a Hard Fault include:&lt;BR /&gt;&lt;BR /&gt; -&amp;nbsp; Trying to read or write to an on-chip peripheral that is powered down or not being clocked&lt;BR /&gt; -&amp;nbsp; Stack corruption - for example, overwriting the stack with data&lt;BR /&gt; -&amp;nbsp; Calling a function pointer with an invalid address&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I agree, stack corruption could be a problem, BUT we should then get a hard fault?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can get a problem if the hard fault handler then tries to stack. So, I have declared all my trap functions as __attribute__ ((naked))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have checked the assembler and I can see that there is no stacking in the traps. Unfortunately I still get no trap message!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As an aside: How do you get a trap message when you can't call any routines (no stack)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use a single write to the serial port TX register. Even if my LCD has stopped and I can't run any routines, a single character too the serial port register will still indicate I have called the trap routine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:07:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524219#M6855</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Processor crash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524220#M6856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Fri Nov 27 04:23:48 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: chris_williams_uk&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I agree, stack corruption could be a problem, BUT we should then get a hard fault?&lt;BR /&gt;&lt;BR /&gt;You can get a problem if the hard fault handler then tries to stack. So, I have declared all my trap functions as __attribute__ ((naked))&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even a naked hard fault handler with simple LED asm code isn't always executed&amp;nbsp; :O &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So without debugger and without fault handler your last chance is to change your code / project settings to find your problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would guess it's a RAM usage problem, somewhere someone is overwriting something&amp;nbsp; :(( &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:07:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524220#M6856</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Processor crash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524221#M6857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Fri Nov 27 22:35:04 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If your Ethernet is configured and working, then the issue I mentioned does not apply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:07:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Processor-crash/m-p/524221#M6857</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:07:57Z</dc:date>
    </item>
  </channel>
</rss>

