<?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 Where is CLOCK_SetInternalRefClkConfig() in KL03 SDK 2.0? in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Where-is-CLOCK-SetInternalRefClkConfig-in-KL03-SDK-2-0/m-p/584738#M5950</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I want to clock the LPTMR using the internal reference clock, but this does not work unless the internal reference clock is enabled, so I need to call CLOCK_SetInternalRefClkConfig(), per the SDK 2.0 API reference. But I cannot find CLOCK_SetInternalRefClkConfig anywhere in the 2.0 SDK.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jul 2016 20:26:12 GMT</pubDate>
    <dc:creator>chucksmith</dc:creator>
    <dc:date>2016-07-18T20:26:12Z</dc:date>
    <item>
      <title>Where is CLOCK_SetInternalRefClkConfig() in KL03 SDK 2.0?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Where-is-CLOCK-SetInternalRefClkConfig-in-KL03-SDK-2-0/m-p/584738#M5950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I want to clock the LPTMR using the internal reference clock, but this does not work unless the internal reference clock is enabled, so I need to call CLOCK_SetInternalRefClkConfig(), per the SDK 2.0 API reference. But I cannot find CLOCK_SetInternalRefClkConfig anywhere in the 2.0 SDK.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 20:26:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Where-is-CLOCK-SetInternalRefClkConfig-in-KL03-SDK-2-0/m-p/584738#M5950</guid>
      <dc:creator>chucksmith</dc:creator>
      <dc:date>2016-07-18T20:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Where is CLOCK_SetInternalRefClkConfig() in KL03 SDK 2.0?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Where-is-CLOCK-SetInternalRefClkConfig-in-KL03-SDK-2-0/m-p/584739#M5951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chuck,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;assuming you've filled out configuration structures already, then all you should have to do in terms of API is:&lt;BR /&gt;1. Call CLOCK_SetSimSafeDivs()&lt;/P&gt;&lt;P&gt;2. Call&amp;nbsp; CLOCK_SetMcgliteConfig(...)&lt;/P&gt;&lt;P&gt;3. Call&amp;nbsp; CLOCK_SetSimConfig(...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this not the case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Charles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 21:27:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Where-is-CLOCK-SetInternalRefClkConfig-in-KL03-SDK-2-0/m-p/584739#M5951</guid>
      <dc:creator>charlesasquith</dc:creator>
      <dc:date>2016-07-18T21:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Where is CLOCK_SetInternalRefClkConfig() in KL03 SDK 2.0?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Where-is-CLOCK-SetInternalRefClkConfig-in-KL03-SDK-2-0/m-p/584740#M5952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After poking around a bit, I did find CLOCK_SetMcgliteConfig(), and that does the job. However, I am still surprised the API reference document for the SDK refers to a function, CLOCK_SetInternalRefClkConfig() that apparently does not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I believe there is an issue in CLOCK_SetMcgliteConfig(), in the following line of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCG-&amp;gt;C1 = MCG_C1_CLKS(targetConfig-&amp;gt;outSrc) | targetConfig-&amp;gt;irclkEnableMode;&lt;/P&gt;&lt;P&gt;If irclkEnableMode is just a 0 or a 1, then the C1 bit this is loaded into is incorrect...it needs to be shifted into bit 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chuck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 21:36:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Where-is-CLOCK-SetInternalRefClkConfig-in-KL03-SDK-2-0/m-p/584740#M5952</guid>
      <dc:creator>chucksmith</dc:creator>
      <dc:date>2016-07-18T21:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Where is CLOCK_SetInternalRefClkConfig() in KL03 SDK 2.0?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Where-is-CLOCK-SetInternalRefClkConfig-in-KL03-SDK-2-0/m-p/584741#M5953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see what you mean. The code should work as intended if you use one of the predefined masks, such as kMCGLITE_IrclkEnable. On that note, however, I see that there is a 0U in BOARD_BootClockRUN's .irclkEnableMode, which is not a predefined mask and will have the affect you described.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To fix this, make sure you put one of the predefined masks (kMCGLITE_IrclkEnable or kMCGLITE_IrclkEnableInStop) into .irclkEnableMode and everything should work as intended. I will send this to the right people to get the 0U replaced with a mask, and see about getting the API reference manual updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this in mind, I do believe that the steps outlined in my first reply should hold.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Charles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 22:58:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Where-is-CLOCK-SetInternalRefClkConfig-in-KL03-SDK-2-0/m-p/584741#M5953</guid>
      <dc:creator>charlesasquith</dc:creator>
      <dc:date>2016-07-18T22:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Where is CLOCK_SetInternalRefClkConfig() in KL03 SDK 2.0?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Where-is-CLOCK-SetInternalRefClkConfig-in-KL03-SDK-2-0/m-p/584742#M5954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agreed - thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 23:01:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Where-is-CLOCK-SetInternalRefClkConfig-in-KL03-SDK-2-0/m-p/584742#M5954</guid>
      <dc:creator>chucksmith</dc:creator>
      <dc:date>2016-07-18T23:01:22Z</dc:date>
    </item>
  </channel>
</rss>

