<?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>LPC MicrocontrollersのトピックRe: LPC82x I2C freeze/hang</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC82x-I2C-freeze-hang/m-p/723183#M29223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer the next community post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-337969"&gt;I²C malfunction/freezing of lpc824 I²C communication&amp;nbsp;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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>Wed, 11 Apr 2018 18:00:24 GMT</pubDate>
    <dc:creator>victorjimenez</dc:creator>
    <dc:date>2018-04-11T18:00:24Z</dc:date>
    <item>
      <title>LPC82x I2C freeze/hang</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC82x-I2C-freeze-hang/m-p/723182#M29222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the LPC824 with LPCOpen and if I attempt more than&amp;nbsp;one I2C access in a row, the I2C hangs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the LPC824 example project "periph_i2cm_polling" and modifying it to do 2 consecutive reads from a Si7021 (Humidity&amp;nbsp; and temp), it consistently hangs in the LPCOpen driver code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt; i2cm_8xx.c &amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Transmit and Receive data in master mode */&lt;BR /&gt;uint32_t Chip_I2CM_XferBlocking(LPC_I2C_T *pI2C, I2CM_XFER_T *xfer)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; uint32_t ret = 0;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; /* start transfer */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Chip_I2CM_Xfer(pI2C, xfer);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; while (ret == 0) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* wait for status change interrupt */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while (!Chip_I2CM_IsMasterPending(pI2C)) {}&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; HANGS HERE ON THE SECOND READ&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* call state change handler */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ret = Chip_I2CM_XferHandler(pI2C, xfer);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt; return ret;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if I add a small delay (10ms or so)&amp;nbsp;in between reads, it still freezes once in a while.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried LPCOPEN&amp;nbsp; 2.19 (default for MCUXpresso v10.1.1) and 3.02&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a cause/fix for this condition?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 12:05:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC82x-I2C-freeze-hang/m-p/723182#M29222</guid>
      <dc:creator>krissielski</dc:creator>
      <dc:date>2018-04-11T12:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: LPC82x I2C freeze/hang</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC82x-I2C-freeze-hang/m-p/723183#M29223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer the next community post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-337969"&gt;I²C malfunction/freezing of lpc824 I²C communication&amp;nbsp;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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>Wed, 11 Apr 2018 18:00:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC82x-I2C-freeze-hang/m-p/723183#M29223</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2018-04-11T18:00:24Z</dc:date>
    </item>
  </channel>
</rss>

