If you're using the SD routnine from obex... When you start the cog/SD driver, it will go through an initialization routine with the SD card. This will return a value to you. Certain values indicate certain things. I believe the SD routine will return -1 with a successful startup. I believe it will return 13 with a failed startup. So, the code would look something like this:
text.dec(cognew(sdroutine, pin))
That's a bit of pseudocode, enough to note that you would want to print the return from the start sequence. Try that, and let us know what you get.
EDIT: In the SD routine from OBEX, you should run the sdrw_test.spin routine. This will confirm hardware. I was wrong, positive values are good, negative values are bad. Read tom's comments at the top of fsrw.spin. If this fails, then you have a hardware issue. It's a pretty bulletproof test.
I finally got it working today, actually.· It was working all along, but I could not think of a way to test it. Finally, in BOEBOT basic, I did a "FILES" statement. This listed all of the files on the SD. It worked fine.
Comments
text.dec(cognew(sdroutine, pin))
That's a bit of pseudocode, enough to note that you would want to print the return from the start sequence. Try that, and let us know what you get.
-Parsko
-Parsko
Did you get your SD working yet? What pins are you using to connect it?
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with a Propeller Protoboard?
Check out: Introduction to the Proboard & Propeller Cookbook 1.4
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card connected? - PropDOS
they were shown in a previous post in the questions to mike.
I'd like to assemble a FemtoBASIC test for you.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with a Propeller Protoboard?
Check out: Introduction to the Proboard & Propeller Cookbook 1.4
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card connected? - PropDOS
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A complex design is the sign of an inferior designer." - Jamie Hyneman, Myth Buster
DGSwaner