<?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のトピックRe: Bootloader / PLL / Crystal / Flash</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Bootloader-PLL-Crystal-Flash/m-p/528830#M9693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Tobene on Thu Mar 12 11:38:26 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked the setup of the clock with two example codes i downloaded from the nxp website. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When the controller is configured to run with the internal oscillator and the ISP pin is at high level, the controller starts up from flash and debugging is also possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When it is configured to run with the external oscillator, it is only possible to debug when the ISP pin is low. The external oscillator starts up. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With high ISP pin the external osciallator doesn´t start and starting from flash or debugging isn´t possible. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe I will find a solution ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:27:43 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:27:43Z</dc:date>
    <item>
      <title>Bootloader / PLL / Crystal / Flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Bootloader-PLL-Crystal-Flash/m-p/528828#M9691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Tobene on Wed Mar 11 08:56:06 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I searched the whole day for solutions, but i didn´t find the right thing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I developed a board based on a LPC11E67 (64pin). The environment for developing is emIDE with the SEGGER debugger used via SWD. So far everything works fine in debug-mode. But when I wondered why the Program doesn´t stay permanent in flash i discovered some things I don´t understand.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did not take care of the ISP-pin during my board design. So the PIO0_1-pin was used as digital output without any pull-up or pull-down resistor. The external crystal (10MHz) startet and the PLL could be configured. This is in debug-mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the SEGGER GDBServer Window I can see that the program is written to address 0x00000000. So the program should stay in flash. But when I power up the board without the debugger nothing happens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Even when I flash the controller with the SEGGER command line tool and read the flash back. I can see that the 4 bytes beginning on address 0x1C were changed. So I think that the checksum should be correct and the program is "valid".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I attach a pull-up Resistor to ISP pin PIO0_1 then nothing happens even in debug mode. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The programs stops here: In "Chip_SetupXtalClocking()"; it stops at&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Dead loop on fail */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"while (resp[0] != PLL_CMD_SUCCESS) {}."&amp;nbsp; -&amp;gt; So the PLL does not lock&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I use to setup with IRC, it works again in debug-mode. But still the same Problem, that the controller does not start up without debugger for stand-alone mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the LPCopen Library 2.11 which is recommended for LPC11U67 and LPC11E67.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But even if I set up the Registern by myself it stops while waiting for the PLL locked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I never used ARM-controllers before.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the questions are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why doesn´t the PLL work when the ISP Pin PIO0_1 is at high-level?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why doesn´t the program stay in the flash?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for any kind of help&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:27:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Bootloader-PLL-Crystal-Flash/m-p/528828#M9691</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Bootloader / PLL / Crystal / Flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Bootloader-PLL-Crystal-Flash/m-p/528829#M9692</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 Wed Mar 11 09:44:45 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Tobene&lt;/STRONG&gt;&lt;BR /&gt;Why doesn´t the program stay in the flash?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you can read back your code from flash it's obviously in the flash&amp;nbsp; :) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Tobene&lt;/STRONG&gt;&lt;BR /&gt;Why doesn´t the PLL work when the ISP Pin PIO0_1 is at high-level?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Either your hardware or your software is faulty&amp;nbsp; :(( &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So compare your schematic with working boards and compare your code with working samples...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:27:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Bootloader-PLL-Crystal-Flash/m-p/528829#M9692</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Bootloader / PLL / Crystal / Flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Bootloader-PLL-Crystal-Flash/m-p/528830#M9693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Tobene on Thu Mar 12 11:38:26 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked the setup of the clock with two example codes i downloaded from the nxp website. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When the controller is configured to run with the internal oscillator and the ISP pin is at high level, the controller starts up from flash and debugging is also possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When it is configured to run with the external oscillator, it is only possible to debug when the ISP pin is low. The external oscillator starts up. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With high ISP pin the external osciallator doesn´t start and starting from flash or debugging isn´t possible. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe I will find a solution ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:27:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Bootloader-PLL-Crystal-Flash/m-p/528830#M9693</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Bootloader / PLL / Crystal / Flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Bootloader-PLL-Crystal-Flash/m-p/528831#M9694</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 Mar 12 11:58:10 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Tobene&lt;/STRONG&gt;&lt;BR /&gt;When it is configured to run with the external oscillator, it is only possible to debug when the ISP pin is low. The external oscillator starts up.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; :quest: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are booting into ISP, IRC is running not the external crystal :)&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your incomplete description implies that you have a hardware problem with your crystal...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:27:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Bootloader-PLL-Crystal-Flash/m-p/528831#M9694</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:27:44Z</dc:date>
    </item>
  </channel>
</rss>

