SD Card reader problem
Philldapill
Posts: 1,283
I've been having trouble trying to get a simple SD Card to work with the prop. It's a 512MB, SanDisk SD Card. I'm going to attach a schematic of how I have it set up. I have tried formatting the card through a card reader. I used the windows formatting utility to do this and the only two options, as far as FAT formatting goes, were "FAT" and "FAT32". As I understand it, FAT is FAT16, which I need. When I do not have anything connected to the pins(8..11), I get error -20. When I have the card connected, or the pull up resistors, I get the "InitSDCard mount" error string. I have no idea what's going on but I can answer any troubleshooting questions if you guys can help.
Comments
(Hope it helps)
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with the Protoboard? - Propeller Cookbook
Got an SD card? - PropDOS
A Living Propeller FAQ - The Propeller Wiki
(Got the Knowledge? Got a Moment? Add something today!)
mode = "w" deletes the file, then opens an empty new file
mode = "a" positions the file at the end and opens it for writing
mode = "r" opens the file for reading (writing not allowed)
mode = "d" deletes the file
I don't know why you're getting the error. The openFile routine in DongleBasic just calls Rokicki's popen routine
if the filename doesn't start with a colon (":"). A leading colon opens the file using a 32K EEPROM page instead
of the SD card.
mass.dec and mass.str should work once the file is opened for writing.
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[noparse][[/noparse]\]^_`abcdefghijklmnopqrstuvwxyz{|}~€
·I loaded up donglebasic and I don't get anything on either propterminal or hyperterminal. I don't have an eeprom hooked up at the moment("Don't ask if you have kids"). Does the dongle require an eeprom to work correctly? Can I disable till my order comes in from parallax?
Another problem is changing the baudrate on propterminal. It whites out all the speeds and I can't change it to 9600.
Any help appriciated.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mosquito: An animal which buzzes in your ear and never stops. He may byte you, he may nibble you, but you will know you were bit.
Technologically challenged individual, Please have pity.
BB_FullDuplexSerial is a modified version of the FullDuplexSerial driver that includes a few extra methods mostly for handling a "break key" and a configurable receive and transmit buffer size with the sizes defined in BB_Definitions.spin.
To read a file, you have to open it in read mode ("r"), then you can use getByte (or readFile). In the Basic interpreter, you would use READ or FILE as a function call in an expression.
mosquito56,
I've not tested any of the FemtoBasic derivatives without an EEPROM connected. They should work. I normally download to RAM for testing purposes. DongleBasic checks for the presence of EEPROM when it's looking for a saved program to automatically run, but will ignore the EEPROM if there's any error.
I've used Hyperterminal as a console for DongleBasic. It seems to work fine. I haven't tried PropTerminal and I can't help you there.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mosquito: An animal which buzzes in your ear and never stops. He may byte you, he may nibble you, but you will know you were bit.
Technologically challenged individual, Please have pity.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mosquito: An animal which buzzes in your ear and never stops. He may byte you, he may nibble you, but you will know you were bit.
Technologically challenged individual, Please have pity.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with the Protoboard? - Propeller Cookbook
Got an SD card? - PropDOS
A Living Propeller FAQ - The Propeller Wiki
(Got the Knowledge? Got a Moment? Add something today!)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.