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: Sam9x35 I2C communication
PostPosted: Mon Apr 30, 2012 3:03 pm 
Offline

Joined: Fri Mar 23, 2012 12:05 am
Posts: 2
Hi

im testing on the EK of 9x35 .
i am trying to communicate with TWI over linux.
under /sys/bus/i2c/devices i can find the interfaces the board provides.
but if i try to communicate with some i only get error .

my implementation as follows:

#define I2C_PATH "/sys/devices/platform/i2c-gpio.0/i2c-0"
fd = open(I2C_PATH, O_RDWR);

this call fails.
i tried to chmod but nothing got better.

Anybody can help me to get i2c work , perhapts one who got it on another board.

Thanks in advice.
nfs2k


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 1 guest


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: