<?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>MQX Software SolutionsのトピックRe: KDS I2C getting stuck</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-I2C-getting-stuck/m-p/394373#M13226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santiago, Jorge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The presure sensor was faulty or broken.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thamks and best regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Sep 2015 12:55:45 GMT</pubDate>
    <dc:creator>albertolubeiro</dc:creator>
    <dc:date>2015-09-02T12:55:45Z</dc:date>
    <item>
      <title>KDS I2C getting stuck</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-I2C-getting-stuck/m-p/394370#M13223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using KDS3.0 and KDSK v1.2.0 with PEX and im having an issue with I2C&lt;/P&gt;&lt;P&gt;I want to send a 0xF1 command to a sensor but the code get stuck in the following line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Wait for the transfer to finish.*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;&lt;STRONG&gt;I2C_DRV_MasterWait(instance, timeout_ms);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside this function there is the following code:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;do&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; {&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; syncStatus = OSA_SemaWait(&amp;amp;master-&amp;gt;irqSync, timeout_ms);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }while(syncStatus == kStatus_OSA_Idle);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the non-blocking function &lt;STRONG&gt;I2C_DRV_MasterSendDat, &lt;/STRONG&gt;so it should get out of here because of a time out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am really concerned. it is pretty urgent issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 13:10:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-I2C-getting-stuck/m-p/394370#M13223</guid>
      <dc:creator>albertolubeiro</dc:creator>
      <dc:date>2015-07-29T13:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: KDS I2C getting stuck</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-I2C-getting-stuck/m-p/394371#M13224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alberto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function that is used in the I2C DRV example to wait for a transaction to finish is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Wait until finish send&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; while(I2C_DRV_MasterGetSendStatus(BOARD_I2C_COMM_INSTANCE, &amp;amp;bytesRemaining) != kStatus_I2C_Success) {}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try with this one instead of the Wait Function, and let us know if it works?&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;Santiago&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 12:04:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-I2C-getting-stuck/m-p/394371#M13224</guid>
      <dc:creator>santiago_gonzal</dc:creator>
      <dc:date>2015-07-31T12:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: KDS I2C getting stuck</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-I2C-getting-stuck/m-p/394372#M13225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alberto Lubeiro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your other posts I understand you are using MQX. Then the problem may be that you are not installing the I2C interrupt from &lt;STRONG&gt;fsl_i2c&lt;/STRONG&gt; component in Processor Expert. Please see the picture below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54437iF0ED6999DEB488FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if this works.&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>Tue, 04 Aug 2015 21:50:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-I2C-getting-stuck/m-p/394372#M13225</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-08-04T21:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: KDS I2C getting stuck</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-I2C-getting-stuck/m-p/394373#M13226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santiago, Jorge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The presure sensor was faulty or broken.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thamks and best regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 12:55:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-I2C-getting-stuck/m-p/394373#M13226</guid>
      <dc:creator>albertolubeiro</dc:creator>
      <dc:date>2015-09-02T12:55:45Z</dc:date>
    </item>
  </channel>
</rss>

