Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

M0 and DFRobot I2CMultiplexer causes crash
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

M0 and DFRobot I2CMultiplexer causes crash

by Yambanshee on Thu Jul 30, 2020 8:55 am

Hi guys
I've ran into an I2C address conflict between some sensors while working on a project with the ItsyBitsy M0. We had a DFRobot I2C multiplexer around, so tried to make use of that to solve the issues. However, loading the DFRobot multiplexer library causes the itsybitsy to crash (bootloader fails to load). I can confirm that the following line causes the crash:
Code: Select all | TOGGLE FULL SIZE
DFRobot_I2CMultiplexer I2CMulti(0x70);


The library is included at the top of the program. This issue does not occur with an Arduino Uno, but does with both the M0 and M4.
Any ideas what could cause this, and what a possible solution would be?

Yambanshee
 
Posts: 2
Joined: Thu Jul 30, 2020 8:47 am

Re: M0 and DFRobot I2CMultiplexer causes crash

by adafruit_support_bill on Thu Jul 30, 2020 9:06 am

Please post the error output associated with the 'crash'.

adafruit_support_bill
 
Posts: 78775
Joined: Sat Feb 07, 2009 10:11 am

Re: M0 and DFRobot I2CMultiplexer causes crash

by Yambanshee on Thu Jul 30, 2020 10:23 am

Hi

Thanks for the response.
I don't receive an error. When the software is loaded (via Arduino IDE) the bootloader fails to load on restart and the program does not operate.

Yambanshee
 
Posts: 2
Joined: Thu Jul 30, 2020 8:47 am

Re: M0 and DFRobot I2CMultiplexer causes crash

by adafruit_support_bill on Thu Jul 30, 2020 10:46 am

Sounds like the problem is in the DFRobot library. The architecture of SAMD processors like the M0 and M4 is quite a bit different from Atmega processors like the UNO. And many libraries require modifications to work properly on these processors.

adafruit_support_bill
 
Posts: 78775
Joined: Sat Feb 07, 2009 10:11 am

Please be positive and constructive with your questions and comments.