<?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 I2C hanging after sending address byte in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-hanging-after-sending-address-byte/m-p/517003#M5386</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone.&lt;/P&gt;&lt;P&gt;I am using MQX 4.2 and KSDK 1.3. Using the following code I am getting a hard fault exception but I am not sure where it comes from:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/////////////////////////////////////////&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style=": ; color: #7f0055; font-size: 10pt;"&gt;void&lt;/STRONG&gt; &lt;STRONG&gt;I2C0_IRQHandler&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: 10pt;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #7f0055; text-decoration: underline; font-size: 10pt;"&gt;int&lt;/STRONG&gt;&lt;SPAN style="text-decoration: underline; font-size: 10pt;"&gt; i;&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #642880; font-size: 10pt;"&gt;I2C_DRV_IRQHandler&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;(I2C0_IDX);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="plain" name="code"&gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style=": ; color: #7f0055; font-size: 10pt;"&gt;void&lt;/STRONG&gt; &lt;STRONG&gt;InitI2C&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: 10pt;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #005032; font-size: 10pt;"&gt;MUTEX_ATTR_STRUCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; mutexattr;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #005032; font-size: 10pt;"&gt;uint8_t&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; txBuff[10], cmd[4];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #005032; font-size: 10pt;"&gt;uint8_t&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; count = 3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #642880; font-size: 10pt;"&gt;I2C_DRV_MasterInit&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;(BOARD_I2C_INSTANCE, &amp;amp;i2cmaster);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #642880; font-size: 10pt;"&gt;I2C_DRV_MasterSendData&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;(BOARD_I2C_INSTANCE, &amp;amp;device, cmd, 0, txBuff, 1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;}j&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/////////////////////////////////////////&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to be happening at this point:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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-size: 10pt;"&gt; static &lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: 10pt;"&gt;i2c_status_t&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;STRONG&gt;I2C_DRV_MasterWait&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: 10pt;"&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; instance, &lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: 10pt;"&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; timeout_ms)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;{&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="color: #005032; font-size: 10pt;"&gt;i2c_master_state_t&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; * master = (&lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: 10pt;"&gt;i2c_master_state_t&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; *)g_i2cStatePtr[instance];&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="color: #005032; font-size: 10pt;"&gt;osa_status_t&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; syncStatus;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-size: 10pt;"&gt;do { &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #642880; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #642880; font-size: 10pt;"&gt;&lt;SPAN style="color: #303030;"&gt;syncStatus&lt;/SPAN&gt; =&lt;/SPAN&gt;&lt;SPAN style="color: #642880; font-size: 10pt;"&gt; OSA_SemaWait&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&amp;amp;master-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;irqSync&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, timeout_ms);&amp;nbsp;&amp;nbsp; // After this point I2C hangs&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0055; font-size: 10pt;"&gt;} &lt;SPAN style="color: #303030;"&gt;while&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(syncStatus == &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: 10pt;"&gt;kStatus_OSA_Idle&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;);&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="color: #303030; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #303030;"&gt; &lt;/SPAN&gt;(syncStatus != &lt;/SPAN&gt;&lt;SPAN style="color: #303030;"&gt;&lt;EM style=": ; font-size: 10pt;"&gt;kStatus_OSA_Success&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&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="color: #0000c0; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; master-&amp;gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;status&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: 10pt;"&gt;kStatus_I2C_Timeout&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&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="color: #303030; font-size: 10pt;"&gt;return&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; master-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;status&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;////////////////////////////////////////&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jun 2016 13:22:38 GMT</pubDate>
    <dc:creator>jose_asensio</dc:creator>
    <dc:date>2016-06-08T13:22:38Z</dc:date>
    <item>
      <title>I2C hanging after sending address byte</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-hanging-after-sending-address-byte/m-p/517003#M5386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone.&lt;/P&gt;&lt;P&gt;I am using MQX 4.2 and KSDK 1.3. Using the following code I am getting a hard fault exception but I am not sure where it comes from:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/////////////////////////////////////////&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style=": ; color: #7f0055; font-size: 10pt;"&gt;void&lt;/STRONG&gt; &lt;STRONG&gt;I2C0_IRQHandler&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: 10pt;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #7f0055; text-decoration: underline; font-size: 10pt;"&gt;int&lt;/STRONG&gt;&lt;SPAN style="text-decoration: underline; font-size: 10pt;"&gt; i;&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #642880; font-size: 10pt;"&gt;I2C_DRV_IRQHandler&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;(I2C0_IDX);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="plain" name="code"&gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style=": ; color: #7f0055; font-size: 10pt;"&gt;void&lt;/STRONG&gt; &lt;STRONG&gt;InitI2C&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: 10pt;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #005032; font-size: 10pt;"&gt;MUTEX_ATTR_STRUCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; mutexattr;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #005032; font-size: 10pt;"&gt;uint8_t&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; txBuff[10], cmd[4];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #005032; font-size: 10pt;"&gt;uint8_t&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; count = 3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #642880; font-size: 10pt;"&gt;I2C_DRV_MasterInit&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;(BOARD_I2C_INSTANCE, &amp;amp;i2cmaster);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #642880; font-size: 10pt;"&gt;I2C_DRV_MasterSendData&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;(BOARD_I2C_INSTANCE, &amp;amp;device, cmd, 0, txBuff, 1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;}j&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/////////////////////////////////////////&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to be happening at this point:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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-size: 10pt;"&gt; static &lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: 10pt;"&gt;i2c_status_t&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;STRONG&gt;I2C_DRV_MasterWait&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: 10pt;"&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; instance, &lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: 10pt;"&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; timeout_ms)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;{&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="color: #005032; font-size: 10pt;"&gt;i2c_master_state_t&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; * master = (&lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: 10pt;"&gt;i2c_master_state_t&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; *)g_i2cStatePtr[instance];&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="color: #005032; font-size: 10pt;"&gt;osa_status_t&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; syncStatus;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-size: 10pt;"&gt;do { &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #642880; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #642880; font-size: 10pt;"&gt;&lt;SPAN style="color: #303030;"&gt;syncStatus&lt;/SPAN&gt; =&lt;/SPAN&gt;&lt;SPAN style="color: #642880; font-size: 10pt;"&gt; OSA_SemaWait&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&amp;amp;master-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;irqSync&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, timeout_ms);&amp;nbsp;&amp;nbsp; // After this point I2C hangs&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0055; font-size: 10pt;"&gt;} &lt;SPAN style="color: #303030;"&gt;while&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(syncStatus == &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: 10pt;"&gt;kStatus_OSA_Idle&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;);&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="color: #303030; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #303030;"&gt; &lt;/SPAN&gt;(syncStatus != &lt;/SPAN&gt;&lt;SPAN style="color: #303030;"&gt;&lt;EM style=": ; font-size: 10pt;"&gt;kStatus_OSA_Success&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&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="color: #0000c0; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; master-&amp;gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;status&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: 10pt;"&gt;kStatus_I2C_Timeout&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&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="color: #303030; font-size: 10pt;"&gt;return&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; master-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;status&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;////////////////////////////////////////&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 13:22:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-hanging-after-sending-address-byte/m-p/517003#M5386</guid>
      <dc:creator>jose_asensio</dc:creator>
      <dc:date>2016-06-08T13:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: I2C hanging after sending address byte</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-hanging-after-sending-address-byte/m-p/517004#M5387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I checked with the scope that the address byte is being sent, but after that, unhandled interrupt happens and task is blocked.&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;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 13:25:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-hanging-after-sending-address-byte/m-p/517004#M5387</guid>
      <dc:creator>jose_asensio</dc:creator>
      <dc:date>2016-06-08T13:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: I2C hanging after sending address byte</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-hanging-after-sending-address-byte/m-p/517005#M5388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to debug the exception. CFSR and HFSR registers contain:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CFSR = 0x00040000 (INVPC = 1)&lt;/P&gt;&lt;P&gt;HFSR = 0x40000000 (FORCED = 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I implemented my own handler for the exception and used it to dump stack contents and see what is going on. The offending instruction, located at 0x572:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14655642466957709 jive_text_macro" data-renderedposition="190_8_1192_16" jivemacro_uid="_14655642466957709" modifiedtitle="true"&gt;&lt;P&gt;bx lr&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lr register contains value 0x92fb.Instruction at 0x92fa is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1465564446803690 jive_text_macro" data-renderedposition="284_8_1192_16" jivemacro_uid="_1465564446803690"&gt;&lt;P&gt;adds r7, #8&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I&amp;nbsp; do not know what else I can do and why the exception is happening&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 13:18:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-hanging-after-sending-address-byte/m-p/517005#M5388</guid>
      <dc:creator>jose_asensio</dc:creator>
      <dc:date>2016-06-10T13:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: I2C hanging after sending address byte</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-hanging-after-sending-address-byte/m-p/517006#M5389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I copied your code into my project, and tested in TWR-K64 , not found this issue, could you create a simple project for us to reproduce your issue?&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>Wed, 15 Jun 2016 07:28:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-hanging-after-sending-address-byte/m-p/517006#M5389</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-06-15T07:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: I2C hanging after sending address byte</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-hanging-after-sending-address-byte/m-p/517007#M5390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel.&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I finally solved it installing an isr handler with this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;void I2C_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OSA_SemaPost(&amp;amp;i2cmaster.irqSync);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I2C_HAL_ClearInt(i2cbase);&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14661623888522140" data-renderedposition="294_8_1192_16" jivemacro_uid="_14661623888522140"&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 11:18:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-hanging-after-sending-address-byte/m-p/517007#M5390</guid>
      <dc:creator>jose_asensio</dc:creator>
      <dc:date>2016-06-17T11:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: I2C hanging after sending address byte</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-hanging-after-sending-address-byte/m-p/517008#M5391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's great, thanks for sharing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 13:43:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-hanging-after-sending-address-byte/m-p/517008#M5391</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-06-17T13:43:12Z</dc:date>
    </item>
  </channel>
</rss>

