Skip to content

Can't disable mass storage for the Pimoroni tiny 2040 #4417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ArielWolle opened this issue Mar 15, 2021 · 6 comments · Fixed by #4462
Closed

Can't disable mass storage for the Pimoroni tiny 2040 #4417

ArielWolle opened this issue Mar 15, 2021 · 6 comments · Fixed by #4462
Milestone

Comments

@ArielWolle
Copy link

ArielWolle commented Mar 15, 2021

Error when building lastest firmware (git clone https://github.com/adafruit/circuitpython.git)

Code/REPL

adding the line: CIRCUITPY_USB_MSC = 0
to /ports/raspberrypi/boards/pimoroni_tiny2040/mpconfigboard.mk results in a build error

Behavior

image

Description

Trying to disable mass storage as i need to write to the tiny 2040 using the storage module but dont want to eject every time i plug it in. Being used as an HID device so needs to be plugged into data and power of usb not just power. Have not tried any other rp2040 boards, just the tiny 2040.

Removing this line resolves the issue.

@ArielWolle ArielWolle added the bug label Mar 15, 2021
@ladyada
Copy link
Member

ladyada commented Mar 16, 2021

@ArielWolle wanna try submitting a PR where the line is behind an #ifdef or #ifnef (the url isnt working)

@dhalbert
Copy link
Collaborator

We thought this was fixed by #4283, which was merged, so it should be in the latest source base. Could you paste the source URL again?

@tannewt tannewt added the usb label Mar 16, 2021
@tannewt tannewt added this to the Long term milestone Mar 16, 2021
@ArielWolle
Copy link
Author

ArielWolle commented Mar 16, 2021

Just tried rebuilding again using "git clone https://github.com/adafruit/circuitpython.git" and same issue occurs. But the build works as soon as I take that line out

EDIT: worded it super badly

@deshipu
Copy link

deshipu commented Mar 16, 2021

It's possible it worked with my test board because I had CIRCUITPY_STORAGE disabled.

@ArielWolle which line exactly? Your link point to nowhere.

@ArielWolle
Copy link
Author

ArielWolle commented Mar 16, 2021

I added the line
CIRCUITPY_USB_MSC = 0
to the bottom of:
https://github.com/adafruit/circuitpython/blob/1be5ca7881a8aa8d32a783bc6a94994886463c30/ports/raspberrypi/boards/pimoroni_tiny2040/mpconfigboard.mk

This is what my mpconfigboard.mk board looks like

image

@miclooking
Copy link

I added the line
CIRCUITPY_USB_MSC = 0
to the bottom of:
https://github.com/adafruit/circuitpython/blob/1be5ca7881a8aa8d32a783bc6a94994886463c30/ports/raspberrypi/boards/pimoroni_tiny2040/mpconfigboard.mk

This is what my mpconfigboard.mk board looks like

image

I get the same error when adding CIRCUITPY_USB_MSC = 0 in mpconfigboard.mk for Raspberry Pi Pico.
Is there any solution for this?
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants