Skip to content
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

examples/basic/sdtest.py doesn't work on my picovision #96

Open
cutecprog opened this issue Mar 25, 2024 · 2 comments
Open

examples/basic/sdtest.py doesn't work on my picovision #96

cutecprog opened this issue Mar 25, 2024 · 2 comments

Comments

@cutecprog
Copy link

I get this error when I try to run this on my picovision.

Traceback (most recent call last):
File "<stdin>", line 11, in <module>
OSError: [Errno 19] ENODEV

Mostly just trying to figure out how to use an sdcard in micropython. I'm not super knowable in this area and any help would be appreciated.

@helgibbons
Copy link
Contributor

helgibbons commented Mar 26, 2024

What kind of SD card are you using?

You could try formatting it as FAT32 and see if that gets it talking? There's some instructions how to do that here: https://learn.pimoroni.com/article/getting-started-with-picovision#how-to-play-doom

I think MicroPython also throws a (not very descriptive) error if you try to mount an SD card twice without unmounting it - so it could be worth trying an os.umount("/sd") or resetting the board and running the example again?

@cutecprog
Copy link
Author

cutecprog commented Mar 26, 2024

Thank you for responding. Started by trying os.umount("/sd") before mounting which gave me the error OSError: [Errno 22] EINVAL. I formatted the SD card as fat32 with gparted previously. But to be sure I used the raspberry pi imager as outlined in the doom installation you linked. And that worked! I'll chalk this up to not understanding gparted.

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

No branches or pull requests

2 participants