<?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: Run RT1010 with internal clocks only? in MCUXpresso Config Tools</title>
    <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Run-RT1010-with-internal-clocks-only/m-p/1520340#M1489</link>
    <description>&lt;P&gt;Thank you for your feedback.&lt;/P&gt;&lt;P&gt;Unfortunately exactly this code does not work for me.&lt;/P&gt;&lt;P&gt;When I switch to "Internal Oscillator" in "Config Tools" -&amp;gt; "Clocks", it generates a code whic hstill contains the calls to&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;XTALOSC24M-&amp;gt;OSC_CONFIG2 |= XTALOSC24M_OSC_CONFIG2_ENABLE_1M_MASK;
XTALOSC24M-&amp;gt;OSC_CONFIG2 &amp;amp;= ~XTALOSC24M_OSC_CONFIG2_MUX_1M_MASK;
CLOCK_SetXtalFreq(24000000U);
CLOCK_InitExternalClk(0);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But no matter if I leave them or comment them out as in your code, the application then dies at&amp;nbsp;CLOCK_SwitchOsc(kCLOCK_XtalOsc) - or to be more specific it dies at&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;XTALOSC24M-&amp;gt;LOWPWR_CTRL_SET = XTALOSC24M_LOWPWR_CTRL_SET_OSC_SEL_MASK;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clipboard01.png" style="width: 706px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/193232i5011078E76CB2F4B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clipboard01.png" alt="Clipboard01.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Sep 2022 06:28:32 GMT</pubDate>
    <dc:creator>Elmi77</dc:creator>
    <dc:date>2022-09-12T06:28:32Z</dc:date>
    <item>
      <title>Run RT1010 with internal clocks only?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Run-RT1010-with-internal-clocks-only/m-p/1519438#M1487</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm currently working with the LED-blink-example and the RT1010 evaluation board. I'm trying to run this code with as less external equipment as possible. For this, as a first step, I have configured the 32,768 kHz RTC oscillator as "Internal Oscillator". This works fine, but when I try the same with the 24 MHz clock source, my application dies during start-up:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clipboard01.png" style="width: 567px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/193068i96CF11D07B78CBAF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clipboard01.png" alt="Clipboard01.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So switching "OSC mode" to "Internal RC oscillator" does not do the job. What else has to be done to run the MCU with internal clock and completely without any external oscillators?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 14:11:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Run-RT1010-with-internal-clocks-only/m-p/1519438#M1487</guid>
      <dc:creator>Elmi77</dc:creator>
      <dc:date>2022-09-08T14:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Run RT1010 with internal clocks only?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Run-RT1010-with-internal-clocks-only/m-p/1520081#M1488</link>
      <description>&lt;P&gt;I tried to modify clock configuration as below, application(\demo_apps\led_blinky) can still run properly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;void BOARD_BootClockRUN(void)
{
    /* Init RTC OSC clock frequency. */
    CLOCK_SetRtcXtalFreq(32768U);
    /* Enable 1MHz clock output. */
    //XTALOSC24M-&amp;gt;OSC_CONFIG2 |= XTALOSC24M_OSC_CONFIG2_ENABLE_1M_MASK;
    /* Use free 1MHz clock output. */
    //XTALOSC24M-&amp;gt;OSC_CONFIG2 &amp;amp;= ~XTALOSC24M_OSC_CONFIG2_MUX_1M_MASK;
    /* Set XTAL 24MHz clock frequency. */
    //CLOCK_SetXtalFreq(24000000U);
    /* Enable XTAL 24MHz clock source. */
    //CLOCK_InitExternalClk(0);
    /* Enable internal RC. */
    CLOCK_InitRcOsc24M();
    /* Switch clock source to internal OSC. */
    CLOCK_SwitchOsc(kCLOCK_RcOsc);
    ...
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 15:32:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Run-RT1010-with-internal-clocks-only/m-p/1520081#M1488</guid>
      <dc:creator>jay_heng</dc:creator>
      <dc:date>2022-09-09T15:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Run RT1010 with internal clocks only?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Run-RT1010-with-internal-clocks-only/m-p/1520340#M1489</link>
      <description>&lt;P&gt;Thank you for your feedback.&lt;/P&gt;&lt;P&gt;Unfortunately exactly this code does not work for me.&lt;/P&gt;&lt;P&gt;When I switch to "Internal Oscillator" in "Config Tools" -&amp;gt; "Clocks", it generates a code whic hstill contains the calls to&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;XTALOSC24M-&amp;gt;OSC_CONFIG2 |= XTALOSC24M_OSC_CONFIG2_ENABLE_1M_MASK;
XTALOSC24M-&amp;gt;OSC_CONFIG2 &amp;amp;= ~XTALOSC24M_OSC_CONFIG2_MUX_1M_MASK;
CLOCK_SetXtalFreq(24000000U);
CLOCK_InitExternalClk(0);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But no matter if I leave them or comment them out as in your code, the application then dies at&amp;nbsp;CLOCK_SwitchOsc(kCLOCK_XtalOsc) - or to be more specific it dies at&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;XTALOSC24M-&amp;gt;LOWPWR_CTRL_SET = XTALOSC24M_LOWPWR_CTRL_SET_OSC_SEL_MASK;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clipboard01.png" style="width: 706px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/193232i5011078E76CB2F4B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clipboard01.png" alt="Clipboard01.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 06:28:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Run-RT1010-with-internal-clocks-only/m-p/1520340#M1489</guid>
      <dc:creator>Elmi77</dc:creator>
      <dc:date>2022-09-12T06:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Run RT1010 with internal clocks only?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Run-RT1010-with-internal-clocks-only/m-p/1528666#M1510</link>
      <description>&lt;P&gt;Please use attached code, it is verified with SDK 2.11.&lt;/P&gt;
&lt;P&gt;You can call switch_to_rc24m() after BOARD_BootClockRUN()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 09:03:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Run-RT1010-with-internal-clocks-only/m-p/1528666#M1510</guid>
      <dc:creator>jay_heng</dc:creator>
      <dc:date>2022-09-27T09:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Run RT1010 with internal clocks only?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Run-RT1010-with-internal-clocks-only/m-p/1545333#M1526</link>
      <description>&lt;P&gt;By default, ARM core clock is powered by PLL, PLL clock is powered by external 24MHz OSC.&lt;/P&gt;
&lt;P&gt;If you want to switch to internal RC 24MHz OSC, you need to follow below steps:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;void ClockSelectRcOsc(void)
{
    // Switch ARM core clock source from PLL to OSC24M
    CLOCK_SetMux(kCLOCK_PeriphClk2Mux, 1);
    CLOCK_SetMux(kCLOCK_PeriphMux, 1);

    // Switch OSC24M clock source from external 24MHz OSC to internal RC24M OSC
    CLOCK_InitRcOsc24M();
    CLOCK_SwitchOsc(kCLOCK_RcOsc);
    CLOCK_DeinitExternalClk();

    // Recover ARM core clock source
    CLOCK_SetMux(kCLOCK_PeriphClk2Mux, m);
    CLOCK_SetMux(kCLOCK_PeriphMux, n);
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 00:50:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Run-RT1010-with-internal-clocks-only/m-p/1545333#M1526</guid>
      <dc:creator>jay_heng</dc:creator>
      <dc:date>2022-10-28T00:50:47Z</dc:date>
    </item>
  </channel>
</rss>

