Due to high demand expect some shipping delays at this time, orders may not ship for 3-4 business days.
0

Error in Compiling Example(s)
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Error in Compiling Example(s)

by MattPackwood on Thu Jan 13, 2022 8:51 am

Hi,

I am trying to use the Arduino Sketch in:
https://learn.adafruit.com/adafruit-circuit-playground-bluefruit/ble-uart-controller

I am getting the following error:
Code: Select all | TOGGLE FULL SIZE
Arduino: 1.8.19 (Mac OS X), Board: "Adafruit Circuit Playground Bluefruit, S140 6.1.1, Level 0 (Release), Serial"

Multiple libraries were found for "Adafruit_TinyUSB.h"
In file included from /Users/mattpackwood/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/Adafruit_TinyUSB.h:28,
                 from /Users/mattpackwood/Library/Arduino15/packages/adafruit/hardware/nrf52/1.3.0/libraries/Bluefruit52Lib/src/services/BLEHidGeneric.h:45,
 Used: /Users/mattpackwood/Documents/Arduino/libraries/Adafruit_TinyUSB_Library
 Not used: /Users/mattpackwood/Library/Arduino15/packages/adafruit/hardware/nrf52/1.3.0/libraries/Adafruit_TinyUSB_Arduino
                 from /Users/mattpackwood/Library/Arduino15/packages/adafruit/hardware/nrf52/1.3.0/libraries/Bluefruit52Lib/src/bluefruit.h:66,
                 from /Users/mattpackwood/Documents/Arduino/sketch_jan12a/sketch_jan12a.ino:14:
/Users/mattpackwood/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/Adafruit_USBD_HID.h:28:10: fatal error: Adafruit_TinyUSB_Core.h: No such file or directory
   28 | #include "Adafruit_TinyUSB_Core.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Error compiling for board Adafruit Circuit Playground Bluefruit.


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

MattPackwood
 
Posts: 75
Joined: Wed Jul 23, 2014 9:13 pm

Re: Error in Compiling Example(s)

by dastels on Thu Jan 13, 2022 9:13 am

The first thing to verify is that all board support packages and libraries are up to date.

Dave

dastels
 
Posts: 8486
Joined: Tue Oct 20, 2015 3:22 pm

Re: Error in Compiling Example(s)

by MattPackwood on Sat Jan 15, 2022 1:08 pm

I installed them to try this, I have 1.3

MattPackwood
 
Posts: 75
Joined: Wed Jul 23, 2014 9:13 pm

Re: Error in Compiling Example(s)

by dastels on Sat Jan 15, 2022 1:42 pm

OK. I see the line
Code: Select all | TOGGLE FULL SIZE
Multiple libraries were found for "Adafruit_TinyUSB.h"


My guess is that it's picking up an old copy. Search your system for that file that not in /Users/mattpackwood/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/ and delete that copy of the library (not just that one header).

Dave

dastels
 
Posts: 8486
Joined: Tue Oct 20, 2015 3:22 pm

Re: Error in Compiling Example(s)

by dastels on Sat Jan 15, 2022 1:43 pm

Alternatively delete all copies/versions of the library you find and reinstall it. Maybe start by uninstalling the one from the library manager in Arduino.

Dave

dastels
 
Posts: 8486
Joined: Tue Oct 20, 2015 3:22 pm

Re: Error in Compiling Example(s)

by MattPackwood on Sat Jan 15, 2022 7:18 pm

I completely uninstalled Arduino (using Clean My Mac) and reinstalled (using Homebrew), updated the Adruino library, installed the Adafruit library... same error...

MattPackwood
 
Posts: 75
Joined: Wed Jul 23, 2014 9:13 pm

Re: Error in Compiling Example(s)

by dastels on Sat Jan 15, 2022 7:31 pm

you got rid of all directories in your home dir having to do with Arduino, including any hidden ones (e.g. I have a .arduino15 laying around.

Dave

dastels
 
Posts: 8486
Joined: Tue Oct 20, 2015 3:22 pm

Re: Error in Compiling Example(s)

by MattPackwood on Sat Jan 22, 2022 2:29 pm

I have tried that, no joy....

Is there a list of where / what I need to clean up (in case I missed something)

Matt

MattPackwood
 
Posts: 75
Joined: Wed Jul 23, 2014 9:13 pm

Re: Error in Compiling Example(s)

by dastels on Sat Jan 22, 2022 2:52 pm

I have ~/Arduino and ~/.arduino15

Dave

dastels
 
Posts: 8486
Joined: Tue Oct 20, 2015 3:22 pm

Re: Error in Compiling Example(s)

by MattPackwood on Sat Jan 22, 2022 5:04 pm

Hmm, I am on an iMac, I have neither...

MattPackwood
 
Posts: 75
Joined: Wed Jul 23, 2014 9:13 pm

Re: Error in Compiling Example(s)

by dastels on Sat Jan 22, 2022 11:59 pm

MattPackwood wrote:Hmm, I am on an iMac, I have neither...


Weird. I don't see why it would be that different (I'm on Ubuntu).

Dave

dastels
 
Posts: 8486
Joined: Tue Oct 20, 2015 3:22 pm

Re: Error in Compiling Example(s)

by MattPackwood on Wed Jan 26, 2022 8:36 pm

I followed the instructions in https://support.arduino.cc/hc/en-us/articles/360021325733-How-to-do-a-complete-uninstall-of-the-Arduino-IDE and cleaned up my install.

Then I follow the instructions in https://learn.adafruit.com/adafruit-circuit-playground-bluefruit/arduino-support-setup
When I add the feed for the Adafruit Boards (adding
Code: Select all | TOGGLE FULL SIZE
https://www.adafruit.com/package_adafruit_index.json
to the additional boards, I get the error below when I open the board manager.
Attachments
Screen Shot 2022-01-26 at 7.31.15 PM.png
Screen Shot 2022-01-26 at 7.31.15 PM.png (133.04 KiB) Viewed 5 times

MattPackwood
 
Posts: 75
Joined: Wed Jul 23, 2014 9:13 pm

Re: Error in Compiling Example(s)

by dastels on Wed Jan 26, 2022 8:49 pm

Have you tried over a period of time (hours). I've seen it be unreachable at times. It's the internet, after all.

Dave

dastels
 
Posts: 8486
Joined: Tue Oct 20, 2015 3:22 pm

Please be positive and constructive with your questions and comments.


cron