# No such device, circutpython

**URL:** <https://forums.pimoroni.com/t/no-such-device-circutpython/23648>\
**Category:** Support\
**Created:** [December 29, 2023, 7:09am UTC](https://forums.pimoroni.com/t/no-such-device-circutpython/23648 "2023-12-29T07:09:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![PokeyManatee4](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pokeymanatee4/32/10452_2.png) [@PokeyManatee4](https://forums.pimoroni.com/u/PokeyManatee4)\
**Post date:** [December 29, 2023, 7:09am UTC](https://forums.pimoroni.com/t/no-such-device-circutpython/23648/1 "2023-12-29T07:09:31Z")

</div>

im trying to call a sd card via circutpython but it just returns  
Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.  
code.py output:  
Filename:scott.wav  
Traceback (most recent call last):  
File “code.py”, line 13, in   
OSError: [Errno 19] No such device

---

<div class="post-metadata">

**Author:** ![Shoe](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Shoe](https://forums.pimoroni.com/u/Shoe)\
**Post date:** [December 29, 2023, 9:24am UTC](https://forums.pimoroni.com/t/no-such-device-circutpython/23648/2 "2023-12-29T09:24:10Z")

</div>

It looks like it isn’t detecting the sdcard holder, so either A) it isn’t wired up properly or B) the software is looking for it on the wrong pins. Can you post a photo of your setup and the code you’re using? (If you put three backticks ` before and after your code the forum formats it to be more readable).

---

<div class="post-metadata">

**Author:** ![RetiredWizard](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/retiredwizard/32/9775_2.png) [@RetiredWizard](https://forums.pimoroni.com/u/RetiredWizard)\
**Post date:** [December 29, 2023, 5:52pm UTC](https://forums.pimoroni.com/t/no-such-device-circutpython/23648/3 "2023-12-29T17:52:47Z")

</div>

I believe @PokeyManatee4 is using some sample code from [Adding CircuitPython support for PICO dv](https://forums.pimoroni.com/t/adding-circuitpython-support-for-pico-dv/22012)

The filename should be entered as **/sd/scott.wav**

---

<div class="post-metadata">

**Author:** ![PokeyManatee4](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pokeymanatee4/32/10452_2.png) [@PokeyManatee4](https://forums.pimoroni.com/u/PokeyManatee4)\
**Post date:** [December 29, 2023, 9:15pm UTC](https://forums.pimoroni.com/t/no-such-device-circutpython/23648/4 "2023-12-29T21:15:32Z")

</div>

i Will asap , i just woke up

---

<div class="post-metadata">

**Author:** ![PokeyManatee4](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pokeymanatee4/32/10452_2.png) [@PokeyManatee4](https://forums.pimoroni.com/u/PokeyManatee4)\
**Post date:** [December 29, 2023, 10:03pm UTC](https://forums.pimoroni.com/t/no-such-device-circutpython/23648/5 "2023-12-29T22:03:20Z")

</div>

I am using a pimoroni vga demo board

---

<div class="post-metadata">

**Author:** ![PokeyManatee4](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pokeymanatee4/32/10452_2.png) [@PokeyManatee4](https://forums.pimoroni.com/u/PokeyManatee4)\
**Post date:** [December 29, 2023, 10:19pm UTC](https://forums.pimoroni.com/t/no-such-device-circutpython/23648/6 "2023-12-29T22:19:16Z")

</div>

![IMG_20231229_161851](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/d/d3a73314617a75c113e5b2b9501d653d1460f55a.jpeg)

---

<div class="post-metadata">

**Author:** ![RetiredWizard](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/retiredwizard/32/9775_2.png) [@RetiredWizard](https://forums.pimoroni.com/u/RetiredWizard)\
**Post date:** [December 29, 2023, 10:48pm UTC](https://forums.pimoroni.com/t/no-such-device-circutpython/23648/7 "2023-12-29T22:48:55Z")

</div>

I don’t believe there is official CircuitPython firmware for the VGA Demo Base, but if you flashed the PICO with either the DVI Demo Base firmware or just the standard PICO firmware, you can probably get the audio and SD card to work, you’ll just have to use the correct pins.

Looking at the reference documents, it looks like you should use GP27 for the BIT\_CLOCK, GP26 for WORD\_SELECT and GP28 for DATA.

i.e.:

```auto
audiobusio.I2SOut(board.GP27, board.GP28, board.GP26)

```

It also looks to me like the SD card is wired the same on both the VGA and DVI boards so if you’re using the DVI firmware the sample code should work or if you’re using the standard PICO firmware then you should replace the SD card pin names with the generic pin names.  
i.e.:

```auto
spi = bitbangio.SPI(board.GP5,board.GP18,board.GP19)
cs = digitalio.DigitalInOut(board.GP22)
sd = adafruit_sdcard.SDCard(spi,cs)

```

---

<div class="post-metadata">

**Author:** ![PokeyManatee4](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pokeymanatee4/32/10452_2.png) [@PokeyManatee4](https://forums.pimoroni.com/u/PokeyManatee4)\
**Post date:** [December 29, 2023, 11:26pm UTC](https://forums.pimoroni.com/t/no-such-device-circutpython/23648/8 "2023-12-29T23:26:44Z")

</div>

i flashed it with the dvi firmware, i know there isnt support for it but i did get audio working

---

<div class="post-metadata">

**Author:** ![PokeyManatee4](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pokeymanatee4/32/10452_2.png) [@PokeyManatee4](https://forums.pimoroni.com/u/PokeyManatee4)\
**Post date:** [December 29, 2023, 11:31pm UTC](https://forums.pimoroni.com/t/no-such-device-circutpython/23648/9 "2023-12-29T23:31:52Z")

</div>

sd card:same error  
it seems to throw this error at storage.mount(vfs,‘/sd’)

---

<div class="post-metadata">

**Author:** ![RetiredWizard](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/retiredwizard/32/9775_2.png) [@RetiredWizard](https://forums.pimoroni.com/u/RetiredWizard)\
**Post date:** [December 30, 2023, 12:23am UTC](https://forums.pimoroni.com/t/no-such-device-circutpython/23648/10 "2023-12-30T00:23:41Z")

</div>

You might try creating the /sd folder before attempting the mount. I didn’t think the change was in yet but the mount command is going to require the folder to exist soon.

Add

```auto
import os
os.mkdir('/sd')

```

before the storage.mount.

If that doesn’t work, try a different SD card and/or make sure it’s formatted as FAT16 or FAT32.

---

<div class="post-metadata">

**Author:** ![PokeyManatee4](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pokeymanatee4/32/10452_2.png) [@PokeyManatee4](https://forums.pimoroni.com/u/PokeyManatee4)\
**Post date:** [December 30, 2023, 4:12am UTC](https://forums.pimoroni.com/t/no-such-device-circutpython/23648/11 "2023-12-30T04:12:13Z")

</div>

new error while running that snippet  
OSError: [Errno 30] Read-only filesystem

---

<div class="post-metadata">

**Author:** ![RetiredWizard](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/retiredwizard/32/9775_2.png) [@RetiredWizard](https://forums.pimoroni.com/u/RetiredWizard)\
**Post date:** [December 30, 2023, 4:20am UTC](https://forums.pimoroni.com/t/no-such-device-circutpython/23648/12 "2023-12-30T04:20:36Z")

</div>

Probably the simplest thing would be to just create the /sd folder on the CIRCUITPY drive from you host computer (PC/Linux/Mac) and remove the code snippet that tried to create the folder.

If adding the folder doesn’t resolve the issue, then you can delete it again from the host computer.

---

<div class="post-metadata">

**Author:** ![PokeyManatee4](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pokeymanatee4/32/10452_2.png) [@PokeyManatee4](https://forums.pimoroni.com/u/PokeyManatee4)\
**Post date:** [December 30, 2023, 4:21am UTC](https://forums.pimoroni.com/t/no-such-device-circutpython/23648/13 "2023-12-30T04:21:26Z")

</div>

ive tried this multiple times  
OSError: [Errno 17] File exists

---

<div class="post-metadata">

**Author:** ![RetiredWizard](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/retiredwizard/32/9775_2.png) [@RetiredWizard](https://forums.pimoroni.com/u/RetiredWizard)\
**Post date:** [December 30, 2023, 4:32am UTC](https://forums.pimoroni.com/t/no-such-device-circutpython/23648/14 "2023-12-30T04:32:31Z")

</div>

Okay, that’s what should happen assuming the change hasn’t been merged yet, which I didn’t really think it had. Go ahead and delete the /sd folder.

My best guess at this point is that the SD card is somehow incompatible. Can you try another one? Ideally 4G to 32G in size and if possible freshly formatted with a FAT partition.

Just for testing purposes I’ve had success mounting SD cards with Raspbian Linux for a Raspberry Pi. The BOOT partition on those SD cards are typically a relatively small FAT partition. You don’t need (and probably don’t want) to format that for the test mount.

---

<div class="post-metadata">

**Author:** ![PokeyManatee4](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pokeymanatee4/32/10452_2.png) [@PokeyManatee4](https://forums.pimoroni.com/u/PokeyManatee4)\
**Post date:** [December 30, 2023, 4:33am UTC](https://forums.pimoroni.com/t/no-such-device-circutpython/23648/15 "2023-12-30T04:33:07Z")

</div>

the current one is 256mb rn

---

<div class="post-metadata">

**Author:** ![RetiredWizard](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/retiredwizard/32/9775_2.png) [@RetiredWizard](https://forums.pimoroni.com/u/RetiredWizard)\
**Post date:** [December 30, 2023, 4:37am UTC](https://forums.pimoroni.com/t/no-such-device-circutpython/23648/16 "2023-12-30T04:37:08Z")

</div>

I think technically that should work, but I’ve seen issues with individual SD cards that appear to work with other devices but won’t mount via CircuitPython.

---

<div class="post-metadata">

**Author:** ![PokeyManatee4](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pokeymanatee4/32/10452_2.png) [@PokeyManatee4](https://forums.pimoroni.com/u/PokeyManatee4)\
**Post date:** [December 30, 2023, 4:37am UTC](https://forums.pimoroni.com/t/no-such-device-circutpython/23648/17 "2023-12-30T04:37:45Z")

</div>

its not branded but i changed the sd card(128gb one), it worked

---

<div class="post-metadata">

**Author:** ![RetiredWizard](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/retiredwizard/32/9775_2.png) [@RetiredWizard](https://forums.pimoroni.com/u/RetiredWizard)\
**Post date:** [December 30, 2023, 4:38am UTC](https://forums.pimoroni.com/t/no-such-device-circutpython/23648/18 "2023-12-30T04:38:38Z")

</div>

It’s also possible that the I missed something and the VGA Demo base is different the the DVI Base. I don’t have one to test with.

---

<div class="post-metadata">

**Author:** ![PokeyManatee4](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pokeymanatee4/32/10452_2.png) [@PokeyManatee4](https://forums.pimoroni.com/u/PokeyManatee4)\
**Post date:** [December 30, 2023, 4:39am UTC](https://forums.pimoroni.com/t/no-such-device-circutpython/23648/19 "2023-12-30T04:39:15Z")

</div>

i dont see the sd card dir on the sys.path

---

<div class="post-metadata">

**Author:** ![RetiredWizard](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/retiredwizard/32/9775_2.png) [@RetiredWizard](https://forums.pimoroni.com/u/RetiredWizard)\
**Post date:** [December 30, 2023, 4:42am UTC](https://forums.pimoroni.com/t/no-such-device-circutpython/23648/20 "2023-12-30T04:42:03Z")

</div>

The mounted drive shouldn’t automatically be added to sys.path but if you put your scott.wav file on it, then enter `/sd/scott.wav` at the filename prompt, the script should find it and play it.

[Next page](https://forums.pimoroni.com/t/no-such-device-circutpython/23648.md?page=2)
