adafruit / Adafruit_TinyUSB_Arduino

Arduino library for TinyUSB
MIT License
488 stars 130 forks source link

msc_file_explorer bugs #342

Closed Stass48 closed 1 year ago

Stass48 commented 1 year ago

Operating System

Windows 10

Arduino IDE version

Arduino IDE v2.2.1

Board

Raspberry Pi Pico

ArduinoCore version

3.6.0 (by Earle F. ...)

TinyUSB Library version

2.2.5

Sketch as ATTACHED TXT

Like in Example msc_file_explorer.ino.

Compiled Log as ATTACHED TXT

Sketch uses 77556 bytes (3%) of program storage space. Maximum is 2093056 bytes. Global variables use 25872 bytes (9%) of dynamic memory, leaving 236272 bytes for local variables. Maximum is 262144 bytes. Resetting COM10 Converting to uf2, output size: 201728, start address: 0x2000 Scanning for RP2040 devices Flashing L: (RPI-RP2) Wrote 201728 bytes to L:/NEW.UF2

(All are OK)

What happened ?

If I use the code from the example as is, then outputting text to the port (function Serial.println()) does not work. If I change Serial to Serial1, I can get output from the GP0 pin.

How to reproduce ?

Just compile Example and flash to Raspberry.

Debug Log

No response

Screenshots

No response

hathach commented 1 year ago

Will it work if you uncomment and wait for Serial to connect before runniing the code ?

Stass48 commented 1 year ago

Serial.begin(115200); delay(1000);

Are solved this problem :)