<?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: Intermittent boot problems. Stuck in 64KB ROM code? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Intermittent-boot-problems-Stuck-in-64KB-ROM-code/m-p/528182#M9552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Jun 2016 01:09:36 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-19T01:09:36Z</dc:date>
    <item>
      <title>Intermittent boot problems. Stuck in 64KB ROM code?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Intermittent-boot-problems-Stuck-in-64KB-ROM-code/m-p/528174#M9544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bazli on Fri Apr 29 06:20:52 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We use the LPC1833 on our boards and most of the time it boots fine. On some boards though, we might see it fail 1/10 times.. When it fails, we connect debugger and it seems to be stuck in the 64KB rom area. Addresses we see are 0x10400fd8, 0x1040178a&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas what might cause this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:16:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Intermittent-boot-problems-Stuck-in-64KB-ROM-code/m-p/528174#M9544</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Intermittent boot problems. Stuck in 64KB ROM code?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Intermittent-boot-problems-Stuck-in-64KB-ROM-code/m-p/528175#M9545</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 Fri Apr 29 06:25:22 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Check the ISP pin - you cannot leave it floating.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:16:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Intermittent-boot-problems-Stuck-in-64KB-ROM-code/m-p/528175#M9545</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Intermittent boot problems. Stuck in 64KB ROM code?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Intermittent-boot-problems-Stuck-in-64KB-ROM-code/m-p/528176#M9546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bazli on Fri Apr 29 07:07:51 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ISP pin&amp;nbsp; is already pulled up. Any other thing it could be?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:16:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Intermittent-boot-problems-Stuck-in-64KB-ROM-code/m-p/528176#M9546</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Intermittent boot problems. Stuck in 64KB ROM code?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Intermittent-boot-problems-Stuck-in-64KB-ROM-code/m-p/528177#M9547</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 Fri Apr 29 08:32:41 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you check the vector checksum? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any of the other boot configuration pins?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AFAIK, If you are stuck in the boot rom, it is because the boot rom either cannot find a valid image to boot or you are holding ISP...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:16:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Intermittent-boot-problems-Stuck-in-64KB-ROM-code/m-p/528177#M9547</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Intermittent boot problems. Stuck in 64KB ROM code?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Intermittent-boot-problems-Stuck-in-64KB-ROM-code/m-p/528178#M9548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bazli on Mon May 02 02:37:59 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;won't those things cause it to not boot all the time? it only gets stuck 1 in10 times and even then only certain boards.. other boards don't have any issue at all.. that's why we suspect it's possibly some kind of tolerance issue?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:16:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Intermittent-boot-problems-Stuck-in-64KB-ROM-code/m-p/528178#M9548</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Intermittent boot problems. Stuck in 64KB ROM code?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Intermittent-boot-problems-Stuck-in-64KB-ROM-code/m-p/528179#M9549</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 Mon May 02 02:42:21 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have any floating pins (boot, isp etc) then that would cause your intermittent problem. Have you bothered to investigate or are you over thinking it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:16:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Intermittent-boot-problems-Stuck-in-64KB-ROM-code/m-p/528179#M9549</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Intermittent boot problems. Stuck in 64KB ROM code?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Intermittent-boot-problems-Stuck-in-64KB-ROM-code/m-p/528180#M9550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bavarian on Mon May 02 08:03:40 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The addresses you see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[list]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*]&amp;nbsp; 0x10400fd8&amp;nbsp; - is somewhere in function calc_pll0&amp;nbsp; (calculate n/m parameters for PLL0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*]&amp;nbsp; 0x1040178a&amp;nbsp; - is somewhere in function tmhwBootRomCgu_SetConfig (divider and PLL settings)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/list] &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After these functions I expect that PLL0 is enabled with these settings. And that's where it seems to crash or hang up&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Some wild guesses why it crashes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[list]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*]&amp;nbsp; You somehow start sometimes with a USB bootmode configuration (because of somehow undefined boot pins) and the bootcode tries to switch on PLL0 with the external crystal as clock source. But in fact you don't have a crystal (or at least not a 12MHz). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*]&amp;nbsp; You have already code in your flash which puts the chip into a low power configuration. This could mean that the internal regulators are set to a lower level. This is set in the CREG power domain which survives a reset. Then the chip goes through the bootcode into the PLL0 setup and crashes because the regulators can't provide the necessary current for 96MHz PLL operation. In combination with the next point this could cause the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*]&amp;nbsp; The power structure of your application is very weak and causes a voltage dip due to the power need of the PLL. This would fit to your observation that it is board related. Maybe you have inductors in the power supply lines?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/list]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully this helps to find the problem,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP Support Team.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:16:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Intermittent-boot-problems-Stuck-in-64KB-ROM-code/m-p/528180#M9550</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Intermittent boot problems. Stuck in 64KB ROM code?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Intermittent-boot-problems-Stuck-in-64KB-ROM-code/m-p/528181#M9551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bazli on Thu May 26 04:57:07 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;we narrowed it down.. on boards that it fails, it's failing when we run CGU code to get it to 180MHz.. It seems to get to 96MHz reliably. Is it something that might be able to fix in code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;uint32_t&amp;nbsp;&amp;nbsp;&amp;nbsp; CGU_Init(void){&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CGU_EntityConnect(CGU_CLKSRC_IRC, CGU_BASE_M3);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CGU_SetXTALOSC(12000000); //enable the external crystal = 12MHz&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CGU_EnableEntity(CGU_CLKSRC_XTAL_OSC, ENABLE);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CGU_EntityConnect(CGU_CLKSRC_XTAL_OSC, CGU_CLKSRC_PLL1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CGU_SetPLL1(8);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Set System Core Clock = 8 * 12MHz = 96MHz&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CGU_EnableEntity(CGU_CLKSRC_PLL1, ENABLE);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CGU_EntityConnect(CGU_CLKSRC_PLL1, CGU_BASE_M3);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; CGU_SetPLL1(15);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Set System Core Clock = 15 * 12MHz = 180MHz &amp;lt;==== failing if we call this function..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CGU_UpdateClock();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:16:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Intermittent-boot-problems-Stuck-in-64KB-ROM-code/m-p/528181#M9551</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Intermittent boot problems. Stuck in 64KB ROM code?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Intermittent-boot-problems-Stuck-in-64KB-ROM-code/m-p/528182#M9552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2016 01:09:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Intermittent-boot-problems-Stuck-in-64KB-ROM-code/m-p/528182#M9552</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-19T01:09:36Z</dc:date>
    </item>
  </channel>
</rss>

