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

Tools->Menu->USB Stack
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Tools->Menu->USB Stack

by jpavany333 on Sun Apr 12, 2020 1:18 pm

Hi,

I am trying to use WebUSB and TinyUSB on a Arduino Nano 33 IoT.

I am trying to follow the "Using WebUSB with Arduino and TinyUSB" guide from here:

https://learn.adafruit.com/using-webusb ... -selection

I have Arduino IDE 1.8.12.

I don't see "Tools->Menu->USB Stack"

I get the following error when compiling my sketch:

In file included from C:\Users\pavan\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/Adafruit_USBD_HID.h:28:0,

from C:\Users\pavan\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/Adafruit_TinyUSB.h:28,

from C:\Users\pavan\Documents\Arduino\sketch_apr12a\sketch_apr12a.ino:28:

C:\Users\pavan\Documents\Arduino\libraries\Adafruit_TinyUSB_ArduinoCore-master/Adafruit_TinyUSB_Core.h:29:2: error: #error TinyUSB is not selected, please select it in Tools->Menu->USB Stack

#error TinyUSB is not selected, please select it in Tools->Menu->USB Stack

^~~~~

C:\Users\pavan\Documents\Arduino\libraries\Adafruit_TinyUSB_ArduinoCore-master/Adafruit_TinyUSB_Core.h:32:10: fatal error: tusb.h: No such file or directory

#include "tusb.h"

^~~~~~~~

compilation terminated.

exit status 1
Error compiling for board Arduino NANO 33 IoT.

What do I need to do to get that to appear?

Thanks.

jpavany333
 
Posts: 6
Joined: Fri Jul 26, 2019 1:50 pm

Re: Tools->Menu->USB Stack

by dastels on Sun Apr 12, 2020 9:13 pm

Have you installed the Adafruit Tiny USB library?

Are all your libraries and board support packages up to date?

Dave

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

Re: Tools->Menu->USB Stack

by jpavany333 on Mon Apr 13, 2020 10:49 am

yes
Adafruit TinyUSB 0.8.2

jpavany333
 
Posts: 6
Joined: Fri Jul 26, 2019 1:50 pm

Re: Tools->Menu->USB Stack

by jpavany333 on Mon Apr 13, 2020 12:31 pm

I changed my board type to "Adafruit Circuit Playground Express" as used in the tutorial link above and now the Tools > USB Stack: > TinyUSB appears. And the tutorial sketch compiles without errors.

I don't have a "Adafruit Ciruit Playground Express" but I do have a "Adafruit ItsyBitsy M4".

I tried compiling for a Adafruit ItsyBitsy m4 and the Tools > USB Stack: > TinyUSB appears. And the tutorial sketch compiles without errors.

I have not tried to actually use the WebUSB stuff yet.

So it seems that TinyUSB is not supported on the Arduino Nano 33 IoT.

jpavany333
 
Posts: 6
Joined: Fri Jul 26, 2019 1:50 pm

Re: Tools->Menu->USB Stack

by jpavany333 on Mon Apr 13, 2020 12:33 pm

And here is the fixed URL, the one initially posted got corrupted somehow and I didn't notice that:

https://learn.adafruit.com/using-webusb ... b/overview

jpavany333
 
Posts: 6
Joined: Fri Jul 26, 2019 1:50 pm

Re: Tools->Menu->USB Stack

by dastels on Mon Apr 13, 2020 1:18 pm

I just found out that the Nano 33 IoT isn't supported by TinyUSB. Actually, it's only supported on Adafruit boards at the moment.

DAve

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

Re: Tools->Menu->USB Stack

by jpavany333 on Mon Apr 13, 2020 1:29 pm

Thank you for your time. I appreciate it.

jpavany333
 
Posts: 6
Joined: Fri Jul 26, 2019 1:50 pm

Please be positive and constructive with your questions and comments.