Problems with Adafruit_TinyUSB on my XIAO-Board

Hi,

I’m using the example midi_test for my XIAO-Board.
But I got the following errors.

C:\Users\Schmullus\AppData\Local\Arduino15\packages\Seeeduino\hardware\samd\1.8.4\cores\arduino\main.cpp: In function ‘int main()’:
C:\Users\Schmullus\AppData\Local\Arduino15\packages\Seeeduino\hardware\samd\1.8.4\cores\arduino\main.cpp:72:3: error: ‘Adafruit_TinyUSB_Core_init’ was not declared in this scope
Adafruit_TinyUSB_Core_init();
^~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Schmullus\AppData\Local\Arduino15\packages\Seeeduino\hardware\samd\1.8.4\cores\arduino\main.cpp:72:3: note: suggested alternative: ‘Adafruit_USBD_CDC’
Adafruit_TinyUSB_Core_init();
^~~~~~~~~~~~~~~~~~~~~~~~~~
Adafruit_USBD_CDC
exit status 1

The needed Adafruit-Library is available.

I have no idea.

Best

Erik

Hi there,
If i had to guess I would look to the board files? 1.0.0 or ?
NON-mbed
HTH
GL :slight_smile:

Hi,

can you please translate it for normal people :slight_smile:

Best

Erik

He means make sure your Arduino IDE has the correct board installed in the board manager and make sure the correct board is selected as the target before attempting to compile the sketch

you did not specify which XIAO you were trying to use, the different chipsets may have unique querks…

1 Like

Very well put… Ty
:wink:
HTH
GL :slight_smile:

Hi,

my settings seems to be normal for my board. XIAO SAMD21
Board: Deeeduino XIAO
USB Stack: TinyUSB

Best

Erik

not sure if this will help

no, it didn’t help! Adafruit-TinyUSB is part of the code, you install with the Seeeduino-XIAO-Board.
Normally there is no need to install it in addition. I tried it, but it failed!

Erik

Hi, did anyone find a solution for this problem?

I just tried to run Adafruit TinyUSB on my XIAO (SMD21) and got the same error.

me too. But with TinyUSB 0.10.5 i had no problems. After migrating to V2.2.2 I have that problem too.

Hello, I also had the same problem as you when using Seeed SAMD Board 1.8.4.

But after I updated 1.8.5, it was able to compile successfully. You can have a try