<?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 S32K14x MCAL I2C I2c_SyncTransmit error in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K14x-MCAL-I2C-I2c-SyncTransmit-error/m-p/1680419#M24681</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snipaste_2023-07-03_14-12-59.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/230501i5F3C360189D9003D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snipaste_2023-07-03_14-12-59.png" alt="Snipaste_2023-07-03_14-12-59.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snipaste_2023-07-03_14-20-51.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/230503iE3BF8969151CB34E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snipaste_2023-07-03_14-20-51.png" alt="Snipaste_2023-07-03_14-20-51.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;It could send slave device address OK, but slave device not response ACK, and the function&lt;/P&gt;&lt;P&gt;I2c_LPI2C_MasterSyncSend() first enter loop could run to section&lt;BR /&gt;I2c_LPI2C_au8CurrentIndex[u8Channel]++;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; but second loop run into function&amp;nbsp;I2c_LPI2C_MasterErrorHandler()&amp;nbsp;&amp;nbsp;&lt;BR /&gt;/* Log the error and it will be checked during the sync transfer or in the DMA transfer */ I2c_LPI2C_au8ErrorsFound[u8Channel] = 0x1U;&amp;nbsp; so cause the code ran at&amp;nbsp;&lt;BR /&gt;I2c_aeChannelStatus[s8LogicalChannel] = I2C_CH_ERROR_PRESENT;&amp;nbsp; &amp;nbsp;return E_NOT_OK，break out.&amp;nbsp; &amp;nbsp; &amp;nbsp; Is there some MCAL IIC sample application demo can reference,and how to&amp;nbsp;figure out&amp;nbsp;the problem before. Thank you!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 03 Jul 2023 10:05:01 GMT</pubDate>
    <dc:creator>DELPHI_Eric</dc:creator>
    <dc:date>2023-07-03T10:05:01Z</dc:date>
    <item>
      <title>S32K14x MCAL I2C I2c_SyncTransmit error</title>
      <link>https://community.nxp.com/t5/S32K/S32K14x-MCAL-I2C-I2c-SyncTransmit-error/m-p/1680419#M24681</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snipaste_2023-07-03_14-12-59.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/230501i5F3C360189D9003D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snipaste_2023-07-03_14-12-59.png" alt="Snipaste_2023-07-03_14-12-59.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snipaste_2023-07-03_14-20-51.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/230503iE3BF8969151CB34E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snipaste_2023-07-03_14-20-51.png" alt="Snipaste_2023-07-03_14-20-51.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;It could send slave device address OK, but slave device not response ACK, and the function&lt;/P&gt;&lt;P&gt;I2c_LPI2C_MasterSyncSend() first enter loop could run to section&lt;BR /&gt;I2c_LPI2C_au8CurrentIndex[u8Channel]++;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; but second loop run into function&amp;nbsp;I2c_LPI2C_MasterErrorHandler()&amp;nbsp;&amp;nbsp;&lt;BR /&gt;/* Log the error and it will be checked during the sync transfer or in the DMA transfer */ I2c_LPI2C_au8ErrorsFound[u8Channel] = 0x1U;&amp;nbsp; so cause the code ran at&amp;nbsp;&lt;BR /&gt;I2c_aeChannelStatus[s8LogicalChannel] = I2C_CH_ERROR_PRESENT;&amp;nbsp; &amp;nbsp;return E_NOT_OK，break out.&amp;nbsp; &amp;nbsp; &amp;nbsp; Is there some MCAL IIC sample application demo can reference,and how to&amp;nbsp;figure out&amp;nbsp;the problem before. Thank you!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 Jul 2023 10:05:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K14x-MCAL-I2C-I2c-SyncTransmit-error/m-p/1680419#M24681</guid>
      <dc:creator>DELPHI_Eric</dc:creator>
      <dc:date>2023-07-03T10:05:01Z</dc:date>
    </item>
    <item>
      <title>回复： S32K14x MCAL I2C I2c_SyncTransmit error</title>
      <link>https://community.nxp.com/t5/S32K/S32K14x-MCAL-I2C-I2c-SyncTransmit-error/m-p/1680438#M24683</link>
      <description>In the function I2c_LPI2C_MasterSyncSend() , when the while(;;) first loop, the line 1601：u32IsrStatus = REG_READ32(LPI2C_MSR_ADDR32(u8Channel)); u32IsrStatus read value was 0x3000001；when the second loop, u32IsrStatus read value was 0x700</description>
      <pubDate>Mon, 03 Jul 2023 10:18:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K14x-MCAL-I2C-I2c-SyncTransmit-error/m-p/1680438#M24683</guid>
      <dc:creator>DELPHI_Eric</dc:creator>
      <dc:date>2023-07-03T10:18:48Z</dc:date>
    </item>
  </channel>
</rss>

