<?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: CMSIS Dynamic selection of IRC vs XTAL?</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Dynamic-selection-of-IRC-vs-XTAL/m-p/534634#M4205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MX21 on Wed Dec 10 15:12:53 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: whitecoe&lt;/STRONG&gt;&lt;BR /&gt;Just take a copy of the system_LPC122x.c and put it into your application project. You can then edit the version within the application project without affecting any other projects in your workspace that use the version from the CMSIS library project. ie the local copy will get used in preference to the one from the library project.&lt;BR /&gt;&lt;BR /&gt;HTH!&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the quick response.&amp;nbsp; That will help for most of my projects, but in this case, it's the same code loaded on two board versions, one with crystal, one without.&amp;nbsp; So I need to select it at runtime.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 03:00:25 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T03:00:25Z</dc:date>
    <item>
      <title>CMSIS Dynamic selection of IRC vs XTAL?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Dynamic-selection-of-IRC-vs-XTAL/m-p/534632#M4203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MX21 on Wed Dec 10 15:00:39 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using LPCXpresso Code Red with CMSIS for my project.&amp;nbsp; I have an existing board with LPC1227 that uses the IRC for clock.&amp;nbsp; I have another new board that uses an external crystal (12MHz).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From what I can find, the clock source is setup in system_LPC122x.c at compile time with a bunch of macros.&amp;nbsp; This is the common CMSIS library referenced from multiple projects.&amp;nbsp; If I edit system_LPC122x.c it will change the clock for all of my projects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to have my code support both of my boards, by reading a GPIO pin at startup to determine which board it is, then configure the clock to use the external crystal if it is the newer board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to do this through CMSIS?&amp;nbsp; Or do I just need to program registers directly (thus somewhat defeating the hardware abstraction purpose of CMSIS)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 03:00:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Dynamic-selection-of-IRC-vs-XTAL/m-p/534632#M4203</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T03:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: CMSIS Dynamic selection of IRC vs XTAL?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Dynamic-selection-of-IRC-vs-XTAL/m-p/534633#M4204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by whitecoe on Wed Dec 10 15:05:50 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Just take a copy of the system_LPC122x.c and put it into your application project. You can then edit the version within the application project without affecting any other projects in your workspace that use the version from the CMSIS library project. ie the local copy will get used in preference to the one from the library project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 03:00:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Dynamic-selection-of-IRC-vs-XTAL/m-p/534633#M4204</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T03:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: CMSIS Dynamic selection of IRC vs XTAL?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Dynamic-selection-of-IRC-vs-XTAL/m-p/534634#M4205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MX21 on Wed Dec 10 15:12:53 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: whitecoe&lt;/STRONG&gt;&lt;BR /&gt;Just take a copy of the system_LPC122x.c and put it into your application project. You can then edit the version within the application project without affecting any other projects in your workspace that use the version from the CMSIS library project. ie the local copy will get used in preference to the one from the library project.&lt;BR /&gt;&lt;BR /&gt;HTH!&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the quick response.&amp;nbsp; That will help for most of my projects, but in this case, it's the same code loaded on two board versions, one with crystal, one without.&amp;nbsp; So I need to select it at runtime.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 03:00:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Dynamic-selection-of-IRC-vs-XTAL/m-p/534634#M4205</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T03:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: CMSIS Dynamic selection of IRC vs XTAL?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Dynamic-selection-of-IRC-vs-XTAL/m-p/534635#M4206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MX21 on Fri Dec 12 15:26:04 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I guess there is no run-time function in CMSIS to change the clock source?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I just write the registers directly, then call SystemCoreClockUpdate?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 03:00:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Dynamic-selection-of-IRC-vs-XTAL/m-p/534635#M4206</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T03:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: CMSIS Dynamic selection of IRC vs XTAL?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Dynamic-selection-of-IRC-vs-XTAL/m-p/534636#M4207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MX21 on Tue Feb 24 22:56:34 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Still no CMSIS means to set the clock at runtime?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 03:00:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Dynamic-selection-of-IRC-vs-XTAL/m-p/534636#M4207</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T03:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: CMSIS Dynamic selection of IRC vs XTAL?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Dynamic-selection-of-IRC-vs-XTAL/m-p/534637#M4208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by 1234567890 on Wed Feb 25 11:23:56 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it really neccessary to change the clock source at startup?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way: What is your definition of startup?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Generally you can edit the provided startup files. You have the source code to do so. But it should/could start at special point. Generally the chips start with the IRC as clock source because it is a known frequency. This is needed to initialise things.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Without editing the startup files: Isn't it early enough for you to change the clock source at the beginning of main? Read your pin and use the provided functions (LPCOpen, CMSIS, registers) to change the clock source.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 03:00:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Dynamic-selection-of-IRC-vs-XTAL/m-p/534637#M4208</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T03:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: CMSIS Dynamic selection of IRC vs XTAL?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Dynamic-selection-of-IRC-vs-XTAL/m-p/534638#M4209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MX21 on Wed Feb 25 12:09:41 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have it working by reading IO pins after it gets into main, then using the LPC_SYSCON registers to setup the clock again using the crystal.&amp;nbsp; I just expected that, since CMSIS is designed to abstract the hardware, there would be a function to do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 03:00:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Dynamic-selection-of-IRC-vs-XTAL/m-p/534638#M4209</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T03:00:27Z</dc:date>
    </item>
  </channel>
</rss>

