arduino / ArduinoCore-avr

The Official Arduino AVR core
https://www.arduino.cc
1.22k stars 1.04k forks source link

I2C/TWI/Wire Multi-master Arbitration Fix #198

Open frazras opened 11 years ago

frazras commented 11 years ago

There is a "bug" in AVR's implementation of I2C multi-master arbitration. There is a fix proposed in the blog below, could this be implemented in the Wire Library?

http://www.robotroom.com/Atmel-AVR-TWI-I2C-Multi-Master-Problem.html

pat1 commented 8 years ago

Any news about this?

sid1202 commented 7 years ago

@cmaglie IS this something that will be looked at soon ? I know you guys are busy, just wondering.

Thanks, Sid

kb- commented 7 years ago

We need this! Multi-master is unusable :(

iBeta666 commented 7 years ago

We need this! Multi-master is unusable :(

Do you mean it is unusable after the fix from robotroom? If not, while it might be nice to have in the library, it is easily possible to add the necessary lines of code - there are not many.

kb- commented 7 years ago

I meant before the fix. I didn't really get where to add the lines. But anyway, I've finally been able to get my multi-master code to work without having to change anything in the Wire library.

pat1 commented 7 years ago

To have the library working on my project on multi-master configuration I have done this patch https://github.com/r-map/rmap/commit/63a118dddc0c71a0999f69dd00a1b033caf7636d I think the robotroom patch will add a better work for Arbitration in addition to my patch. Paolo