adafruit / circuitpython Public
forked from micropython/micropythonNew 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
SD Cards producing OSError 19 #245
Comments
NOT replicated on Feather M0 Adalogger! The above code works without error (Class 10 Sandisk card). |
This error can occur if the card isn't formatted. fabitencourt, does it work when connecting to a computer or in Arduino? |
The black Verbatim 16 G one wasn't formatted. I've formatted fat32 with gparted and still the same errors on the same places. After many trials finally the black lexar 16G worked one shot. I'm happy... |
Press any key to enter the REPL. Use CTRL-D to reload. Adafruit CircuitPython 2.0.0-rc.1 on 2017-09-01; Adafruit Feather M0 Adalogger with samd21g18
|
Adafruit CircuitPython 2.0.0-rc.1 on 2017-09-01; Adafruit Feather M0 Adalogger with samd21g18
|
Just saw the blue 16G on gparted and it had a 4 M not allowed. I've formatted on fat 32. I'll try with that too. No way. The only one is that Verbatin 16G black card you see on the photo. Lexar doesn't seems to work at all. Even if they work on arduino sketches. |
No way. Neither of Lexar cards are working. The black 4G and the blue 16 G too. Both Lexar cards don't seems to work for now. |
Did you get it working with a different card? I ended up with a Kodak card instead of Lexar but I'll give it a try today. |
I believe I'm seeing the same thing with a Samsung EVO Select card. It works with my Mac via card reader but produces an OSError 19 in CircuitPython. Looking at it now. |
I've downloaded the new version, candidate 2. I'll try it as soon as I can. I've noticed the DS3231 library is already there. Perfect. I'll give a try. |
response code and response data. Samsung EVO cards do not work otherwise. May fix adafruit/circuitpython#245
@fabitencourt can you please try this mpy (after unzipping)? Its for CircuitPython 2.x. What I found was that the Samsung cards I have don't like the chip select deinit and extra clocks between the read command response and the actual data. The fix is in this pull request. |
OK Scott, I just tried that version and it's not working better for me, even my verbatim 16 G that worked well before got stuck on: I've tried the last bundle candidate 2 and even if my Lexar doesn't work any better my verbatim 16G works like a charm. So I prefer the adafruit_sdcard.mpy from candidate 2 bundle. |
No rush! Thanks for the quick reply. |
@tannewt FYI - I am able to access a SanDisk 8GByte Class 10 card from my M0-Express via an Adalogger Featherwing. Using latest 2.0.0 and library bundle |
Ok! Thanks for the report @fabitencourt. I will buy some more cards off of Amazon. I expected the newer library to work better. Perhaps they are even pickier about the chip select line. The arduino library is also much faster in talking with the chips. |
In my opinion the new library adafruit_sdcard.mpy from bundle candidate 2
is the best I've used. But still doesn't work with my Lexar cards. But they
work very well with my sandisk 16G card. That's the one I'll use. Now I
will try the DS3231 library. That's essential to my logger project. It's
all like Christmas gifts all around....
… Ok! Thanks for the report @fabitencourt <https://github.com/fabitencourt>.
I will buy some more cards off of Amazon. I expected the newer library to
work better. Perhaps they are even pickier about the chip select line. The
arduino library is also much faster in talking with the chips.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#245 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGM2fiJVgUme53gVDLwkUwo7BouaW3UHks5shBRVgaJpZM4PPF38>
.
|
I am experiencing similar behaviour with the following:
Is anyone able to send the exact product description for an SD card that they have working with CircuitPython? Preferably 32GB or bigger. I'd like to order a card that is known to work. Thanks! |
In my opinion you're missing some files on circuitpy's directory. Personally mine is like this and is working with a 16 G Verbatim card... os.listdir() Have you formatted your card fat32 ? |
The necessary libraries are in the /lib folder. However, I reformatted Fat32 using gparted and that got things working. Thank you! |
My pleasure. Really glad to know it. That's exactly what happened in my case. Error 19 seems to mean: "card not formatted" and I've used gparted too. |
@cehiles glad that worked! |
Adafruit CircuitPython 2.0.0 on 2017-09-12; Adafruit Feather M0 Express with samd21g18
After the last line the terminal freezes, no reaction for at least 10 minutes. |
Adafruit CircuitPython 2.0.0 on 2017-09-12; Adafruit Feather M0 Express with samd21g18
Test of SD card in "Adalogger FeatherWing - RTC + SD Add-on". |
Ok, I've ordered Transcend, Verbatim and Lexar cards to test with. @meichr could you post a picture of the cards? I think I've tested a similar Samsung card and it worked ok. My test cards so far: |
@tannewt I've done the above tests with the library-2.0.0 bundle from Sep. 15th and thought that it already contained the above update from Sep 9th. My error! These cards work with the above Sep. 9th library update. |
Wups, looks like I forgot to request a review from @dhalbert on it! The fix is here: adafruit/Adafruit_CircuitPython_SD#1 |
But I forgot to thank you for the fixes :-) . |
https://forums.adafruit.com/viewtopic.php?f=60&t=114744
The text was updated successfully, but these errors were encountered: