adafruit / adafruit/Adafruit_TinyUSB_Arduino

Pico 2 W not working

Open
#543 3 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
C
Stars
654
Forks
183
PR merge metrics
No merged PRs in 30d

Description

### Operating System

MacOS

### Arduino IDE version

2.3.5

### Board

Raspberry Pi Pico 2 W

### ArduinoCore version

4.5.1

### TinyUSB Library version

Release version

### Sketch as ATTACHED TXT

examples/Adafruit_TinyUSB/DualRole/Simple/device_info

### Compiled Log as ATTACHED TXT

[compile_output.txt](https://github.com/user-attachments/files/21369003/compile_output.txt)

### What happened ?

90% of the time, when a USB device is plugged in, no device info is printed to the console

On occasion the system works, and device info is printed to console. I've noticed however that:
"Device disconnected" does not get printed when a device is unplugged. Instead it gets printed when the device is plugged back in, alongside other info such as "Device connected"

I've tested this setup with a XIAO RP2040 and a QT Py 2040, and they have worked fine

I've tested this with the Pico using different D+ D- Pins

### How to reproduce ?

1. Open up the examples/Adafruit_TinyUSB/DualRole/Simple/device_info
2. Connect a Pico 2 W via USB to Arduino
3. Connect VBUS, GND, D+, D- pins to a USB port header
4. Upload sketch
5. Connect a USB Device e.g. a keyboard, and lookout for console print information

### Debug Log

_No response_

### Screenshots

![Image](https://github.com/user-attachments/assets/e21cd618-3661-4037-9036-4ce35707d8c2)

### I have checked existing issues, pr, discussion and documentation

- [x] I confirm I have checked existing issues, pr, discussion and documentation.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with examples/Adafruit_TinyUSB/DualRole/Simple/device_info and the attached compile_output.txt; reproduce the issue on the Pico 2 W using the listed wiring and compare it with the working XIAO RP2040 and QT Py 2040 setups. Done means device information and connect/disconnect messages appear at the corresponding USB events.

Written by the indexing model from the issue text.

Assessment

Tech stack
arduino, c
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.