<?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 S32k314 I2C in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32k314-I2C/m-p/1656887#M23258</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We are&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;using a platform that has an S32K314 controller and we are trying to bring up the I2C,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;for that, we have used the example&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"I2c_IP_LPI2C_Transfer_S32K312"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;as a reference and ported the codes to our platform.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have connected an I2C gyro to the S32k314 I2C channel 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have configured the slave address in the mex file and I tried using the API "Lpi2c_Ip_MasterSendData" to write into a register.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the "Lpi2c_Ip_MasterSendData" API I have filled the txbuffer zeroth location with the reg address and the first location with the data to be written into the register.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have analyzed the bus transition through an I2C analyzer and there is no data being sent through the bus and I am getting a NACK response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there anything wrong with the way I am using the I2C write API?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anoop&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2023 18:03:31 GMT</pubDate>
    <dc:creator>anoop_r</dc:creator>
    <dc:date>2023-05-24T18:03:31Z</dc:date>
    <item>
      <title>S32k314 I2C</title>
      <link>https://community.nxp.com/t5/S32K/S32k314-I2C/m-p/1656887#M23258</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We are&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;using a platform that has an S32K314 controller and we are trying to bring up the I2C,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;for that, we have used the example&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"I2c_IP_LPI2C_Transfer_S32K312"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;as a reference and ported the codes to our platform.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have connected an I2C gyro to the S32k314 I2C channel 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have configured the slave address in the mex file and I tried using the API "Lpi2c_Ip_MasterSendData" to write into a register.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the "Lpi2c_Ip_MasterSendData" API I have filled the txbuffer zeroth location with the reg address and the first location with the data to be written into the register.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have analyzed the bus transition through an I2C analyzer and there is no data being sent through the bus and I am getting a NACK response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there anything wrong with the way I am using the I2C write API?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anoop&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 18:03:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k314-I2C/m-p/1656887#M23258</guid>
      <dc:creator>anoop_r</dc:creator>
      <dc:date>2023-05-24T18:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: S32k314 I2C</title>
      <link>https://community.nxp.com/t5/S32K/S32k314-I2C/m-p/1657365#M23281</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;the &lt;SPAN&gt;Lpi2c_Ip_MasterSendData&amp;nbsp;&lt;/SPAN&gt;usage looks correct. Can you share analyzer screenshot?&lt;BR /&gt;It looks master is sending slave address but it is not ACKed, is that what you see?&lt;BR /&gt;Do you have pull-up resistors on both I2C lines?&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 06:51:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k314-I2C/m-p/1657365#M23281</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2023-05-25T06:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: S32k314 I2C</title>
      <link>https://community.nxp.com/t5/S32K/S32k314-I2C/m-p/1659478#M23386</link>
      <description>&lt;P&gt;Hi PetrS,&lt;/P&gt;&lt;P&gt;Sorry for the delay in response,&lt;/P&gt;&lt;P&gt;I have tested the I2C with a different Gryo slave and it is now working.&lt;/P&gt;&lt;P&gt;For reading the I2c I have written the register in blocking mode and tried to read it in nonblocking mode.&lt;/P&gt;&lt;P&gt;Sharing the snapshots of the data written and read from the register, PFA.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anoop&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 05:01:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k314-I2C/m-p/1659478#M23386</guid>
      <dc:creator>anoop_r</dc:creator>
      <dc:date>2023-05-30T05:01:07Z</dc:date>
    </item>
  </channel>
</rss>

