<?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>MQX Software Solutions中的主题 Re: MQX Vybrid Clock Setup</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Vybrid-Clock-Setup/m-p/869956#M18105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I've noticed is that MQX doesn't ever call the function&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #51626f; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Cpu_SetClockConfiguration to set the clock. It assumes that the clocks were set up in the bootup code. Therefore when downloading the code and running with the debugger, the clocks are not necessarily initialized the way they would be during a proper bootup.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Feb 2019 18:00:04 GMT</pubDate>
    <dc:creator>ogj</dc:creator>
    <dc:date>2019-02-05T18:00:04Z</dc:date>
    <item>
      <title>MQX Vybrid Clock Setup</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Vybrid-Clock-Setup/m-p/869953#M18102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed that in version MQX 4.2.0 that the CCM_CCR register (Vybrid processor) shows 0x00010005 indicating that it is running from the FIRC oscillator (instead of the FXOSC). I see in the init_hw.c file that the FXOSC is turned on. But on running my app, the CCR reg shows 0x00010005. When is the init_hardware &lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;function &lt;/SPAN&gt;(which calls clocks_init) called? It appears from the comments in the file (init_hw.c)&amp;nbsp; that it is called as part of the boot process. I can't find a place where it is called within MQX.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2019 17:01:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Vybrid-Clock-Setup/m-p/869953#M18102</guid>
      <dc:creator>ogj</dc:creator>
      <dc:date>2019-01-29T17:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: MQX Vybrid Clock Setup</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Vybrid-Clock-Setup/m-p/869954#M18103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should add to the above that the code that is running is downloaded via a debugger. It is not being run with any boot code. The DDR is initialized via a macro file (IAR IDE) before the real code is actually run. I know that there is some code that runs before MQX starts, and it may be in that code that init_hw is called. If that's the case, then I need to create another macro file to set up the clocks before MQX runs. Is one available?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2019 17:57:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Vybrid-Clock-Setup/m-p/869954#M18103</guid>
      <dc:creator>ogj</dc:creator>
      <dc:date>2019-01-29T17:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: MQX Vybrid Clock Setup</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Vybrid-Clock-Setup/m-p/869955#M18104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ken:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The clock configuration is configured in mqx/source/bsp/[svf522revb_a5.m4]/bsp_cm.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LDD_TError Cpu_SetClockConfiguration(LDD_TClockConfiguration ModeID)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; if (ModeID &amp;gt; 0x02U) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return ERR_RANGE;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Undefined clock configuration requested requested */&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; switch (ModeID) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; case CPU_CLOCK_CONFIG_0:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CCM_CCSR |= CCM_CCSR_FAST_CLK_SEL_MASK;&amp;nbsp; // fast clock select, 24Mhz FXOSC&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CCM_CCSR |= CCM_CCSR_SYS_CLK_SEL_PLL1_PFD;&amp;nbsp; // system clock select, PLL1_PFD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CCM_CCR &amp;amp;= ~CCM_CCR_FIRC_EN_MASK;&amp;nbsp;&amp;nbsp;&amp;nbsp; // enable FIRC&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; case CPU_CLOCK_CONFIG_1:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CCM_CCR |= CCM_CCR_FIRC_EN_MASK;&amp;nbsp;&amp;nbsp;&amp;nbsp; // enable FIRC&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CCM_CCSR &amp;amp;= ~CCM_CCSR_FAST_CLK_SEL_MASK; // fast clock select&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CCM_CCSR &amp;amp;= ~CCM_CCSR_SYS_CLK_SEL_MASK;&amp;nbsp; // system clock select&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; case CPU_CLOCK_CONFIG_2:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; default:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; LDD_SetClockConfiguration(ModeID);&amp;nbsp;&amp;nbsp; /* Call all LDD components to update the clock configuration */&lt;BR /&gt;&amp;nbsp; ClockConfigurationID = ModeID;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Store clock configuration identifier */&lt;BR /&gt;&amp;nbsp; return ERR_OK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2019 05:41:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Vybrid-Clock-Setup/m-p/869955#M18104</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2019-02-01T05:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: MQX Vybrid Clock Setup</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Vybrid-Clock-Setup/m-p/869956#M18105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I've noticed is that MQX doesn't ever call the function&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #51626f; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Cpu_SetClockConfiguration to set the clock. It assumes that the clocks were set up in the bootup code. Therefore when downloading the code and running with the debugger, the clocks are not necessarily initialized the way they would be during a proper bootup.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2019 18:00:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Vybrid-Clock-Setup/m-p/869956#M18105</guid>
      <dc:creator>ogj</dc:creator>
      <dc:date>2019-02-05T18:00:04Z</dc:date>
    </item>
  </channel>
</rss>

