<?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: LPC1754 crash in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1754-crash/m-p/583972#M26097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Peter on Thu Nov 29 01:27:19 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your replies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The crystal has already been replaced for the same result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At the oscilloscope the power supply is very clean and stable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here attached is a partial view of my hardware.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My Vpower and Valim are around 12V.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:17:00 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:17:00Z</dc:date>
    <item>
      <title>LPC1754 crash</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1754-crash/m-p/583969#M26094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Peter on Wed Nov 28 06:52:49 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have some problem with my LPC1754 on my board proto (only one available).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I had a firmware working fine for few weeks, but the microcontroler begins to have crashes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The board started again after a power OFF/ON. Then I swith on the watchdog, but same again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And finally the LPC1754 failed in the first second of the power on. Then I was not&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;able to connect the LPClink probe, I had this message :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
15: Target error from Commit Flash write: Et: Flash driver not ready.
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did what is recommended in this case with the ISP bootloader (P2.10) and the "vector catch", and I was able again to connect my probe. The debugger crashed after few lines of code executed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have supposed that my function "InitSysTick" was the guilty. When I don't use it, it seems to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then in my InitSysTick I set the main clock from 72MHz to 52MHz (with a 12MHz external crystal), and it seemed to work, but I have sometimes&amp;nbsp; "HardFault_Handler" and the ADC don't work anymore...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't understand why my board worked fine during few weeks, and now has such problems...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought for a hardware problem but I have replaced the crystal, the LPC1754 with new ones, and the behaviour is still the same...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone can help me,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here my code for "InitSystick", "InitADC", and my measurement function :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
//---------------------------------------------------------------------------
void InitSysTick(void)
//---------------------------------------------------------------------------
{
//-- Reglage PLL0 ---
PLL0CON &amp;amp;= ~BIT1;//--- 1 Disconnect
FEED_SEQUENCE;

PLL0CON &amp;amp;= ~BIT0;//--- 2 Disable
FEED_SEQUENCE;

SCS |= BIT5;//-- Enable quartz oscillator
while (!(SCS&amp;amp;BIT6)) ;//-- Wait Quartz stable

CLKSRCSEL = 1;//--- 4 quartz
FEED_SEQUENCE;

PLL0CFG = 12;//-- 2x(12+1)x12MHz = 312MHz
&amp;nbsp; //PLL0CFG = 11; //--- Previous Setting for 72MHz
FEED_SEQUENCE;

PLL0CON |= BIT0; //--- 6 Enable
FEED_SEQUENCE;

//-- CPU Divider setting
CCLKCFG&amp;nbsp; = 5;//-- CPU Clock divider (/(1+div)) : 312/6 = 52MHz
&amp;nbsp; //CCLKCFG&amp;nbsp; = 3;//-- Previous Setting for 72MHz

while (!(PLL0STAT&amp;amp;BIT26)) ; //-- Wait for lock PLL0

PLL0CON |= BIT1;//-- Connect
FEED_SEQUENCE;

while ( ((PLL0STAT &amp;amp; (1 &amp;lt;&amp;lt; 25)) == 0) );/* Check connect bit status */

//---- reglage Systick ----
STCTRL&amp;nbsp; = 7;//--- source CCLK, interruption...
STRELOAD = 519999;//--- 10ms si clk=52MHz

}

&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;

//---------------------------------------------------------------------------
void InitADC(void)
//---------------------------------------------------------------------------
{
PCONP |= PCADC; //--- ADC power On
AD0CR |= PDN;//--- ADC operational
PCLKSEL0 |= PCLK_ADC_DIV_8;//--- CCLK/8 = 9MHz

//--- Mesure Valim : P1.31, AD0[5] ----
PINSEL3 |= BIT31+BIT30;
PINMODE3 |= BIT31; PINMODE3 &amp;amp;= ~BIT30;//-- no pull-up

//--- Mesure Vpower : P1.30, AD0[4] ----
PINSEL3 |= BIT29+BIT28;
PINMODE3 |= BIT29; PINMODE3 &amp;amp;= ~BIT28;//-- no pull-up
}


//---------------------------------------------------------------------------
unsigned short Mesure (unsigned char voieAnalogique)
//---------------------------------------------------------------------------
{unsigned short result;

#defineV_BATT1
#defineV_POWER2

switch (voieAnalogique){
case V_BATT :
AD0CR |= BIT4;
AD0CR &amp;amp;= ~(BIT7+BIT6+BIT5 + BIT3+BIT2+BIT1+BIT0);
break;
case V_POWER :
AD0CR |= BIT5;
AD0CR &amp;amp;= ~(BIT7+BIT6 + BIT4+BIT3+BIT2+BIT1+BIT0);
break;
}

AD0CR |= START_ADC_NOW;

compteur10ms.timeOutMesure =_130ms; //-- decremented in systick interrupt 

while&amp;nbsp; ( (compteur10ms.timeOutMesure!=0) &amp;amp;&amp;amp; ((AD0GDR &amp;amp; ADC_DONE)==0) ) ;

result = (AD0GDR &amp;amp; MASK_RESULT) &amp;gt;&amp;gt; 4;
return result;
}

&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:16:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1754-crash/m-p/583969#M26094</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1754 crash</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1754-crash/m-p/583970#M26095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by serge on Wed Nov 28 17:06:56 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I think showing us your hardware design and especialy what's connected (and how) to the ADC could help us solve your mistery&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:16:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1754-crash/m-p/583970#M26095</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1754 crash</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1754-crash/m-p/583971#M26096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by frame on Thu Nov 29 00:39:07 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If your design includes a quartz oscillator, this one might be the source of the trouble.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Possibly he had to take a hard hit, and is now in graceful-degradation mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If everything works with LS[B]I[/B], I would try to replace it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A next candidate would be an overloaded electrolytic cap. Especially cheap ones with high ESR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;getting really hot with repeated pulsing. I would at least watch the power sypply (3.3V) at the uC during operation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:17:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1754-crash/m-p/583971#M26096</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1754 crash</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1754-crash/m-p/583972#M26097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Peter on Thu Nov 29 01:27:19 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your replies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The crystal has already been replaced for the same result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At the oscilloscope the power supply is very clean and stable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here attached is a partial view of my hardware.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My Vpower and Valim are around 12V.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:17:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1754-crash/m-p/583972#M26097</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1754 crash</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1754-crash/m-p/583973#M26098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by serge on Thu Nov 29 04:27:51 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any spikes on Vpower or Valim?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It look like the MCU is, like Frame said, in gracefull-degradation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:17:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1754-crash/m-p/583973#M26098</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1754 crash</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1754-crash/m-p/583974#M26099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by frame on Fri Nov 30 03:47:22 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;It might be possible that a MCU is dying a slow death, with gradual breakdown&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;of functionality. But this is rather unlikely IMHO.&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;Are there any spikes on Vpower or Valim?&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;That sounds more plausible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure where this voltages originate from.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But my company had some trouble a few month ago, because transient surges&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from the mains supply destroyed devices in a random manner.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This transients most often come from switching large inductive loads, i.e. motors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When interfacing to higher voltage, I usually add a zener diode and a small cap&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to the R divider network.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:17:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1754-crash/m-p/583974#M26099</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1754 crash</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1754-crash/m-p/583975#M26100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Peter on Sat Dec 01 13:07:48 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works again !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Although I had already replaced my LPC1754, the behaviour was still the same. I couldn't understand why. So I had still in my stock a LPC1752 and decided to replace again the MCU. And now it works...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have had 2 failed MCU, strange... I don't think that my Vbat and Vpower are agressives, these are from a 12V battery, and the resistors of the voltage dividors seems, for me, good enough protection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope now that it is going to work without failure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you to those who tried to help me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:17:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1754-crash/m-p/583975#M26100</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:17:02Z</dc:date>
    </item>
  </channel>
</rss>

