Pyboard Won't Recognize Healthy SD Card

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
tomrogue
Posts: 5
Joined: Mon Jun 29, 2015 11:13 pm

Pyboard Won't Recognize Healthy SD Card

Post by tomrogue » Wed Dec 16, 2015 12:41 am

Hey There,

So I am trying to boot the pyboard from an SD card with no luck.
The SD Card is a 16GB Class 10 Sony SDHC and I am running the most current firmware for the pyboard (pybv10-2015-12-16-v1.5.1-120-g130fde8.dfu). The SD card is formatted properly and has no sector/cluster issues.
The card is easily read by every PC I have tested it with and I have tried booting from the card in HID and MSC modes.
I have also confirmed that the pyboard itself is not ever seeing the SD card by running:

Code: Select all

>>>import sys
>>> sys.path
and only ever receiving:

Code: Select all

['', '/flash', '/flash/lib']
I have yet to try the board with different SD cards however. I was wondering if anyone has any recommendations regarding what type of SD cards work best with the pyboard in terms of Class, memory size, HC/XC and manufacturer.

Thanks so much for your help!

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Pyboard Won't Recognize Healthy SD Card

Post by dhylands » Wed Dec 16, 2015 1:15 am

I just happened to purchase some 8Gb and 16Gb Kingston class 10 HC U1 cards.

The 8 Gb one seems to work fine. The 16 Gb sort of works, but with USB Mass Storage enabled my USB Serial link goes down after a short period of time.

With USB Mass Storage disabled, it seems to work fine (i.e. I can copy files into and out of the sdcard using rshell.py with no issues).

Both cards showed up in sys.path.

So I'd definitely try with a smaller card and see if that helps. I believe that card bigger than 2Gb use a slighly different protocol that the smaller card.

If nothing works at all, then you may have a bad sdcard connector on your board (or a cold solder joint or something).

User avatar
JonHylands
Posts: 69
Joined: Sun Dec 29, 2013 1:33 am

Re: Pyboard Won't Recognize Healthy SD Card

Post by JonHylands » Wed Dec 16, 2015 3:03 pm

I've been using a Kingston 16 GB Class 10 HC U1 uSD card in Roz for quite a while now. Note that I use rshell.py to manage it, so I have USB Mass Storage disabled.

Zero issues so far.

This is a picture of the card I'm using: https://app.box.com/s/cu9dgw45v0l7e1ni32chpieplh6hkqit

This is what I get:

>>> import sys
>>> sys.path
['', '/flash', '/flash/lib', '/sd', '/sd/lib', '/sd/bioloid3']

tomrogue
Posts: 5
Joined: Mon Jun 29, 2015 11:13 pm

Re: Pyboard Won't Recognize Healthy SD Card

Post by tomrogue » Wed Dec 16, 2015 6:49 pm

Thanks for the tips guys!

I'll try using rshell.py and smaller sd cards (they're kinda hard to come across these days though). Hopefully that'll do the trick.

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Pyboard Won't Recognize Healthy SD Card

Post by dhylands » Wed Dec 16, 2015 6:59 pm

Also, are you running recent firmware?

I know that there were issues with larger sdcards from a quite a while ago. I've added a todo item to my list to see why the 16 Gb card is acting up with USB Mass Storage.

The fact that you don't see /sd in your sys.path suggests that you're running into a slightly different problem.

Post Reply