Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - I2C slave driver solution for Beaglebone Black: (2 Items)
   
I2C slave driver solution for Beaglebone Black  
Hello,

We are trying to make communication between two beaglebones using I2C. Ethernet and other solutions are not used because
 of design limitations. I2C slave mode is not supported by qnx bsp. Thus I implemented software i2c solution using GPIO 
and interrupts. But using the hardware solution would be more reliable and fast. First, I want to ask is it possible to 
use I2C slave mode by modifying BSP. If possible how should I start?
Re: I2C slave driver solution for Beaglebone Black  
Fuzzing around with GPIO tends to never get stable and reliable. I would try to implement a slave mode driver directly 
for the on-board I2C controller, based on the master driver source in the BSP. Some routines like setting baud rate and 
so on can probably be reused. 

The only thing you need to add entirely new is the communication interface to userland. A small resource manager should 
do.
You can't re-use the one from master driver because it is buried in libi2c-master.a, and kind of tailored to the master 
role.

Regards,
Albrecht