BusIO error on genuino101

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jdelcamp11
 
Posts: 283
Joined: Mon Nov 17, 2014 12:30 am

BusIO error on genuino101

Post by jdelcamp11 »

After recent updates to libraries my adafruit motorshield sketches no longer compile if I use my genuino101 - other boards compile just fine.
Note: these previously worked.
This applies to all sketches using the motorshield including the example sketches from the adafruit motorshield library but only if using the genuino101.
The error is

Code: Select all

E:\grizl\Arduino\libraries\Adafruit_BusIO\Adafruit_I2CDevice.cpp: In member function 'void Adafruit_I2CDevice::end()':
E:\grizl\Arduino\libraries\Adafruit_BusIO\Adafruit_I2CDevice.cpp:50:10: error: 'class TwoWire' has no member named 'end'
   _wire->end();
I am quessing there is something specific in the wire library for the intel/curie 101 but I don't know where to look.
Any suggestions?

User avatar
jdelcamp11
 
Posts: 283
Joined: Mon Nov 17, 2014 12:30 am

Re: BusIO error on genuino101

Post by jdelcamp11 »

Update: the same error appears in any sketch using I2C. (checked examples BUSIO /i2caddress_detect, INA219/getcurrent, BME280/bme280test) all fail to compile with same error.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: BusIO error on genuino101

Post by adafruit_support_mike »

It does sound like something has gone wrong in the board support package. That can happen during updates, especially if you skip a version.

The dependencies are so hard to trace that it’s easier to nuke the whole thing and start again: find your Arduino15 folder, then navigate down to ‘packages/arduino’ and delete the folder named ‘avr’. Then launch the Arduino IDE and reload the ‘Arduino AVR Boards’ package. That should put things back in order.

User avatar
jdelcamp11
 
Posts: 283
Joined: Mon Nov 17, 2014 12:30 am

Re: BusIO error on genuino101

Post by jdelcamp11 »

I tried this - not fixed.
I also deleted the intel sub-directory in arduino15. again no fix.
Also tried on two other computers with the same error on each.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: BusIO error on genuino101

Post by adafruit_support_mike »

Something is clearly screwed up in the libraries.. the ARV core’s Wire library defines the class TwoWire, and clearly defines the function .end():

https://github.com/arduino/ArduinoCore- ... Wire.h#L56

You may need to delete the whole IDE and install a new copy.

User avatar
idranoutof1d
 
Posts: 1
Joined: Fri Jul 08, 2022 11:56 am

Re: BusIO error on genuino101

Post by idranoutof1d »

the Arduino 101 is not a AVR board, so the AVR library defining end() IMHO won't matter in this situation.

After struggling with the same issue, I found out this:
for some reason, while the AVR board core's Wire library defines end(), The Intel Curie base library's Wire.h does not define end().
manually adding "void end();" to Wire.h solved the problem for me.

User avatar
jdelcamp11
 
Posts: 283
Joined: Mon Nov 17, 2014 12:30 am

Re: BusIO error on genuino101

Post by jdelcamp11 »

thanks. I found the same solution.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”