<?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>Kinetis Software Development KitのトピックRe: API to configure SIM_SOPT2[FLEXIOSRC]</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661715#M7232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my application I’m using FRCDIV and LIRC_DIV2 to get low PWM Duty Cycle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By doing few experiments with FRCDIV and LIRC_DIV2  setup, I found that if total division is greater than 128 x 2  or 2 x 128 I can’t read FlexIO registers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this on flexio_pwm_frdmkl43z demo and my bare-metal test. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my test I have used KExTools v2 for  pin_mux and clock_config generation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also replaced the flexio_pwm.c with my code I got same behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any restriction on total division generated by FRCDIV and LIRC_DIV2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shaul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Nov 2016 00:21:16 GMT</pubDate>
    <dc:creator>shauldorf</dc:creator>
    <dc:date>2016-11-01T00:21:16Z</dc:date>
    <item>
      <title>API to configure SIM_SOPT2[FLEXIOSRC]</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661705#M7222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;To select FlexIO clock source using direct register access is very simple&lt;/P&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;SIM-&amp;gt;SOPT2 |= SIM_SOPT2_FLEXIOSRC(x) , “x” can be 01, 10,11.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;I’m looking for something equivalent using API.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;Where it is defined in Kinetis SDK v.2.0 API Reference Manual?&lt;/P&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;BR&lt;/P&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;Shaul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Oct 2016 21:45:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661705#M7222</guid>
      <dc:creator>shauldorf</dc:creator>
      <dc:date>2016-10-23T21:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: API to configure SIM_SOPT2[FLEXIOSRC]</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661706#M7223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;shaul dorf,&lt;/P&gt;&lt;P&gt;hope you are doing great.&amp;nbsp;please check this&amp;nbsp;&lt;A class="link-titled" href="http://kex.nxp.com/apidoc/group__flexio__driver.html#structflexio__config__t" title="http://kex.nxp.com/apidoc/group__flexio__driver.html#structflexio__config__t"&gt;Kinetis SDK 2.0 API Reference Manual: FlexIO Driver&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the&amp;nbsp;&lt;/P&gt;&lt;TABLE style="color: #253555; font-weight: bold; font-size: 14px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="" style="font-weight: bold; margin-left: 6px;"&gt;void FLEXIO_Init&lt;/TD&gt;&lt;TD&gt;(&lt;/TD&gt;&lt;TD class=""&gt;FLEXIO_Type *&amp;nbsp;&lt;/TD&gt;&lt;TD class="" style="color: #602020;"&gt;&lt;EM&gt;base&lt;/EM&gt;,&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class=""&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD class=""&gt;const &lt;A href="http://kex.nxp.com/apidoc/group__flexio__driver.html#structflexio__config__t" style="color: #4665a2; font-weight: bold;"&gt;flexio_config_t&lt;/A&gt; *&amp;nbsp;&lt;/TD&gt;&lt;TD class="" style="color: #602020;"&gt;&lt;EM&gt;userConfig&lt;/EM&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;and check the &lt;A class="" href="http://kex.nxp.com/apidoc/group__flexio__driver.html#structflexio__config__t" style="color: #4665a2; font-weight: bold;"&gt;flexio_config_t&lt;/A&gt;&lt;SPAN style="color: #253555;"&gt;&amp;nbsp; what is inside this structure&amp;nbsp;&lt;/SPAN&gt;might be what you are looking for. please let me know if this helped your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day.&lt;/P&gt;&lt;P&gt;Best regards.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 16:51:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661706#M7223</guid>
      <dc:creator>Jonathan_Iglesias</dc:creator>
      <dc:date>2016-10-25T16:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: API to configure SIM_SOPT2[FLEXIOSRC]</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661707#M7224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;Hello and Thanks;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;Maybe I didn’t understand this structure wee but I think that it covers only FLEXIO_TIMCTC, TIMCFG and TIMCMP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;My problem is with SIM_SOPT2[FLEXIOSRC] field where Flex|IO clock is defined.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;B.R&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;Shaul&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 12:25:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661707#M7224</guid>
      <dc:creator>shauldorf</dc:creator>
      <dc:date>2016-10-26T12:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: API to configure SIM_SOPT2[FLEXIOSRC]</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661708#M7225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Hi &lt;SPAN&gt;Shaul&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;I looked at the flexio_i2c_read_accel_value_transfer_frdmkl27z example in KSDK_v2.&lt;/P&gt;&lt;P&gt;It has following:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: black;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;CLOCK_&lt;SPAN class="GramE"&gt;SetFlexio0Clock(&lt;/SPAN&gt;1U);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is defined in &lt;SPAN&gt;fsl_clock.h&lt;/SPAN&gt; as:&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: #3f7f5f;"&gt;/*!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: #3f7f5f;"&gt;* @brief Set FLEXIO clock source.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: #3f7f5f;"&gt;*&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: #3f7f5f;"&gt;* @&lt;SPAN style="text-decoration: underline;"&gt;param&lt;/SPAN&gt; &lt;SPAN style="text-decoration: underline;"&gt;src&lt;/SPAN&gt; &lt;SPAN class="GramE"&gt;The&lt;/SPAN&gt; value to set FLEXIO clock source.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: #3f7f5f;"&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN class="GramE"&gt;&lt;STRONG&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: #7f0055;"&gt;static&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: black;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: #7f0055;"&gt;inline&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: black;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: #7f0055;"&gt;void&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: black;"&gt; &lt;STRONG&gt;CLOCK_SetFlexio0Clock&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: #005032;"&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: black;"&gt; &lt;SPAN&gt;src&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: black;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: black;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;SIM-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: #0000c0;"&gt;SOPT2&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: black;"&gt; = ((SIM-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: #0000c0;"&gt;SOPT2&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: black;"&gt; &amp;amp; ~SIM_SOPT2_FLEXIOSRC_MASK) | &lt;SPAN style="BACKGROUND: silver; mso-highlight: silver;"&gt;SIM_SOPT2_&lt;SPAN class="GramE"&gt;FLEXIOSRC&lt;SPAN style="BACKGROUND: windowtext; mso-highlight: windowtext;"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;src&lt;/SPAN&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: black;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And MKL27Z644.h has:&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;STRONG&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: #7f0055;"&gt;#define&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: black;"&gt; &lt;SPAN style="BACKGROUND: silver; mso-highlight: silver;"&gt;SIM_SOPT2_FLEXIOSRC&lt;/SPAN&gt;(x)&lt;SPAN style="mso-spacerun: yes;"&gt;&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;&amp;nbsp; &lt;/SPAN&gt;(((uint32_t&lt;SPAN class="GramE"&gt;)(&lt;/SPAN&gt;((uint32_t)(x)) &amp;lt;&amp;lt; SIM_SOPT2_FLEXIOSRC_SHIFT)) &amp;amp; SIM_SOPT2_FLEXIOSRC_MASK)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 13:18:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661708#M7225</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-10-26T13:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: API to configure SIM_SOPT2[FLEXIOSRC]</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661709#M7226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &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;This function that belongs to SIM register is defined in Clocks driver chapter #6 of the API ref. manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;API is defined in  fsl_clock.h,  but for the "src"  value you have to use hardware reference manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My suggestion is to improve documentation or to prepare white paper about clocks configuration issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shaul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 15:32:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661709#M7226</guid>
      <dc:creator>shauldorf</dc:creator>
      <dc:date>2016-10-26T15:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: API to configure SIM_SOPT2[FLEXIOSRC]</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661710#M7227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;Using this API I can change FlexIO clock but there is a problem&amp;nbsp;in debug mode when you use&amp;nbsp;MCGIRCLK reading&amp;nbsp; FlexIO&amp;nbsp;registers returns zero.&amp;nbsp;Reading from SIM or MCG is OK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;I have the problem in my test and I have verified it using NXP demo “flexio_pwm_frdmkl43z4” by changing the clock at line #110 of the source code. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;Shaul&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 07:23:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661710#M7227</guid>
      <dc:creator>shauldorf</dc:creator>
      <dc:date>2016-10-31T07:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: API to configure SIM_SOPT2[FLEXIOSRC]</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661711#M7228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Hi Shaul,&lt;/P&gt;&lt;P&gt;Hmmm.&lt;/P&gt;&lt;P&gt;Is the SIM_SOPT2[FLEXIOSRC]=3 when you are trying to read the FlexIO registers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My clock config for the FlexIO is at line 137:&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: black;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;CLOCK_SetFlexio0Clock(3U);&lt;SPAN style="mso-tab-count: 2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: #3f7f5f;"&gt;//DES was (1U);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just downloaded this KSDK_v2 for frdmkl43z.&lt;SPAN style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;I wonder if it is newer than your version?&lt;/P&gt;&lt;P&gt;I am able to see the FlexIO registers in the EmbSys Regiser window.&lt;SPAN style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;I tried both PEMicro and JLink successfully.&lt;/P&gt;&lt;P&gt;Second &lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 17:47:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661711#M7228</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-10-31T17:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: API to configure SIM_SOPT2[FLEXIOSRC]</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661712#M7229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run with FlexIO = 3U&amp;nbsp; line 110&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="flexio_pwm.c.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6074i629D4686476B665A/image-size/large?v=v2&amp;amp;px=999" role="button" title="flexio_pwm.c.jpg" alt="flexio_pwm.c.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="EmbSys Registers.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5934iA55F9E398432C2EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="EmbSys Registers.jpg" alt="EmbSys Registers.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run with FlexIO&amp;nbsp; = 1U&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="flexio_pwm.c_1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5985iF54FFD2E18366CD4/image-size/large?v=v2&amp;amp;px=999" role="button" title="flexio_pwm.c_1.jpg" alt="flexio_pwm.c_1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="EmbSys Registers_1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6038iFBCA3056DC5B0DCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="EmbSys Registers_1.jpg" alt="EmbSys Registers_1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using windows 10&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PEMicro :&amp;nbsp; MSD-DEBUG-FRDM-KL43Z48M_Pemicro_v118.SDA&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Shaul&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 18:27:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661712#M7229</guid>
      <dc:creator>shauldorf</dc:creator>
      <dc:date>2016-10-31T18:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: API to configure SIM_SOPT2[FLEXIOSRC]</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661713#M7230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David I forgot to mention that the problem is reading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Writing to FlexIO register is O.K.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same problem I have with my bare-metal program that I wrote.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have PWM output and I can change duty cycle by writing to CMP register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shaul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 18:37:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661713#M7230</guid>
      <dc:creator>shauldorf</dc:creator>
      <dc:date>2016-10-31T18:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: API to configure SIM_SOPT2[FLEXIOSRC]</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661714#M7231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Hi &lt;SPAN&gt;Shaul&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;I can read the registers and see them update when I hit breakpoint with either clock configuration (1 or 3).&lt;/P&gt;&lt;P&gt;I'm still wondering if your KSDK is slightly older than mine.&lt;/P&gt;&lt;P&gt;To test I cloned the example as &lt;SPAN class="GramE"&gt;an&lt;/SPAN&gt; standalone project.&lt;/P&gt;&lt;P&gt;Un-Zip &lt;SPAN class="GramE"&gt;to :&lt;/SPAN&gt; C:\NXP\KSDK_v2\SDK_2.0_FRDM-KL43Zb_KDS\boards\frdmkl43z\user_apps&lt;/P&gt;&lt;P&gt;Have a breakpoint set at line 151 of &lt;SPAN&gt;flexio_pwm.c&lt;/SPAN&gt;, open the &lt;SPAN&gt;EmbSys&lt;/SPAN&gt; Registers window and see if you see TIMCMP0 updates:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-no-proof: yes;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image001.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6286i5C4C99551C522C3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image001.png" alt="image001.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is with line 137 set to:&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: black;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;CLOCK_&lt;SPAN class="GramE"&gt;SetFlexio0Clock(&lt;/SPAN&gt;3U);&lt;SPAN style="mso-tab-count: 2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; COLOR: #3f7f5f;"&gt;//DES was (1U);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 19:31:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661714#M7231</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-10-31T19:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: API to configure SIM_SOPT2[FLEXIOSRC]</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661715#M7232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my application I’m using FRCDIV and LIRC_DIV2 to get low PWM Duty Cycle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By doing few experiments with FRCDIV and LIRC_DIV2  setup, I found that if total division is greater than 128 x 2  or 2 x 128 I can’t read FlexIO registers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this on flexio_pwm_frdmkl43z demo and my bare-metal test. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my test I have used KExTools v2 for  pin_mux and clock_config generation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also replaced the flexio_pwm.c with my code I got same behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any restriction on total division generated by FRCDIV and LIRC_DIV2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shaul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 00:21:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661715#M7232</guid>
      <dc:creator>shauldorf</dc:creator>
      <dc:date>2016-11-01T00:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: API to configure SIM_SOPT2[FLEXIOSRC]</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661716#M7233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Hi Shaul,&lt;/P&gt;&lt;P&gt;I do not know if there are limitations on those clock dividers.&lt;SPAN style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;Seems empirically there are from your experimentations.&lt;SPAN style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;But I will ask around.&lt;/P&gt;&lt;P&gt;Are you setting the FASTACC bit to "1" in the FLEXIO_CTRL?&lt;SPAN style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;If yes I see a note that says FlexIO clock should be at least twice the bus frequency.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 16:16:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661716#M7233</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-11-02T16:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: API to configure SIM_SOPT2[FLEXIOSRC]</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661717#M7234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using normal register access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using fast there is no output on PTD2 pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even that I can't read the flexIO registers my demo is working (I see output using oscilloscope) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can change TIMCMP register and duty cycle is changing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attaching my demo test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 16:54:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661717#M7234</guid>
      <dc:creator>shauldorf</dc:creator>
      <dc:date>2016-11-02T16:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: API to configure SIM_SOPT2[FLEXIOSRC]</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661718#M7235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alice Yang suggested solution is to use J_Link for debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a problem with PE firmware.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shaul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 18:24:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/API-to-configure-SIM-SOPT2-FLEXIOSRC/m-p/661718#M7235</guid>
      <dc:creator>shauldorf</dc:creator>
      <dc:date>2016-11-08T18:24:45Z</dc:date>
    </item>
  </channel>
</rss>

