<?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 Re: Lpi2c issues in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2107743#M49403</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;How can I do the cycle power reset?&lt;/P&gt;</description>
    <pubDate>Fri, 30 May 2025 07:08:35 GMT</pubDate>
    <dc:creator>vignesh3</dc:creator>
    <dc:date>2025-05-30T07:08:35Z</dc:date>
    <item>
      <title>Lpi2c issues</title>
      <link>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2096071#M48686</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am facing issue with this line of code,&lt;/P&gt;&lt;P&gt;/* Check which event caused the interrupt */&lt;BR /&gt;if (LPI2C_Get_MasterTransmitDataRequestEvent(BaseAddr))&lt;BR /&gt;{&lt;BR /&gt;/* More data needed for transmission */&lt;BR /&gt;if (!Lpi2c_Ip_MasterCmdQueueEmpty(Master))&lt;BR /&gt;{&lt;BR /&gt;/* If there are queued commands, send them */&lt;BR /&gt;Lpi2c_Ip_MasterSendQueuedCmd(BaseAddr, Master);&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;MasterCmdQueueEmpty = TRUE;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;This&amp;nbsp;LPI2C_Get_MasterTransmitDataRequestEvent(BaseAddr) should return true but if i2c is reading for 5-10 minutes then this function always return false after that no more communication happens.&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 05:30:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2096071#M48686</guid>
      <dc:creator>vignesh3</dc:creator>
      <dc:date>2025-05-13T05:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Lpi2c issues</title>
      <link>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2096107#M48688</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;The issue where LPI2C_Get_MasterTransmitDataRequestEvent(BaseAddr) returns false after 5-10 minutes of continuous I2C reading could stem from I2C bus problems (clock stretching, noise, slave issues), the LPI2C peripheral entering an error state (missed ACK, timeout, FIFO issues), or subtle problems in the software handling of interrupts (flag clearing). Debugging steps include implementing error handling, monitoring bus signals, checking the LPI2C status register, reviewing timeout configurations and slave device documentation, simplifying the test case, introducing delays, and verifying clock/power stability. The key is to identify if the bus is failing, the peripheral is erroring out, or the interrupt flag isn't being correctly managed over the extended read period.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 05:48:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2096107#M48688</guid>
      <dc:creator>Erica407Den</dc:creator>
      <dc:date>2025-05-13T05:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Lpi2c issues</title>
      <link>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2096456#M48717</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/238430"&gt;@vignesh3&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Can you measure the bus with an oscilloscope?&lt;/P&gt;
&lt;P&gt;Is the SDA line kept low by a slave device on the bus?&lt;/P&gt;
&lt;P&gt;If so, refer to UM10204 I2C-bus specification and user manual&lt;/P&gt;
&lt;P&gt;&lt;A href="https://assets.nexperia.com/documents/user-manual/UM10204.pdf" target="_blank"&gt;https://assets.nexperia.com/documents/user-manual/UM10204.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1747136599991.png" style="width: 596px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/337564i9189EB0681C63220/image-dimensions/596x161?v=v2" width="596" height="161" role="button" title="danielmartynek_0-1747136599991.png" alt="danielmartynek_0-1747136599991.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;An example is in AN4803 I2C Non-Blocking Communication&lt;/P&gt;
&lt;P&gt;tI2C_fault I2C_Restore(void)&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4803.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN4803.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 11:44:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2096456#M48717</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-05-13T11:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Lpi2c issues</title>
      <link>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2097028#M48744</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/250384"&gt;@Erica407Den&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;How can I check that SDA line pulled low by MicroController or slave devices?&lt;/P&gt;&lt;P&gt;And I have confirmed that SDA line is being pulled low by using Logic Analyzer.&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 07:00:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2097028#M48744</guid>
      <dc:creator>vignesh3</dc:creator>
      <dc:date>2025-05-14T07:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Lpi2c issues</title>
      <link>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2097044#M48746</link>
      <description>&lt;P&gt;If the data line (SDA) is stuck LOW, the master should send nine clock pulses. The device&lt;BR /&gt;that held the bus LOW should release it sometime within those nine clocks. If not, then&lt;BR /&gt;use the HW reset or cycle power to clear the bus.&lt;/P&gt;&lt;P&gt;How can I send the 9 clock pulses, I am using S32K322 MC.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 07:17:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2097044#M48746</guid>
      <dc:creator>vignesh3</dc:creator>
      <dc:date>2025-05-14T07:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Lpi2c issues</title>
      <link>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2097144#M48757</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/238430"&gt;@vignesh3&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The RTD I2C drivers do not have such a function.&lt;/P&gt;
&lt;P&gt;You would need to do it using the the Port/SIUL2 drivers.&lt;/P&gt;
&lt;P&gt;That mean you need to reconfigure the SCL pin from LPI2C to GPIO and toggle it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer to in AN4803 I2C Non-Blocking Communication&lt;/P&gt;
&lt;P&gt;There is a pseudo code that does that.&lt;/P&gt;
&lt;P&gt;tI2C_fault I2C_Restore(void)&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4803.pdf" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.nxp.com/docs/en/application-note/AN4803.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 08:42:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2097144#M48757</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-05-14T08:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Lpi2c issues</title>
      <link>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2097172#M48759</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001" target="_blank"&gt;@danielmartynek&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/250384" target="_blank"&gt;@Erica407Den&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;How can I check that SDA line pulled low by MicroController or slave devices?&lt;/P&gt;&lt;P&gt;And I have confirmed that SDA line is being pulled low by using Logic Analyzer&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 09:10:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2097172#M48759</guid>
      <dc:creator>vignesh3</dc:creator>
      <dc:date>2025-05-14T09:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Lpi2c issues</title>
      <link>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2097296#M48771</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/238430"&gt;@vignesh3&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I don't think it the LPI2C Master that drives it low.&lt;/P&gt;
&lt;P&gt;Anyway, you can simply disconnect the SDA pin from the LPI2C module in SIUL2 (in the MSCR register of the pin).&lt;/P&gt;
&lt;P&gt;Then, the pull-up resistor should pull SDA to VDD unless it is driven by a slave device connected to the bus.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 11:21:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2097296#M48771</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-05-14T11:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Lpi2c issues</title>
      <link>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2107736#M49401</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Here the application note says when ever&amp;nbsp;I2C_TIMEOUT fault flag sets at the time it is generating 9 clock pulses right, still do I need to externally generate that 9 clock pulses?&lt;/P&gt;&lt;P&gt;The I2C_TIMEOUT fault flag is set, when the I2C_BUS_BUSY fault persists more than 150 µs (number determined as double of longest I2C message). The message transfer is not completed and the bus is still in busy state because the data transmission on the I2C bus is affected by the noise. Timeout feature prevents processor to stick for ever when this condition occurs on the I2C bus. After the timeout fault occurs, the software disables the I2C module and sends nine clock pulses followed by NACK and the stop signal.&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 07:03:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2107736#M49401</guid>
      <dc:creator>vignesh3</dc:creator>
      <dc:date>2025-05-30T07:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Lpi2c issues</title>
      <link>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2107743#M49403</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;How can I do the cycle power reset?&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 07:08:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2107743#M49403</guid>
      <dc:creator>vignesh3</dc:creator>
      <dc:date>2025-05-30T07:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Lpi2c issues</title>
      <link>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2107769#M49407</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/238430"&gt;@vignesh3&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Yes, you need to reconfigure the pin to GPIO (disable LPI2C) and toggle it, the implementation is down to you.&lt;/P&gt;
&lt;P&gt;To power cycle the I2C Slave, you have to power it down.&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 07:24:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2107769#M49407</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-05-30T07:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Lpi2c issues</title>
      <link>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2107777#M49408</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;, I will check on that.&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 07:29:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2107777#M49408</guid>
      <dc:creator>vignesh3</dc:creator>
      <dc:date>2025-05-30T07:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Lpi2c issues</title>
      <link>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2108514#M49466</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;Siul2_Port_Ip_Init(NUM_OF_CONFIGURED_PINS0, g_pin_mux_InitConfigArr0);&lt;/P&gt;&lt;P&gt;In this, I am initializing all the pins.&lt;/P&gt;&lt;P&gt;It is generated code by the S32DS tool, So in between I need to initialize I2C clk as GPIO, Can I use generated code or Do I need to modify this&amp;nbsp;g_pin_mux_InitConfigArr0 structure or Is there any alternate way for this?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 08:08:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2108514#M49466</guid>
      <dc:creator>vignesh3</dc:creator>
      <dc:date>2025-06-02T08:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Lpi2c issues</title>
      <link>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2108525#M49467</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/238430"&gt;@vignesh3&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Have a look at the APIs in&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Siul2_Dio_Ip.h&lt;/P&gt;
&lt;P&gt;Siul2_Port_Ip.h&lt;/P&gt;
&lt;P&gt;If you have any specific question about Siul2, please create a new thread.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 08:30:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Lpi2c-issues/m-p/2108525#M49467</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-06-02T08:30:32Z</dc:date>
    </item>
  </channel>
</rss>

