arduino-libraries / ArduinoECCX08

76 stars 49 forks source link

Initialisation failure when using TWI pins #18

Closed ubidefeo closed 4 years ago

ubidefeo commented 5 years ago

A user in the forums had issues which were tracked back to this library's begin. When using a motor shield via a MKR to UNO adapter, pins 11 and 12 were interfering with the correct functioning of the TWI. begin() could use a timeout and return failure. This has repercussions on ArduinoIoTCloud. Forum post here https://forum.arduino.cc/index.php?topic=606191.new#new

sandeepmistry commented 5 years ago

@ubidefeo do you have the h/w to reproduce?

Is if failing or hanging? Begin already returns 0 on failure, can you confirm this is the case?

ubidefeo commented 5 years ago

@sandeepmistry it hangs, check the forum post linked above. It's an i2c issue

sandeepmistry commented 5 years ago

@ubidefeo if it's an I2C issue, I suggest you open an issue in the SAMD core instead: https://github.com/arduino/ArduinoCore-samd/issues

Please let us know the state of the SCL/SDA pins on the MKR, are they tied LOW or HIGH etc.

ubidefeo commented 5 years ago

@sandeepmistry , sorry for the late reply. been crunching hard for Maker Faire :) I don't have one of those shields, but I plan on having one shipped to me. Once I test this I'll let you know :)

sandeepmistry commented 4 years ago

Hi @ubidefeo,

I'm going to close this now due to lack of feedback. Please re-open with more info once your get a chance to test.