<?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: KSDK 1.0.0 I2C API's don't behave correctly if cmdSize == 0</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-1-0-0-I2C-API-s-don-t-behave-correctly-if-cmdSize-0/m-p/343336#M270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;in any case it seems that something is not behaving correctly (blue pin toggle, green I2C SCL line)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Immagine.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48231iBFB83BD3084AD9D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Immagine.png" alt="Immagine.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the end of I2C_DRV_MasterSendDataBlocking() should be shortly after the end of the packet, but it is circa 1 msec after. This value doesn't change even if I modify the timout setting of the function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Giacomo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Dec 2014 16:04:04 GMT</pubDate>
    <dc:creator>giacomopetrini</dc:creator>
    <dc:date>2014-12-12T16:04:04Z</dc:date>
    <item>
      <title>KSDK 1.0.0 I2C API's don't behave correctly if cmdSize == 0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-1-0-0-I2C-API-s-don-t-behave-correctly-if-cmdSize-0/m-p/343335#M269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;backgroud: I'm trying to interface with a air speed sensor: the MS4525DO.&lt;/P&gt;&lt;P&gt;To start a conversion I need to send through I2C only one byte: the address of the sensor. To read the result I need to send the address and then read the 4 byte of data.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that either: I2C_DRV_MasterSendDataBlocking() and I2C_DRV_MasterReceiveDataBlocking() behave not correctly if cmdSize and txSize (for the Send function) parameters are set to zero.&lt;/P&gt;&lt;P&gt;This because there is no control in the function of the value of cmdSize and txSize and in the ISR there is a if(--master-&amp;gt;cmdSize &amp;gt; 0) that of course create problem if master-&amp;gt;cmdSize is set to 0 from the beginning.&lt;/P&gt;&lt;P&gt;Same thing for txSize.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the moment the workaround is to set the 2 parameters to 1, so the SendData packet is 3 bytes instead of 1 and the ReceiveData packet is 6 bytes instead of 5. Not a big deal (luckily the sensor accept it anyway) but it uses the bus more than the necessary.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that in the next release this will be solved.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Giacomo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 10:14:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-1-0-0-I2C-API-s-don-t-behave-correctly-if-cmdSize-0/m-p/343335#M269</guid>
      <dc:creator>giacomopetrini</dc:creator>
      <dc:date>2014-12-11T10:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK 1.0.0 I2C API's don't behave correctly if cmdSize == 0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-1-0-0-I2C-API-s-don-t-behave-correctly-if-cmdSize-0/m-p/343336#M270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;in any case it seems that something is not behaving correctly (blue pin toggle, green I2C SCL line)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Immagine.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48231iBFB83BD3084AD9D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Immagine.png" alt="Immagine.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the end of I2C_DRV_MasterSendDataBlocking() should be shortly after the end of the packet, but it is circa 1 msec after. This value doesn't change even if I modify the timout setting of the function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Giacomo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 16:04:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-1-0-0-I2C-API-s-don-t-behave-correctly-if-cmdSize-0/m-p/343336#M270</guid>
      <dc:creator>giacomopetrini</dc:creator>
      <dc:date>2014-12-12T16:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK 1.0.0 I2C API's don't behave correctly if cmdSize == 0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-1-0-0-I2C-API-s-don-t-behave-correctly-if-cmdSize-0/m-p/343337#M271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello giacomopetrini:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;KSDK v1.1.0&lt;/STRONG&gt; has just been released. Check this: &lt;A href="https://community.nxp.com/docs/DOC-103183"&gt;KSDK 1.1 Release&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This version includes enhancements to some drivers, including the I2C. I recommend you to install this version and try it.&lt;/P&gt;&lt;P&gt;Let us know if you experience the same problems or share the code of your application.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!,&lt;BR /&gt;Jorge Gonzalez&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 19:39:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-1-0-0-I2C-API-s-don-t-behave-correctly-if-cmdSize-0/m-p/343337#M271</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-12-19T19:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK 1.0.0 I2C API's don't behave correctly if cmdSize == 0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-1-0-0-I2C-API-s-don-t-behave-correctly-if-cmdSize-0/m-p/343338#M272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just did :smileywink:.&lt;/P&gt;&lt;P&gt;I'm updating the project to use the KSDK 1.1 right now (and I have a wierd error withthe C++ compiler, but I'll open another thread for this).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Giacomo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 14:06:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-1-0-0-I2C-API-s-don-t-behave-correctly-if-cmdSize-0/m-p/343338#M272</guid>
      <dc:creator>giacomopetrini</dc:creator>
      <dc:date>2014-12-22T14:06:34Z</dc:date>
    </item>
  </channel>
</rss>

