<?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>S32KのトピックRe: S32K146 LPI2C Receive Example</title>
    <link>https://community.nxp.com/t5/S32K/S32K146-LPI2C-Receive-Example/m-p/1814062#M32001</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/217348"&gt;@Nibesh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the delay. I have some observations about your code.&lt;/P&gt;
&lt;P&gt;If we refer to the code used as a reference for your project, we can see that two addresses were defined for the slave.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;#define MPL3115A2_W           0xC0
#define MPL3115A2_R           0xC1&lt;/LI-CODE&gt;
&lt;P&gt;In these, a 1-bit shift to the left was made, and the bit that identifies whether you want to do a read or writing was added (we go from a 7-bit to an 8-bit address). Therefore, when you are calling the read or write functions, the same direction is taken as if a write were being done all the time.&lt;/P&gt;
&lt;P&gt;Additionally, I could see that in your write function, you are sending an array, but when you call it in the function, you are only sending the address of the array, not a pointer to it.&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;use &amp;amp;uartRxBuff instead of uartRxBuff&lt;/LI-CODE&gt;
&lt;P&gt;Additionally, in this function, when sending data, you would not be traveling through the array, because you always send the same data.&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;uint8_t LPI2C0_write(uint8_t s_w_address, uint8_t * byte, uint8_t size)
{
    if(bus_busy()) return (error |= (1 &amp;lt;&amp;lt; BUSY));
    generate_start_ACK(s_w_address);
    for(int i=0;i&amp;lt;size;i++)
    	transmit_data(byte[i]);
    if(generate_stop()) return error;
    else return OK;
}
&lt;/LI-CODE&gt;
&lt;P&gt;Please let me know if I misunderstood any of the above observations.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2024 18:58:16 GMT</pubDate>
    <dc:creator>VaneB</dc:creator>
    <dc:date>2024-02-22T18:58:16Z</dc:date>
    <item>
      <title>S32K146 LPI2C Receive Example</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-LPI2C-Receive-Example/m-p/1808919#M31706</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&amp;nbsp;the S32Design Studio didn't have LPI2C Receive example code for S32K146EVB.&lt;BR /&gt;&lt;BR /&gt;If you can provide any example code for LPI2C or MRDR Receive that will be helpful for me.&lt;BR /&gt;&lt;BR /&gt;Thank You&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 07:43:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-LPI2C-Receive-Example/m-p/1808919#M31706</guid>
      <dc:creator>Nibesh</dc:creator>
      <dc:date>2024-02-15T07:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 LPI2C Receive Example</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-LPI2C-Receive-Example/m-p/1809335#M31726</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/217348"&gt;@Nibesh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check the following examples. These are some implementations for I2C using different software. It might be a good reference for your project.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K144-I2C-Master-MPL3115A2-S32DSR1-v3/ta-p/1125255" target="_blank" rel="noopener"&gt;Example_S32K144_I2C_Master_MPL3115A2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;LPI2C MASTER and&amp;nbsp;LPI2C SLAVE (&lt;A href="https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=SW32K14-SDK1D" target="_blank" rel="noopener"&gt;S32 SDK for S32K1xx&lt;/A&gt; examples)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;B.R.&lt;/P&gt;
&lt;P&gt;VaneB&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 17:48:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-LPI2C-Receive-Example/m-p/1809335#M31726</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2024-02-15T17:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 LPI2C Receive Example</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-LPI2C-Receive-Example/m-p/1809367#M31727</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt; I am searching for S32 SDK for LPI2C not for RTM project..&lt;BR /&gt;I am not interested in any RTOS project.&lt;BR /&gt;If you can help me any hardcoded file with MRDR or Master Receive function that will be helpful for me.&lt;BR /&gt;&lt;BR /&gt;Thank You&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 18:11:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-LPI2C-Receive-Example/m-p/1809367#M31727</guid>
      <dc:creator>Nibesh</dc:creator>
      <dc:date>2024-02-15T18:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 LPI2C Receive Example</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-LPI2C-Receive-Example/m-p/1809452#M31730</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/217348"&gt;@Nibesh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RTM means "ready to market". It is not the name of the software. We have available two different software for S32K1 devices. These are the &lt;A href="https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=SW32K14-SDK1D" target="_blank" rel="noopener nofollow noreferrer"&gt;S32 SDK for S32K1xx&lt;/A&gt;, and the other one is &lt;A href="https://www.nxp.com/design/design-center/software/automotive-software-and-tools/real-time-drivers-rtd:AUTOMOTIVE-RTD" target="_blank" rel="noopener"&gt;Real-Time Drivers (RTD)&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the examples previously provided, the first one was implemented using the registers as the&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/AN5413.pdf" target="_blank" rel="noopener"&gt;S32K1xx Series Cookbook&lt;/A&gt;&amp;nbsp;and the other two were implemented using the SDK. Any of these uses&amp;nbsp;RTOS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please help me clarify if you are using any of the mentioned software or if you are working with the registers?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 19:29:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-LPI2C-Receive-Example/m-p/1809452#M31730</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2024-02-15T19:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 LPI2C Receive Example</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-LPI2C-Receive-Example/m-p/1809455#M31731</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&amp;nbsp;The examples in S32DS in S32Design Studio for S32K146EVB only function for Transmit.&lt;BR /&gt;It is not at all performing Receiving function &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;For you kind reference I have attached the example code. I hope you will check it.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 15:10:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-LPI2C-Receive-Example/m-p/1809455#M31731</guid>
      <dc:creator>Nibesh</dc:creator>
      <dc:date>2024-02-21T15:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 LPI2C Receive Example</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-LPI2C-Receive-Example/m-p/1809557#M31734</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/217348"&gt;@Nibesh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K144-I2C-Master-MPL3115A2-S32DSR1-v3/ta-p/1125255" target="_blank" rel="noopener"&gt;Example_S32K144_I2C_Master_MPL3115A2&lt;/A&gt;&amp;nbsp;I shared before. It was implemented using the registers as your project.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 22:24:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-LPI2C-Receive-Example/m-p/1809557#M31734</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2024-02-15T22:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 LPI2C Receive Example</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-LPI2C-Receive-Example/m-p/1812878#M31918</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&amp;nbsp; will you please check my code once, LPI2C_read is not working.&lt;BR /&gt;I have attached my project zip file.&lt;BR /&gt;I hope you will check and provide quick response.&lt;BR /&gt;&lt;BR /&gt;Thank You&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 14:36:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-LPI2C-Receive-Example/m-p/1812878#M31918</guid>
      <dc:creator>Nibesh</dc:creator>
      <dc:date>2024-02-21T14:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 LPI2C Receive Example</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-LPI2C-Receive-Example/m-p/1813052#M31931</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/217348"&gt;@Nibesh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am reviewing your code, in the meantime, as I do not have the same setup, could you share an image of the I2C signals? The purpose of this is to observe the behavior of it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 18:44:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-LPI2C-Receive-Example/m-p/1813052#M31931</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2024-02-21T18:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 LPI2C Receive Example</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-LPI2C-Receive-Example/m-p/1813079#M31932</link>
      <description>&lt;P&gt;Thank you very much&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&amp;nbsp;.&lt;BR /&gt;I have attached the logic analyzer image for your kind reference.&lt;BR /&gt;I am trying to set 0x60 as a slave address too, it is changing by default.&lt;BR /&gt;I hope you will help me to sort out by debugging with my code.&lt;BR /&gt;&lt;BR /&gt;Thank You&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 19:11:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-LPI2C-Receive-Example/m-p/1813079#M31932</guid>
      <dc:creator>Nibesh</dc:creator>
      <dc:date>2024-02-21T19:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 LPI2C Receive Example</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-LPI2C-Receive-Example/m-p/1813929#M31996</link>
      <description>Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt; can I expect any positive reply from you ?</description>
      <pubDate>Thu, 22 Feb 2024 16:06:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-LPI2C-Receive-Example/m-p/1813929#M31996</guid>
      <dc:creator>Nibesh</dc:creator>
      <dc:date>2024-02-22T16:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 LPI2C Receive Example</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-LPI2C-Receive-Example/m-p/1814062#M32001</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/217348"&gt;@Nibesh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the delay. I have some observations about your code.&lt;/P&gt;
&lt;P&gt;If we refer to the code used as a reference for your project, we can see that two addresses were defined for the slave.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;#define MPL3115A2_W           0xC0
#define MPL3115A2_R           0xC1&lt;/LI-CODE&gt;
&lt;P&gt;In these, a 1-bit shift to the left was made, and the bit that identifies whether you want to do a read or writing was added (we go from a 7-bit to an 8-bit address). Therefore, when you are calling the read or write functions, the same direction is taken as if a write were being done all the time.&lt;/P&gt;
&lt;P&gt;Additionally, I could see that in your write function, you are sending an array, but when you call it in the function, you are only sending the address of the array, not a pointer to it.&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;use &amp;amp;uartRxBuff instead of uartRxBuff&lt;/LI-CODE&gt;
&lt;P&gt;Additionally, in this function, when sending data, you would not be traveling through the array, because you always send the same data.&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;uint8_t LPI2C0_write(uint8_t s_w_address, uint8_t * byte, uint8_t size)
{
    if(bus_busy()) return (error |= (1 &amp;lt;&amp;lt; BUSY));
    generate_start_ACK(s_w_address);
    for(int i=0;i&amp;lt;size;i++)
    	transmit_data(byte[i]);
    if(generate_stop()) return error;
    else return OK;
}
&lt;/LI-CODE&gt;
&lt;P&gt;Please let me know if I misunderstood any of the above observations.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 18:58:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-LPI2C-Receive-Example/m-p/1814062#M32001</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2024-02-22T18:58:16Z</dc:date>
    </item>
  </channel>
</rss>

