<?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のトピックLPC5536 hard fault during clock config</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-hard-fault-during-clock-config/m-p/1552746#M50683</link>
    <description>&lt;P&gt;About once in every twenty boots, I get a hard fault during clock config:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WDA_0-1668201917746.png" style="width: 559px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/200069i7F45F48F3206A66D/image-dimensions/559x293?v=v2" width="559" height="293" role="button" title="WDA_0-1668201917746.png" alt="WDA_0-1668201917746.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I insert a delay before the divider setup (commented out in the above picture), I don't get faults anymore. Has anyone seen this kind of problem before, or know what might cause it? This is on a custom board with a 24MHz crystal.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2022 21:36:21 GMT</pubDate>
    <dc:creator>WDA</dc:creator>
    <dc:date>2022-11-11T21:36:21Z</dc:date>
    <item>
      <title>LPC5536 hard fault during clock config</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-hard-fault-during-clock-config/m-p/1552746#M50683</link>
      <description>&lt;P&gt;About once in every twenty boots, I get a hard fault during clock config:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WDA_0-1668201917746.png" style="width: 559px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/200069i7F45F48F3206A66D/image-dimensions/559x293?v=v2" width="559" height="293" role="button" title="WDA_0-1668201917746.png" alt="WDA_0-1668201917746.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I insert a delay before the divider setup (commented out in the above picture), I don't get faults anymore. Has anyone seen this kind of problem before, or know what might cause it? This is on a custom board with a 24MHz crystal.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 21:36:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-hard-fault-during-clock-config/m-p/1552746#M50683</guid>
      <dc:creator>WDA</dc:creator>
      <dc:date>2022-11-11T21:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5536 hard fault during clock config</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-hard-fault-during-clock-config/m-p/1553587#M50694</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;That sound like a hardware issue I recommend reviewing the schematic from the EVK maybe the crystal is not initialization well, please review the app note in the crystal recommendations.&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/AN13033.pdf" target="_blank"&gt;Hardware Design Guidelines for LPC55(S)xx Microcontrollers (nxp.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 02:23:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-hard-fault-during-clock-config/m-p/1553587#M50694</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2022-11-15T02:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5536 hard fault during clock config</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-hard-fault-during-clock-config/m-p/1555011#M50732</link>
      <description>&lt;P&gt;After talking with some FAEs from Avnet, we discovered that the Config Tools do not generate the code to wait for the XO_READY bit. After adding this line in clock_config.c, it is working fine.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;    CLOCK_SetupExtClocking(24000000U);                            /* Enable XTALHF clock */
    while(!(ANACTRL-&amp;gt;XO32M_STATUS &amp;amp; ANACTRL_XO32M_STATUS_XO_READY_MASK)); /* Wait for XO ready */&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 15:35:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-hard-fault-during-clock-config/m-p/1555011#M50732</guid>
      <dc:creator>WDA</dc:creator>
      <dc:date>2022-11-16T15:35:07Z</dc:date>
    </item>
  </channel>
</rss>

