<?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: I2C3 address? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/I2C3-address/m-p/161738#M3523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Yes, we did, but both i2cget and i2cset are failed. We also use Logic Analyzer to catch the signal, the slave device address specifying is successful, but failed in&amp;nbsp;read/write&amp;nbsp;processing. Any comment on this situation?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 May 2012 02:06:43 GMT</pubDate>
    <dc:creator>Tsung-FangTu</dc:creator>
    <dc:date>2012-05-24T02:06:43Z</dc:date>
    <item>
      <title>I2C3 address?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C3-address/m-p/161731#M3516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all! &amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a board based on i.MX53 SMD design and there is a LCM module which is wired to I2C3 bus. To control the LCM, we are just following the standard /dev/i2c-2 file open (success!) and then&amp;nbsp;ioctl(file, I2C_SLAVE, address).&amp;nbsp;However, we have&amp;nbsp;no clue&amp;nbsp;on the I2C3 address. &amp;nbsp;Could anyone provide us an advise?&amp;nbsp;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T.F.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 09:16:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C3-address/m-p/161731#M3516</guid>
      <dc:creator>Tsung-FangTu</dc:creator>
      <dc:date>2012-05-17T09:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: I2C3 address?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C3-address/m-p/161732#M3517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Just did some search and realize I should adopt /linux/drivers/i2c/bussed/i2c-imx.c instead of implementing the driver by myself. But I still need the instruction for me to use the linux driver in my application (say, steps of function calls to communicate to the LCM). Any comment/suggestion is more than welcome!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T.F.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 09:59:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C3-address/m-p/161732#M3517</guid>
      <dc:creator>Tsung-FangTu</dc:creator>
      <dc:date>2012-05-17T09:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: I2C3 address?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C3-address/m-p/161733#M3518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the Linux QSB, Adding i2ctools pkg from the BSP in the build.&amp;nbsp;There will be a few sample apps in the tools folder. i2cget and i2cset could be a good start point&amp;nbsp;as&amp;nbsp;the user space application reference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2012 07:49:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C3-address/m-p/161733#M3518</guid>
      <dc:creator>xizhouwang</dc:creator>
      <dc:date>2012-05-18T07:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: I2C3 address?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C3-address/m-p/161734#M3519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! Xizhou Wang, sorry for my late reply, and we did utilize the i2ctools to test the LCM, and we have specified the i2c slave address based on the hardware data sheet, however, the current problem we met is i2c connection or initialization...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below are my testing code:&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------&lt;BR /&gt; int file;&lt;BR /&gt; int adapter_nr = 2; /* i2C3 for iMX53 */&lt;BR /&gt; char filename[20];&lt;BR /&gt; &lt;BR /&gt; snprintf(filename, 19, "/dev/i2c-%d", adapter_nr);&lt;BR /&gt; file = open(filename, O_RDWR);&lt;BR /&gt; if (file &amp;lt; 0) {&lt;BR /&gt; printf("Error opening i2c-2 port!, file = %d\n", file);&lt;BR /&gt; exit(1);&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; printf("Opening i2c-2 successful! \n");&lt;/P&gt;&lt;P&gt;int addr = 0x40; /* The I2C slave address */&lt;BR /&gt; &lt;BR /&gt; if (ioctl(file, I2C_SLAVE, addr) &amp;lt; 0) {&lt;BR /&gt; printf("i2c-2 device address specifying failed!, file = %d\n", file);&lt;BR /&gt; exit(1);&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; printf("i2c-2 device address specifying successful! \n");&lt;BR /&gt; &lt;BR /&gt; __s32 res;&lt;BR /&gt; char buf[10];&lt;BR /&gt; &lt;BR /&gt; buf[0] = 0x00;&lt;BR /&gt; &lt;BR /&gt; res = write(file, buf, 1);&lt;BR /&gt; if (res != 1) {&lt;BR /&gt; printf("i2c-2 write failed!\n");&lt;BR /&gt; printf("res = %d\n", res);&lt;BR /&gt; exit(1);&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; printf("i2c-2 write successful! \n");&lt;BR /&gt;------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;My testing always failed on the "write", res = -1, and I got same result if I use the i2ctools by:$./i2cset 2 64 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have tried to re-wire the LCM to i2c-1, but nothing changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the i2c device need an initialization process? Can anyone kindly provide us an advise, suggestion, or hint?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, we have tried to test the i2c protocal by welding TI BQ32000 which is an clock w. i2c interface, but we always failed on the ioctl command, due to it's i2c slave address is 11010000b which was complaint for too huge. We also got no clue on why i2c slave address can not exceed 0x77... any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 08:17:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C3-address/m-p/161734#M3519</guid>
      <dc:creator>Tsung-FangTu</dc:creator>
      <dc:date>2012-05-23T08:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: I2C3 address?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C3-address/m-p/161735#M3520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This link&amp;nbsp;explain i2c address&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.totalphase.com/support/kb/10039/"&gt;http://www.totalphase.com/support/kb/10039/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i2cset works for you, use it as a sample for your application.&lt;/P&gt;&lt;P&gt;Write a block of data to a slave device could use these 3 functions. open_i2c_dev, set_slave_addr, i2c_smbus_write-i2c-block_data from the i2ctools pkgs.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 09:15:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C3-address/m-p/161735#M3520</guid>
      <dc:creator>xizhouwang</dc:creator>
      <dc:date>2012-05-23T09:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: I2C3 address?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C3-address/m-p/161736#M3521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Xizhou, thanks for your prompt reply again!&lt;/P&gt;&lt;P&gt;No, as my description,&amp;nbsp;&lt;SPAN&gt;i2cset doesn't work me. I always got write error...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Should I manually initial the i2c device?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 09:20:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C3-address/m-p/161736#M3521</guid>
      <dc:creator>Tsung-FangTu</dc:creator>
      <dc:date>2012-05-23T09:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: I2C3 address?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C3-address/m-p/161737#M3522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using i2cget and i2cset to check the hardware connection works&amp;nbsp;before&amp;nbsp;testing your own software.&lt;/P&gt;&lt;P&gt;i2cset will initial&amp;nbsp;the slave device and write the byte to it and you need monitor the device have received the correct&amp;nbsp;byte.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 10:02:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C3-address/m-p/161737#M3522</guid>
      <dc:creator>xizhouwang</dc:creator>
      <dc:date>2012-05-23T10:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: I2C3 address?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C3-address/m-p/161738#M3523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Yes, we did, but both i2cget and i2cset are failed. We also use Logic Analyzer to catch the signal, the slave device address specifying is successful, but failed in&amp;nbsp;read/write&amp;nbsp;processing. Any comment on this situation?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 02:06:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C3-address/m-p/161738#M3523</guid>
      <dc:creator>Tsung-FangTu</dc:creator>
      <dc:date>2012-05-24T02:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: I2C3 address?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C3-address/m-p/161739#M3524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seams hardware is not working. Using a known good slave device or i2c&amp;nbsp;simulator to&amp;nbsp;check your conncetions and find out which side need to be fixed, &amp;nbsp;master or slave?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 13:33:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C3-address/m-p/161739#M3524</guid>
      <dc:creator>xizhouwang</dc:creator>
      <dc:date>2012-05-24T13:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: I2C3 address?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C3-address/m-p/161740#M3525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, we finally figure it out, the slave address on the data sheet is wrong.... WT...&lt;/P&gt;&lt;P&gt;Anyway, I appreciate your kind reply and support!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 03:10:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C3-address/m-p/161740#M3525</guid>
      <dc:creator>Tsung-FangTu</dc:creator>
      <dc:date>2012-05-25T03:10:27Z</dc:date>
    </item>
  </channel>
</rss>

