Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

Circuitpython on Pyboard 1.1 HID USB Busy
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Circuitpython on Pyboard 1.1 HID USB Busy

by johnFitz on Wed Apr 15, 2020 5:23 am

Hi everyone,
i've some problems with the board in the description. In particular when I try to use the adafruit hid library, in the REPL i see an OS Error: USB busy. Since I'm new to this type of devices, I ask for your help.
Moreover when I flash the firmware with STM32Cube Programmer tool, the pyboard reboot but the drive name is not CIRCUITPY, but a windows generic one.
If someone could help me...
Thank you in advance!

Have a nice day!

johnFitz
 
Posts: 2
Joined: Wed Apr 15, 2020 5:17 am

Re: Circuitpython on Pyboard 1.1 HID USB Busy

by johnFitz on Wed Apr 15, 2020 9:56 am

Cross link post https://forum.micropython.org/viewtopic.php?f=6&t=8172

Adding info:
firmware used https://circuitpython.org/board/pyboard_v11/
library version 5.x https://circuitpython.org/libraries
REPL shows the correct version of the firmware and Windows shows a drive called New drive instead of CIRCUITPY.

johnFitz
 
Posts: 2
Joined: Wed Apr 15, 2020 5:17 am

Re: Circuitpython on Pyboard 1.1 HID USB Busy

by tannewt on Wed Apr 15, 2020 4:18 pm

Hi John, unfortunately that is a bad error message. HID isn't enabled on the STM32F405 by default because it has limited USB endpoints. We only enable CDC and MSC: https://github.com/adafruit/circuitpyth ... oard.mk#L5

The drive name is set when the file system is formatted so it's likely ok. Not having it CIRCUITPY just means it existed before CircuitPython was installed.

You could try enabling HID instead of MSC but that will make it tough to edit code.

tannewt
 
Posts: 1685
Joined: Thu Oct 06, 2016 8:48 pm

Please be positive and constructive with your questions and comments.