platformio / platform-raspberrypi

Raspberry Pi: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/raspberrypi
Apache License 2.0
72 stars 93 forks source link

Windows: "This device cannot start. (Code 10)" #58

Closed Caian closed 11 months ago

Caian commented 11 months ago

I have a code for a simple macro pad using the raspberry platform with arduino framework, and it uses the PluggableUSBHID, USBKeyboard and USBMouse that are included with the framework, plus the Serial is also printing through USB.

It works fine on Linux, but Windows 10/11 fails to start the device with a STATUS_DEVICE_DATA_ERROR code.

I saw similar issues with pico-sdk and a workaround for a hardware bug that manually sleeps for 800us, but I haven't seen anything for PlatformIO.

Is there anything I'm missing?

valeros commented 11 months ago

Hi @Caian, it seems that your problem has nothing to do with PlatformIO itself, probably there is an issue with Arduino framework or Windows drivers for your device which is out of scope for this repository.