Errors trying to compile arcada code on CLUE Board

For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Post Reply
User avatar
simonspc
 
Posts: 5
Joined: Thu Apr 03, 2014 1:10 pm

Errors trying to compile arcada code on CLUE Board

Post by simonspc »

I am trying to compile code with the arcada library in the Arduino IDE but am encountering errors even while trying to compile the examples. I am using Arduino IDE 2.2.1 and arcada library version 2.5.7 and getting the following error in all examples.

C:\Users\Pete\Documents\Arduino\libraries\Adafruit_Arcada_Library\Adafruit_Arcada_USBMSD.cpp:9:8: error: 'Adafruit_USBD_MSC' does not name a type; did you mean 'Adafruit_USBD_CDC'?
9 | static Adafruit_USBD_MSC usb_msc;
| ^~~~~~~~~~~~~~~~~
| Adafruit_USBD_CDC
C:\Users\Pete\Documents\Arduino\libraries\Adafruit_Arcada_Library\Adafruit_Arcada_USBMSD.cpp: In member function 'bool Adafruit_Arcada_SPITFT::filesysBeginMSD(Arcada_FilesystemType)':
C:\Users\Pete\Documents\Arduino\libraries\Adafruit_Arcada_Library\Adafruit_Arcada_USBMSD.cpp:61:5: error: 'usb_msc' was not declared in this scope
61 | usb_msc.setID("Adafruit", "SD Card", "1.0");
| ^~~~~~~
C:\Users\Pete\Documents\Arduino\libraries\Adafruit_Arcada_Library\Adafruit_Arcada_USBMSD.cpp:98:5: error: 'usb_msc' was not declared in this scope
98 | usb_msc.setID("Adafruit", "SPI Flash", "1.0");
| ^~~~~~~

exit status 1

Compilation error: exit status 1

User avatar
dastels
 
Posts: 14278
Joined: Tue Oct 20, 2015 3:22 pm

Re: Errors trying to compile arcada code on CLUE Board

Post by dastels »

I see this mostly if I have an old library hanging around. Make sure *everything* is up to date: libraries and boards.

During linking, does it complain about multiple copies of a library being found?

Dave

User avatar
simonspc
 
Posts: 5
Joined: Thu Apr 03, 2014 1:10 pm

Re: Errors trying to compile arcada code on CLUE Board

Post by simonspc »

It doesn't complain about duplicate libraries. I can't find any old libraries hanging around but I will have another look.

User avatar
dastels
 
Posts: 14278
Joined: Tue Oct 20, 2015 3:22 pm

Re: Errors trying to compile arcada code on CLUE Board

Post by dastels »

Have you updated them using the library manager in Arduino? Just select "Updatable" in the type dropdown.

Dave

User avatar
simonspc
 
Posts: 5
Joined: Thu Apr 03, 2014 1:10 pm

Re: Errors trying to compile arcada code on CLUE Board

Post by simonspc »

Says it is up to date.

User avatar
dastels
 
Posts: 14278
Joined: Tue Oct 20, 2015 3:22 pm

Re: Errors trying to compile arcada code on CLUE Board

Post by dastels »

OK..; but all libraries and the relevate board support packages?

Dave

Post Reply
Please be positive and constructive with your questions and comments.

Return to “CLUE Board”