Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Help required in decoding i2c_smbus_xfer() functions error c
PostPosted: Mon Sep 19, 2011 7:27 pm 
Offline

Joined: Thu Dec 30, 2010 6:49 pm
Posts: 38
I am running Linux 2.6.30 on AtmelSAM9G45 which talks to TCA9555 device using I2C interface. This was working fine for many days but all of a sudden i am not able to communicate using I2C bus. When i put debug printk, i get error of -6 from i2c_smbus_xfer() function. I used Beagle I2C analyzer to see what's happening on the bus and i see "Corrupt Transactions" with all data as "FF". Not sure what is happening here. Can anyone please help me what does the above error code mean?

I also enabled I2C debugging and i got the following message from kernel
i2c-adapter i2c-0: ioctl, cmd=0x720, arg=0xbef14a8c
error... 0x06

i2c-adapter i2c-0: ioctl, cmd=0x703, arg=0x216

When i first started this 6 months ago, things worked seamlessly by just using i2c_smbus_read_byte() and i2c_smbus_write_byte() functions and i havne't done any kernel modification except for enabling i2c bus as dev interface. Even if i have a defective slave device, i should atleast see what are the transactions sent by the master on the analyzer (in the past i have tried this and the analyzer does show). Strangely this is not happening...

I did use a scope and saw some transactions happening on the bus but couldn't capture it as i don't have experience in using trigger functionality. When i saw in the I2C analyser, i get all data as "FF" which is quite strange...

Thanks
Prashanth


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: