/sd gone

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
smhodge
Posts: 86
Joined: Tue Jan 22, 2019 2:16 am
Location: Kirkland, WA, USA

/sd gone

Post by smhodge » Fri May 29, 2020 3:09 pm

I now have 2 pyboard v1.1's that /sd has vanished from: rshell gives a "cannot access /sd" message and sure enough code that used to boot just fine from the /sd card no longer does (the code is still there if I look at it with a PC).

I can copy copy to /flash with rshell and it will boot and run just fine from /flash, just no longer from /sd. I have done a mass erase and reloaded the firmware (1.12) but that did not solve the issue. Nor does using another, newly-formatted card.

It is possible this happened with a hardware power glitch on the motherboard the pyboard is mounted on. That said, is there a way to resurrect the /sd card access on the pyboard?

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: /sd gone

Post by pythoncoder » Fri May 29, 2020 6:51 pm

What happens if you issue the following at the REPL:

Code: Select all

import os
os.listdir('/')  # should see ['flash', 'sd']
os.listdir('/sd')  # should produce a list of files on the SD card
If you don't get this result, and the SD card can be read and written when used on a PC, I would suspect a hardware issue.
Peter Hinch
Index to my micropython libraries.

smhodge
Posts: 86
Joined: Tue Jan 22, 2019 2:16 am
Location: Kirkland, WA, USA

Re: /sd gone

Post by smhodge » Fri May 29, 2020 6:57 pm

I only get 'flash' listed.

So by hardware issue do you mean (a) specifically with respect to the /sd card and (b) unfixable except by replacing the entire pyboard?

Thanks

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: /sd gone

Post by pythoncoder » Fri May 29, 2020 7:11 pm

In six years' regular use of multiple Pyboards I've never seen that happen - if it's happened to two boards it's beyond coincidence. Something must be causing this.

The boards clearly aren't recognising the presence of the SD card. Aside from damaged or dirty SD connector contacts I suspect the Pyboards have been electrically damaged in some way. With electronic testgear the fault could doubtless be found, but in the absence of the necessary kit (and skills) replacing the boards is your only recourse.
Peter Hinch
Index to my micropython libraries.

User avatar
T-Wilko
Posts: 30
Joined: Thu Sep 19, 2019 8:08 am

Re: /sd gone

Post by T-Wilko » Sat May 30, 2020 9:39 am

smhodge wrote:
Fri May 29, 2020 3:09 pm
I now have 2 pyboard v1.1's that /sd has vanished from: rshell gives a "cannot access /sd" message and sure enough code that used to boot just fine from the /sd card no longer does (the code is still there if I look at it with a PC).
Perhaps best to post your code for mounting the sd here. May also be that you're using outdated code examples for mounting an sd to a pyboard, as there are plenty of dud examples floating about. (just encountered one myself with mounting an sd to a pyboard d-series, official docs code too)

smhodge
Posts: 86
Joined: Tue Jan 22, 2019 2:16 am
Location: Kirkland, WA, USA

Re: /sd gone

Post by smhodge » Sat May 30, 2020 2:53 pm

It happens whether using the rshell utility by dhylands or by simply having the code, including boot.py, on the sd card (which is known to work fine on other pyboards).

I'm pretty convinced it is a hardware issue. I recently modified my motherboard slightly and had it refabricated, and it's with 2 of these new refabricated boards that it happened. The prior versions of the motherboards worked just fine. Maybe the fabricator screwed up somehow, even though I thoroughly prechecked them for shorts, etc.

I've been over the modifications countless times and can't see how they would cause such catastrophic damage. Briefly, on one board, before total meltdown (so to speak) the 3V3 regulator on the pyboard was putting out 3.8 V.

At any rate, I've declared them to be demon boards and am doing a major redesign from scratch and having them refabricated.

Post Reply