<?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>LPCXpresso IDEのトピックRe: Probllem with LPC1769 &amp; CMSIS</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Probllem-with-LPC1769-CMSIS/m-p/577797#M23367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Wed Jun 13 11:28:09 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: jab&lt;/STRONG&gt;&lt;BR /&gt;...I dont know what the SystemInit function tries to set up...&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Defaults: 12MHz crystal is generating 100MHz with &lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
#define PLL0CFG_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00050063
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;So you are trying to run your MCU with about 208MHz :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
#define PLL0CFG_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0005002F
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;should reduce that to 100MHz again &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:32:22 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:32:22Z</dc:date>
    <item>
      <title>Probllem with LPC1769 &amp; CMSIS</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Probllem-with-LPC1769-CMSIS/m-p/577794#M23364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jab on Wed Jun 13 09:24:06 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a custom board with a LPC1769 on it. I have been having some issues with the board so I set-up a simple program:&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;
int main(void)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_PINCON-&amp;gt;PINSEL3 &amp;amp;= ~(3&amp;lt;&amp;lt;22);
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_PINCON-&amp;gt;PINSEL3 |=&amp;nbsp; (1&amp;lt;&amp;lt;22);
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_SC-&amp;gt;CLKOUTCFG = (1&amp;lt;&amp;lt;8);

&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {

&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0 ;
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This code just sets up the clock out pin to display the Main System Clock.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However when I run the program I see nothing on the pin. Looking at the system through debug I see the system starts and then just hangs. LPCxpresso says the program is running but there is nothing going on. It never reaches the initial breakpoint (set by LPCxpresso to be the first line in main).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I noticed that sometimes I get a SIGSTOP fault when debugging. Tracing this back it seems that the SystemInit() function tries to change the clock and the system fails. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I comment out the systeminit() function from the cr_startup_lpc176x.c file the system works. The clock output is routed to the clockout pin and I can verify it with an oscilloscope.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is why the automatically generated code is failing. I had no such problem with the Cortex M0 boards I have built in the past. Is this a known problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:32:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Probllem-with-LPC1769-CMSIS/m-p/577794#M23364</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Probllem with LPC1769 &amp; CMSIS</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Probllem-with-LPC1769-CMSIS/m-p/577795#M23365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Wed Jun 13 09:37:07 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: jab&lt;/STRONG&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
int main(void)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_PINCON-&amp;gt;PINSEL3 &amp;amp;= ~(3&amp;lt;&amp;lt;22);
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_PINCON-&amp;gt;PINSEL3 |=&amp;nbsp; (1&amp;lt;&amp;lt;22);
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_SC-&amp;gt;CLKOUTCFG = (1&amp;lt;&amp;lt;8);

&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {

&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0 ;
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;This code just sets up the clock out pin to display the Main System Clock.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think so :rolleyes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UM:&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;When the CPU clock is selected and is higher than approximately 50 MHz, the output must be divided in order to bring the frequency within the ability of the pin to switch with reasonable logic levels.&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Back to you initial problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;My question is why the automatically generated code is failing.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Probably your hardware is failing. Without SystemInit your board isn't using PLL0, so probably your PLL0 setup isn't working :mad: So did you check your crystal already?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:32:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Probllem-with-LPC1769-CMSIS/m-p/577795#M23365</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Probllem with LPC1769 &amp; CMSIS</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Probllem-with-LPC1769-CMSIS/m-p/577796#M23366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jab on Wed Jun 13 11:02:34 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The code works because I am using the IRC oscillator (on these chips it is easy to start with that). I had tried to get the UART working but the clock output pin is much simpler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However you do make a good point about the crystal...I have checked it was oscilating on the crystal pins and it is but it is a 25MHz XTAL and I dont know what the SystemInit function tries to set up. I suppose the core will die if it assumes a lower frequency and the frequency goes out of range.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At least it gives me a place to start. It is silly though because the M0 CMSIS library starts using the IRC and then the user must switch to the other clocks. Why this one switches straight to the external crystal I dont know!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway thanks, I will post if I run into further problems or solve it :-P&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:32:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Probllem-with-LPC1769-CMSIS/m-p/577796#M23366</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Probllem with LPC1769 &amp; CMSIS</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Probllem-with-LPC1769-CMSIS/m-p/577797#M23367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Wed Jun 13 11:28:09 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: jab&lt;/STRONG&gt;&lt;BR /&gt;...I dont know what the SystemInit function tries to set up...&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Defaults: 12MHz crystal is generating 100MHz with &lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
#define PLL0CFG_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00050063
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;So you are trying to run your MCU with about 208MHz :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
#define PLL0CFG_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0005002F
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;should reduce that to 100MHz again &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:32:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Probllem-with-LPC1769-CMSIS/m-p/577797#M23367</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Probllem with LPC1769 &amp; CMSIS</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Probllem-with-LPC1769-CMSIS/m-p/577798#M23368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jab on Wed Jun 13 12:53:34 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;My that is quite a clock. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;They should make the CMSIS library default to use the IRC clock or main crystal without the PLL! (like with the M0 parts).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Oh well at least I know what it is now and it explains why it never got past system init.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help! At least I know to double check what the library does by default in the future and not to assume it uses the internal RC clock.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:32:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Probllem-with-LPC1769-CMSIS/m-p/577798#M23368</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:32:22Z</dc:date>
    </item>
  </channel>
</rss>

