Shop OBEX P1 Docs P2 Docs Learn Events
Help!!! Sd adapter!!! — Parallax Forums

Help!!! Sd adapter!!!

VaatiVaati Posts: 712
edited 2009-09-27 23:29 in Propeller 1
I made an sd card adapter but it does not work!· I have tried both femtobasic and propdos on it and it doesn't work...· I have a "Card Inserted" LED that has the cathode connected to the (-) supply and the anode is connected to the pins on the SD card that are for ground.

The wierd thing is, the LED is on for a second when the demo board is turned on, but once the program gets to the point where it's trying to connect to the SD card, the LED goes off.

Why?!?!?!?· cry.gif


Thanks.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
«13

Comments

  • RaymanRayman Posts: 14,851
    edited 2009-06-20 00:58
    Well, I had something like that when I tried to run an SD card at 5V... I didn't like it...

    Better check your card on a PC and see if it still works!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
  • VaatiVaati Posts: 712
    edited 2009-06-20 01:10
    Yes, it still works. I had accidentally plugged it into 5v on the demoboard for about 15 seconds, then yelled and quickly removed the power. I promptly inserted it into a laptop with a reader and--it worked.

    One thing--Do I need to have files on the SD card in order for FemtoBasic or PropDOS to work...? I don't have a single file on it, so....


    Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • rokickirokicki Posts: 1,000
    edited 2009-06-20 01:15
    No, but it needs to be formatted.

    Read the contents of

    http://tomas.rokicki.com/fat16work/README.txt

    thoroughly and let me know if you still have questions.
  • RaymanRayman Posts: 14,851
    edited 2009-06-20 01:21
    If a power led is going out, then you probably have one of the pins touching ground where it shouldn't...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
  • VaatiVaati Posts: 712
    edited 2009-06-20 01:25
    Quick question-- I can't seem to find anything that has an option for cluster size... When I right click on the card in My Computer, I selected Format... and then selected FAT then hit Start. It came up with a warning saying This will erase all previous data. Do you wish to continue? or something along those lines... So far, no harm done.


    I don't know if I did it right... I will check if it works now and get back to you.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • VaatiVaati Posts: 712
    edited 2009-06-20 01:28
    Okay.... I just tested it and it doesn't work...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • RaymanRayman Posts: 14,851
    edited 2009-06-20 02:01
    Perhaps you have DI&DO reversed...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
  • VaatiVaati Posts: 712
    edited 2009-06-20 02:24
    I was pretty sure I did it correctly, but I will check....

    Also, I just went to cmd prompt and I think I got it formatted into FAT16 with 32k in each allocation unit...

    I will keep you all posted on everything. smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-06-20 02:35
    Vaati,

    On my last board, I had some issues with the SD checking routine not
    seeing the SD card on bootup and reporting an error. These routines
    are in both Femtobasic and Propdos. I switched them out with a
    "reboot" when the error was detected and bypassed the issue.
    It seems that the card isn't startup up as fast as the rest of the
    project, and given a reboot it seems to catch up the 2nd time around.


    I haven't had time to debug the board with all the expo stuff going on.


    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.
  • VaatiVaati Posts: 712
    edited 2009-06-20 02:37
    Oh....
    I think I know...

    I got a Kingston 2GB *Elite Pro*

    It said in the description that it has faster data transfer and such... My dad thinks it's autoformatted or something and that it can't be changed, so it's impossible to use....



    Lucky me... Now that I get something that isn't faulty, I can't use it!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • VaatiVaati Posts: 712
    edited 2009-06-20 02:42
    OBC, how do I reboot it...? In femtoBasic, I start getting p.o.-ed at the entire "Syntx error. OK" No, it's not okay!! And for PropDOS, it just aborts the operation....


    The weirdest thing is.... the SD ccard worked the first time I tried to work it on my demented breakout board setup....


    ????

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-06-20 03:19
    Vaati said...
    OBC, how do I reboot it...? In femtoBasic, I start getting p.o.-ed at the entire "Syntx error. OK" No, it's not okay!! And for PropDOS, it just aborts the operation....

    In that section that says "No, it's not okay" I put a "reboot" command.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.
  • VaatiVaati Posts: 712
    edited 2009-06-20 03:59
    I found a reboot command in PropDOS, but I can't seem to find one in Femto...


    I'm trying my adapter with all my props now. First is my Gadget Gangster Boss Board, then my two prop protos. One more quesiton--is there a program for the Basic Stamp 2 that lets it acces SD...? That would be a nice way to test it...


    Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • VaatiVaati Posts: 712
    edited 2009-06-20 17:08
    ·_______···················· ······· _________
    |···········\________________ /··············|
    |···· ________ ____·_____________······|
    |·· /··············· ··········· ············ ······\····|
    |··|························· ················ ·····|····|
    |··|······················· ················ ······ |··· |
    |· |···················· ············ ···· ········ |··· |
    |··|················ ····· ························ |··· |
    |·· \_____________· ____________/···· |
    |························································|
    |······················································· |
    |· |

    |·|
    |_|···· ||· ·||· || · || · ||··||··|| · ||· || ··|_|
    ········· 1···2·· 3··· 4·· 5·· 6·· 7··· 8·· 9

    1 - 10k pull·up to 3.3v; no connection to prop
    2 - 10k pull up to 3.3v; connected to pin 3 of prop demo board
    3 - 10k pull up to 3.3v; connected to pin 2 of prop demo board
    4 - connected to pin 7 and (+) of Card Inserted LED, whose (-) lead is connected to Vss
    5 - connected to Vdd
    6 - 10k pull up to 3.3v; connected to pin 1 of prop demo board
    7 - connected to pin 4 and (+) of Card Inserted LED, whose (-) lead is connected to Vss
    8 - 10k pull up to 3.3v; connected to pin 0 of prop demo board
    9 - 10k pull up to 3.3v; no connection to prop

    Okay, there's the configuration of my SD card slot.


    Can you PLEASE see if that connection is correct...?



    Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • RaymanRayman Posts: 14,851
    edited 2009-06-20 17:14
    Try this:

    Step 1:· Remove LED

    Step 2:· Check this page for proper wiring:

    http://www.rayslogic.com/propeller/Programming/SD_Card/SD_Card.htm

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
  • VaatiVaati Posts: 712
    edited 2009-06-20 17:18
    Hmmm... Couldn't I just override the LED by skipping it and sticking a wire to the negative on the board itself, so then it doesn't have to go thru the LED?


    I will check the circuit now.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • VaatiVaati Posts: 712
    edited 2009-06-20 17:28
    Okay, I checked that site... the only difference is that I used 10k pullups instead of 20k. Also, I really don't understand EXACTLY how to format my sd card to fat16... could someone tell me how to do that using a 2gb card and formatting it with cmd prompt...?


    Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-06-20 17:31
    Sure!

    Right here.

    www.warrantyvoid.us/tiki-index.php?page=Interfacing+SD+media

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.
  • VaatiVaati Posts: 712
    edited 2009-06-20 17:44
    Okay, well it didn't let me do exactly 32,768 but it worked with 32k. Here's what it said after I formatted it:

    Format complete.

    1,966,768,128 bytes total disk space.
    1,966,768,128 bytes available on disk.

    32,768 bytes in each allocation unit.
    60,021 allocation unita available on disk.

    16 bits in each FAT entry.

    Volume serial number is 9C8B-373C


    What in the world does all of that mean???




    Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-06-20 17:57
    Looks good!

    "32,768 bytes in an allocation unit" means that the smallest file
    will be at least 32,768 bytes. No big deal for what we are doing.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.
  • VaatiVaati Posts: 712
    edited 2009-06-20 17:59
    But.... It still doesn't work!! I have tried PropDOS with it after the formatting and nothing happens! It just says that the SD card cannot be found or whatever.... I have it connected to the right pins and all....

    Also, I know it isn't the prop itself, because I tried it on my dip as well...



    Gwahh....

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • mctriviamctrivia Posts: 3,772
    edited 2009-06-20 18:03
    have you tried a card reader build by someone else?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are now in stock. Only $30. PCB available for $5

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
  • VaatiVaati Posts: 712
    edited 2009-06-20 18:04
    I do not have an external card reader, but I have two laptops and one desktop that have built in readers. I used my gateway desktop which has xp to format it...

    Hope that helps...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • RaymanRayman Posts: 14,851
    edited 2009-06-20 18:06
    You might take another look at the photo of the SD card on my site (that has the pin#s written on it)... Your diagram has the pin numbers all in sequence, but that's not how it really is...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
  • mctriviamctrivia Posts: 3,772
    edited 2009-06-20 18:07
    no i ment for the prop one like the one sold at ucontroler.com or a propmod-un_sd which has the reader built in. good to test with something you did not build when the one you built is not working.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are now in stock. Only $30. PCB available for $5

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
  • VaatiVaati Posts: 712
    edited 2009-06-20 18:08
    Well, I know that, but I chacked the site and for my diagram, I just labeled the pins on the slot itself from left to right with the slot right side up..... I do know that the pins on the card are different, but if you compare the card to the SD slot, you will find that it is correct....

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • VaatiVaati Posts: 712
    edited 2009-06-20 18:10
    mctrivia,
    OH.... Well..... I don't have too much money that I am at liberty to spend..... I am trying to save at least %20 of what I earn from Gadget Gangster, so I have about $15 left in my PayPal.... I don't know....

    How much is the ucontroller adapter again...?


    Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • mctriviamctrivia Posts: 3,772
    edited 2009-06-20 18:12
    there's is about $13. I can send you the parts to make my uSD reader for $10 shipping included but mine is uSD

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are now in stock. Only $30. PCB available for $5

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
  • VaatiVaati Posts: 712
    edited 2009-06-20 18:14
    Hmm.... I dunno.... I don't want to take the uSD card from my mom's camera, and I certainly don't want to spend my Parallax Products Campaign money.... =)

    So is that really all there is to do...?


    Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • mctriviamctrivia Posts: 3,772
    edited 2009-06-20 18:16
    no. just a sugestion for a way of checking things. if you buy something you know works with the prop and it does not work then it is the code or prop at fault. if it works then it is the hardware at fault.

    you can also upload very high res photos and copies of exact code and somone may find problem.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are now in stock. Only $30. PCB available for $5

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
Sign In or Register to comment.