Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 04-02-2013, 06:32 AM   #1
Registered: Mar 2013
Posts: 65

Rep: Reputation: Disabled
I2c access problem

Hi all,
We are interfacing AT24c256 EEPROM to i2c-cpm (power pc 8280) . To test this interface we are using i2c tools (i2cget,i2cset)
but we are not able to read / write data in EEPROM.

Problem looks to be in the addressing of memory location ,basically byte address is getiing generated instead of word address ,
for eg if we want to read 4th location in EEPROM

following sequence should be generated as per data sheet
0xa0 ACK 0x00 ACK 0x04 ACK stop start 0xA1 ACK 0x04

But via i2cget following sequence is generated on wire as seen on scope
0xa0 ACK 0x04 ACK stop start 0xA1 ACK 0xFF

i2c tool package was downloded from below link

Can any one please share with us where in code we need to change code for generating 2 bytes of address any other informmation related to it would be of great help.

Thakns & Regards
sumit negi


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to access i2c device driver node farrukh_arshad Linux - Kernel 7 12-19-2012 10:05 PM
How to forward IOCTL's from i2c-dev.c to adapter driver (i2c-rt3352.c) Linux - Kernel 2 08-23-2011 02:03 AM
How to access register set of an i2c device from user space ? tanniru Linux - Kernel 1 04-26-2011 07:22 AM
How to access register set of an i2c device from user space ? tanniru Linux - Networking 0 04-26-2011 01:57 AM
Access I2C from x86 board zvivered Linux - Embedded & Single-board computer 3 03-03-2011 02:25 PM

All times are GMT -5. The time now is 03:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration