<?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: KSDK2.2 vs KSDK 1.3 for K22 512k  in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK2-2-vs-KSDK-1-3-for-K22-512k/m-p/708064#M7555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; HY:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According reference manual, Slave Baud Rate control&amp;nbsp; (SBRC) is controlled by I2Cx_C2 register. If&amp;nbsp; SBRC (bit 4 ) is 0 , The slave baud rate follows the master baud rate and clock stretching may occur.&amp;nbsp;&amp;nbsp; The default value is 0, the slave will follow master baud rate.&amp;nbsp; I think for this reason, KSDK.2.2 not provide API to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31474iD3D599019B4648DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this, it is also easy, just clear the SBRC bit from I2Cx_C2. You can refer to KSDK 1.3, you can control the register directly.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/*! @brief Set the SBRC field to a new value. */&lt;BR /&gt;#define I2C_WR_C2_SBRC(base, value) (I2C_RMW_C2(base, I2C_C2_SBRC_MASK, I2C_C2_SBRC(value)))&lt;BR /&gt;#define I2C_BWR_C2_SBRC(base, value) (BITBAND_ACCESS8(&amp;amp;I2C_C2_REG(base), I2C_C2_SBRC_SHIFT) = (value))&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;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Sep 2017 07:42:02 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2017-09-22T07:42:02Z</dc:date>
    <item>
      <title>KSDK2.2 vs KSDK 1.3 for K22 512k</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK2-2-vs-KSDK-1-3-for-K22-512k/m-p/708062#M7553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear KSDK 2.2,&lt;/P&gt;&lt;P&gt;I am helping a customer migrating from KsDK1.3 to KSDK2.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I2c issue:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;To stretch the clock in i2c slave mode, the customer was able to use the following HAL function calls in KSDK1.3 to that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: black;"&gt;I2C_HAL_SetBaudRate&lt;/STRONG&gt;&lt;SPAN style="color: black;"&gt;(BASEADDR, &lt;STRONG&gt;CLOCK_SYS_GetBusClockFreq&lt;/STRONG&gt;(), &lt;/SPAN&gt;&lt;SPAN style="color: navy;"&gt;66&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #c04000;"&gt;NULL&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: black;"&gt;I2C_HAL_SetSlaveBaudCtrlCmd&lt;/STRONG&gt;&lt;SPAN style="color: black;"&gt;(BASEADDR, &lt;/SPAN&gt;&lt;SPAN style="color: purple;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1) How would you be able to stretch the clock for I2c slave mode using KSDK2.2?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RNG issue:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The interrupt or High Assurance options in the RNG driver.SDK 1.3 supported:&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: black;"&gt;RNGA_HAL_SetIntMaskCmd&lt;/STRONG&gt;&lt;SPAN style="color: black;"&gt;(RNG_BASE_PTR, &lt;/SPAN&gt;&lt;SPAN style="color: purple;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: black;"&gt;RNGA_HAL_SetHighAssuranceCmd&lt;/STRONG&gt;&lt;SPAN style="color: black;"&gt;(RNG_BASE_PTR, &lt;/SPAN&gt;&lt;SPAN style="color: purple;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2) How would you get do similar things with KSDK2.2?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;hy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 19:57:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK2-2-vs-KSDK-1-3-for-K22-512k/m-p/708062#M7553</guid>
      <dc:creator>HeMyFAE</dc:creator>
      <dc:date>2017-09-19T19:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK2.2 vs KSDK 1.3 for K22 512k</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK2-2-vs-KSDK-1-3-for-K22-512k/m-p/708063#M7554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KSDK 2.x is the evolution of KSDK 1.x into a more optimized software solution. KSDK 2.x eliminates the need for a separate HAL and Peripheral Driver, replacing there two layers with a single driver for each peripheral. The single driver provides both the low-level functionality of the HAL and the non-blocking interrupt-based functionality of the Peripheral Driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I2C slave config , please use I2C_SlaveInit, but for i2c baud rate, it should be decided by master, it is not necessary to config baud for slave.&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;&amp;nbsp;I2C_SlaveInit(EXAMPLE_I2C_SLAVE_BASEADDR, &amp;amp;slaveConfig, I2C_SLAVE_CLK_FREQ);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For RNGA, KSDK 2.x initialized with RNGA_Init, it seems no config with HA and INITM. I will check it and get it back to you later.&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;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 07:22:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK2-2-vs-KSDK-1-3-for-K22-512k/m-p/708063#M7554</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-09-21T07:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK2.2 vs KSDK 1.3 for K22 512k</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK2-2-vs-KSDK-1-3-for-K22-512k/m-p/708064#M7555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; HY:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According reference manual, Slave Baud Rate control&amp;nbsp; (SBRC) is controlled by I2Cx_C2 register. If&amp;nbsp; SBRC (bit 4 ) is 0 , The slave baud rate follows the master baud rate and clock stretching may occur.&amp;nbsp;&amp;nbsp; The default value is 0, the slave will follow master baud rate.&amp;nbsp; I think for this reason, KSDK.2.2 not provide API to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31474iD3D599019B4648DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this, it is also easy, just clear the SBRC bit from I2Cx_C2. You can refer to KSDK 1.3, you can control the register directly.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/*! @brief Set the SBRC field to a new value. */&lt;BR /&gt;#define I2C_WR_C2_SBRC(base, value) (I2C_RMW_C2(base, I2C_C2_SBRC_MASK, I2C_C2_SBRC(value)))&lt;BR /&gt;#define I2C_BWR_C2_SBRC(base, value) (BITBAND_ACCESS8(&amp;amp;I2C_C2_REG(base), I2C_C2_SBRC_SHIFT) = (value))&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;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 07:42:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK2-2-vs-KSDK-1-3-for-K22-512k/m-p/708064#M7555</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-09-22T07:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK2.2 vs KSDK 1.3 for K22 512k</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK2-2-vs-KSDK-1-3-for-K22-512k/m-p/708065#M7556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="20895" data-username="HeMyFAE" href="https://community.nxp.com/people/HeMyFAE"&gt;Hy Mai&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For RNGA issue, KSDK 2.x RNGA driver doesn't provide this interface, customer should set these bits directly&amp;nbsp; by using register macros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RNG-&amp;gt;CR |= RNG_CR_HA_MASK | RNG_CR_INTM_MASK;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please mark correct. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 08:28:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK2-2-vs-KSDK-1-3-for-K22-512k/m-p/708065#M7556</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-09-22T08:28:34Z</dc:date>
    </item>
  </channel>
</rss>

