<?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: KSDK I2C FreeRTOS Driver Bug? in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-I2C-FreeRTOS-Driver-Bug/m-p/623581#M6557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I can reproduce your issue on my side. We will add a status propagation .&amp;nbsp;&lt;/P&gt;&lt;P&gt;This fix will be merged to next release.&lt;/P&gt;&lt;P&gt;Thank you very much.&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, 23 Sep 2016 13:10:19 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2016-09-23T13:10:19Z</dc:date>
    <item>
      <title>KSDK I2C FreeRTOS Driver Bug?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-I2C-FreeRTOS-Driver-Bug/m-p/623579#M6555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a project that makes use of KSDK 2.0 and FreeRTOS on a KW41 using I2C. &amp;nbsp;I noticed I was receiving a valid response (return value of 0) from&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;I2C_RTOS_Transfer&lt;/SPAN&gt; when the device wasn't connected (which ultimately resulted in a NAK as far as the KW41 was concerned). &amp;nbsp;I traced the issue down to&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;I2C_RTOS_Callback&lt;/SPAN&gt; located in&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;KSDK_2.0/devices/MKW41Z4/drivers/fsl_i2c_freertos.c&lt;/SPAN&gt;. &amp;nbsp;The &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;status&lt;/SPAN&gt; variable passed into the callback is correctly reflecting the NAK on the bus, however, it's not copied to&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;handle-&amp;gt;async_status&lt;/SPAN&gt;, which is what is returned from&amp;nbsp;&lt;SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;I2C_RTOS_Transfer&lt;/SPAN&gt;. &amp;nbsp;Here's the method in question with my addition in red...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;static void I2C_RTOS_Callback(I2C_Type *base, i2c_master_handle_t *drv_handle, status_t status, void *userData)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; i2c_rtos_handle_t *handle = (i2c_rtos_handle_t *)userData;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; BaseType_t reschedule;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #ff0000;"&gt;&amp;nbsp; &amp;nbsp; handle-&amp;gt;async_status = status;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; xSemaphoreGiveFromISR(handle-&amp;gt;sem, &amp;amp;reschedule);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; portYIELD_FROM_ISR(reschedule);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 01:22:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-I2C-FreeRTOS-Driver-Bug/m-p/623579#M6555</guid>
      <dc:creator>ryanbryngelson</dc:creator>
      <dc:date>2016-09-16T01:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK I2C FreeRTOS Driver Bug?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-I2C-FreeRTOS-Driver-Bug/m-p/623580#M6556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Ryan:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your input, let me reproduce your issue in my side first, I will update you when I have results.&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>Mon, 19 Sep 2016 08:16:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-I2C-FreeRTOS-Driver-Bug/m-p/623580#M6556</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-09-19T08:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK I2C FreeRTOS Driver Bug?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-I2C-FreeRTOS-Driver-Bug/m-p/623581#M6557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I can reproduce your issue on my side. We will add a status propagation .&amp;nbsp;&lt;/P&gt;&lt;P&gt;This fix will be merged to next release.&lt;/P&gt;&lt;P&gt;Thank you very much.&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, 23 Sep 2016 13:10:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-I2C-FreeRTOS-Driver-Bug/m-p/623581#M6557</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-09-23T13:10:19Z</dc:date>
    </item>
  </channel>
</rss>

