<?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: What is the slave address of JN5189's i2c in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/What-is-the-slave-address-of-JN5189-s-i2c/m-p/1751033#M15850</link>
    <description>&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;According to your modification, I2c1 (PIO_6 PIO_7) is used as slave or host. I2c0 (PIO_10 PIO_11) as slave or host, they can communicate with each other. Now I have a light sensor that communicates with JN5189 through the i2c interface. If I use (PIO_10 PIO_11) as the host and the light sensor as the slave, they can communicate with each other. But if I use (PIO_6 PIO_7) as the host and the light sensor as the slave, they cannot communicate with each other (does not read the ack of the slave). This is a strange question, do I need to configure anything else?&lt;/P&gt;&lt;P&gt;Attached is the i2c code. Are there any errors?&lt;/P&gt;&lt;P&gt;Screenshot is the i2c0 as the host can communicate. i2c1 cannot communicate as a host&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tomembedded_0-1698928912623.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/248151iA707F201DE577E80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tomembedded_0-1698928912623.png" alt="Tomembedded_0-1698928912623.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
    <pubDate>Thu, 02 Nov 2023 12:44:03 GMT</pubDate>
    <dc:creator>Tome-mbedded</dc:creator>
    <dc:date>2023-11-02T12:44:03Z</dc:date>
    <item>
      <title>What is the slave address of JN5189's i2c</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/What-is-the-slave-address-of-JN5189-s-i2c/m-p/1745862#M15827</link>
      <description>&lt;P&gt;hello everyone,&lt;/P&gt;&lt;P&gt;JN5189 i2c function, if as a slave, what is its slave address?&amp;nbsp;&amp;nbsp;Which document can I see?&lt;/P&gt;&lt;P&gt;thank you very much&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 10:10:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/What-is-the-slave-address-of-JN5189-s-i2c/m-p/1745862#M15827</guid>
      <dc:creator>Tome-mbedded</dc:creator>
      <dc:date>2023-10-25T10:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: What is the slave address of JN5189's i2c</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/What-is-the-slave-address-of-JN5189-s-i2c/m-p/1746026#M15829</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;If you are using the I2C driver examples from the SDK, the slave address should be defined with the macro:&lt;/P&gt;
&lt;PRE&gt;#define I2C_MASTER_SLAVE_ADDR_7BIT&lt;/PRE&gt;
&lt;P&gt;And it should be set to (0x7EU) by default, but you should be able to change this address. This value is then assigned to slaveConfig.address0.address field, as i2c_slave_config_t slaveConfig structure should be used to initialize the I2C Slave peripheral.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Eduardo.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 15:47:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/What-is-the-slave-address-of-JN5189-s-i2c/m-p/1746026#M15829</guid>
      <dc:creator>EduardoZamora</dc:creator>
      <dc:date>2023-10-25T15:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: What is the slave address of JN5189's i2c</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/What-is-the-slave-address-of-JN5189-s-i2c/m-p/1750234#M15845</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;One more question.I used the i2c driver example in the sdk. An example of dma_transfer in the i2c folder. I compiled and then downloaded nxp JN5189 development board, in this example, i2c0 and i2c1 can communicate normally, its configuration is as follows:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;I2C connected to I2C0&lt;/P&gt;&lt;P&gt;SCL PIO_6(J3 pin13) --&amp;gt; PIO_10(J3 pin17)&lt;/P&gt;&lt;P&gt;SDA PIO_7(J3 pin14) --&amp;gt; PIO_11(J3 pin18)&lt;/P&gt;&lt;P&gt;Above is I2c0 (PIO_10 PIO_11) as the host and I2c1 (PIO_6 PIO_7) as the slave.&lt;/P&gt;&lt;P&gt;It can communicate. But I want to change it to I2c1 (PIO_6 PIO_7) as the host and I2c0 (PIO_10 PIO_11) as the slave.&lt;/P&gt;&lt;P&gt;How do I configure the I/O port? I swapped the io configuration in the example, but it didn't communicate.&lt;/P&gt;&lt;P&gt;For the configuration of I/O ports, see the attachment.&lt;/P&gt;&lt;P&gt;How do I configure the I/O port?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Nov 2023 11:14:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/What-is-the-slave-address-of-JN5189-s-i2c/m-p/1750234#M15845</guid>
      <dc:creator>Tome-mbedded</dc:creator>
      <dc:date>2023-11-01T11:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: What is the slave address of JN5189's i2c</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/What-is-the-slave-address-of-JN5189-s-i2c/m-p/1750480#M15848</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You can try swapping I2Cx_BASE addresses and setting DMA channel to 7 (as indicated in JN5189 User Manual, Chapter 17 DMA, Section 17.5.1.1 DMA requests).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EduardoZamora_0-1698863939513.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/247960i319F3D01289E4AB0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EduardoZamora_0-1698863939513.png" alt="EduardoZamora_0-1698863939513.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Eduardo.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 18:39:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/What-is-the-slave-address-of-JN5189-s-i2c/m-p/1750480#M15848</guid>
      <dc:creator>EduardoZamora</dc:creator>
      <dc:date>2023-11-01T18:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: What is the slave address of JN5189's i2c</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/What-is-the-slave-address-of-JN5189-s-i2c/m-p/1751033#M15850</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;According to your modification, I2c1 (PIO_6 PIO_7) is used as slave or host. I2c0 (PIO_10 PIO_11) as slave or host, they can communicate with each other. Now I have a light sensor that communicates with JN5189 through the i2c interface. If I use (PIO_10 PIO_11) as the host and the light sensor as the slave, they can communicate with each other. But if I use (PIO_6 PIO_7) as the host and the light sensor as the slave, they cannot communicate with each other (does not read the ack of the slave). This is a strange question, do I need to configure anything else?&lt;/P&gt;&lt;P&gt;Attached is the i2c code. Are there any errors?&lt;/P&gt;&lt;P&gt;Screenshot is the i2c0 as the host can communicate. i2c1 cannot communicate as a host&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tomembedded_0-1698928912623.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/248151iA707F201DE577E80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tomembedded_0-1698928912623.png" alt="Tomembedded_0-1698928912623.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 12:44:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/What-is-the-slave-address-of-JN5189-s-i2c/m-p/1751033#M15850</guid>
      <dc:creator>Tome-mbedded</dc:creator>
      <dc:date>2023-11-02T12:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: What is the slave address of JN5189's i2c</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/What-is-the-slave-address-of-JN5189-s-i2c/m-p/1751481#M15853</link>
      <description>&lt;P&gt;Hello&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/200888"&gt;@EduardoZamora&lt;/a&gt;&amp;nbsp;do you have time to help me look at this problem, stuck on this problem&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 01:42:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/What-is-the-slave-address-of-JN5189-s-i2c/m-p/1751481#M15853</guid>
      <dc:creator>Tome-mbedded</dc:creator>
      <dc:date>2023-11-03T01:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: What is the slave address of JN5189's i2c</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/What-is-the-slave-address-of-JN5189-s-i2c/m-p/1752210#M15861</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If you are using i2c_dma_transfer demo application as base for your development, this project should configure pin routing and pin features in board &amp;gt; pin_mux.c file. Port0_Pin6 (I2C1_SCL) and Port0_Pin7 (I2C_SDA) should be already configured in this file, and depending on your code's structure, there may be some configuration overwriting.&lt;/P&gt;
&lt;P&gt;Could you please confirm that these pins are configured only once in your project?&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Eduardo.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2023 00:09:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/What-is-the-slave-address-of-JN5189-s-i2c/m-p/1752210#M15861</guid>
      <dc:creator>EduardoZamora</dc:creator>
      <dc:date>2023-11-04T00:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: What is the slave address of JN5189's i2c</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/What-is-the-slave-address-of-JN5189-s-i2c/m-p/1753950#M15870</link>
      <description>&lt;P&gt;thank you .The issue has been resolved.&amp;nbsp;The i2c configuration is reversed&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 06:29:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/What-is-the-slave-address-of-JN5189-s-i2c/m-p/1753950#M15870</guid>
      <dc:creator>Tome-mbedded</dc:creator>
      <dc:date>2023-11-08T06:29:39Z</dc:date>
    </item>
  </channel>
</rss>

