<?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: I2C_MasterStart() doesn't write address</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-MasterStart-doesn-t-write-address/m-p/710189#M7574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using the lower level functions because the I2C device I'm talking too doesn't quite follow the I2C spec when takings readings. Either it holds down SDA until it's taken a reading and is ready to report that (and I can't seem to use the I2C library in order to handle that). Or it requires constant polling to determine if it's completed a reading (ACKs Read address) or not (NAKs Read Address), the I2C_RTOS_Transfer() doesn't seem to reliably report ACKs or NAKs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Oct 2017 09:01:36 GMT</pubDate>
    <dc:creator>beng_</dc:creator>
    <dc:date>2017-10-19T09:01:36Z</dc:date>
    <item>
      <title>I2C_MasterStart() doesn't write address</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-MasterStart-doesn-t-write-address/m-p/710187#M7572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to the documention I2C_MasterStart(0 is supposed to send a start condition and then write the start address.&lt;/P&gt;&lt;P&gt;It doesn't' appear to be doing that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;I2C_MasterStart(I2C0, SENSIRION_I2C_ADDRESS, kI2C_Write);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;I2C_MasterWriteBlocking(I2C0, local_buffer, 2);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;I2C_MasterStop(I2C0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I put a breakpoint on the second line all that's on the I2C is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/32249i735BB8571A5C1EEB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There's no clocking of SCL done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It also seems to leave MasterWriteBlocking() hanging as that gets permanently stuck at the line:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #008000;"&gt;/* Wait until the data register is ready for transmit. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;while (!(base-&amp;gt;S &amp;amp; kI2C_TransferCompleteFlag))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now there's not actually anything attached to my I2C lines (except the pull-up resistors) (as I'd removed the device I was trying to talk to to eliminate that as a case of my problems).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2017 15:47:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-MasterStart-doesn-t-write-address/m-p/710187#M7572</guid>
      <dc:creator>beng_</dc:creator>
      <dc:date>2017-10-18T15:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: I2C_MasterStart() doesn't write address</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-MasterStart-doesn-t-write-address/m-p/710188#M7573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Are&amp;nbsp;the I2C pins initialized properly (since there is no I2C clock)? It seems START condition is being sent (Toggle of DATA)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Also, the above code for sending data is does not include waiting for the Interrupt Flag after&amp;nbsp;&lt;EM&gt;I2C_MasterStart()&lt;/EM&gt;. (See the code for &lt;EM&gt;I2C_MasterTransferBlocking() &lt;/EM&gt;to see its usage)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Just for curiosity, why are you trying to transfer data using lower layer functions, when you can do the transfer in one call of&amp;nbsp;&lt;EM&gt;I2C_MasterTransferBlocking()&amp;nbsp;&lt;/EM&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Visakhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2017 18:46:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-MasterStart-doesn-t-write-address/m-p/710188#M7573</guid>
      <dc:creator>visakhanc</dc:creator>
      <dc:date>2017-10-18T18:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: I2C_MasterStart() doesn't write address</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-MasterStart-doesn-t-write-address/m-p/710189#M7574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using the lower level functions because the I2C device I'm talking too doesn't quite follow the I2C spec when takings readings. Either it holds down SDA until it's taken a reading and is ready to report that (and I can't seem to use the I2C library in order to handle that). Or it requires constant polling to determine if it's completed a reading (ACKs Read address) or not (NAKs Read Address), the I2C_RTOS_Transfer() doesn't seem to reliably report ACKs or NAKs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 09:01:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-MasterStart-doesn-t-write-address/m-p/710189#M7574</guid>
      <dc:creator>beng_</dc:creator>
      <dc:date>2017-10-19T09:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: I2C_MasterStart() doesn't write address</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-MasterStart-doesn-t-write-address/m-p/710190#M7575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the return value from the functions (ie,&lt;EM&gt; I2C_MasterStart()&lt;/EM&gt;) and verify it is &lt;EM&gt;kStatus_Success&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Visakhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 09:40:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-MasterStart-doesn-t-write-address/m-p/710190#M7575</guid>
      <dc:creator>visakhanc</dc:creator>
      <dc:date>2017-10-19T09:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: I2C_MasterStart() doesn't write address</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-MasterStart-doesn-t-write-address/m-p/710191#M7576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;Were you able to resolve this issue? I am having the exact same problem. The 'Start' event occurs, but the address never shows up after that. And, when the slave address should show up, there is no clock showing up.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 18:29:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-MasterStart-doesn-t-write-address/m-p/710191#M7576</guid>
      <dc:creator>mwutley</dc:creator>
      <dc:date>2018-03-14T18:29:55Z</dc:date>
    </item>
  </channel>
</rss>

