FAT32 SD cards use with sdfshc32d.pbp


Closed Thread
Results 1 to 23 of 23

Hybrid View

  1. #1
    Join Date
    Apr 2012
    Location
    Ptolemaida
    Posts
    50


    Did you find this post helpful? Yes | No

    Default Re: FAT32 SD cards use with sdfshc32d.pbp

    I would like to ask if you know where i can find the FAT_error, the SDC_status and SDC_response.
    I should have done my studies before i post... I found the error table after a little search.
    But the thing is that i got my card corrupted :-/
    Anyway, i will try fixing this tomorow.
    One man's magic is ANOTHER man's engineering.
    Supernatural is a null word

  2. #2
    Join Date
    Aug 2006
    Location
    Italy
    Posts
    72


    Did you find this post helpful? Yes | No

    Default Re: FAT32 SD cards use with sdfshc32d.pbp

    Hi Xapmanis,
    I'm happy you'va found the error table list.
    But, how did you get corrupted your SD card?
    Using it with the library or in some other way?
    It happened to me once that after using it in my project, a card get corrupted. The only way to fix it was to format using Windows.
    Also, I've seen that you're using the include SDFSHC32D2K.bas, while the normal include for that library is SDFSHC32D2.bas.
    What the "K" version means?

    Regards,
    Mike.

  3. #3
    Join Date
    Apr 2012
    Location
    Ptolemaida
    Posts
    50


    Did you find this post helpful? Yes | No

    Default Re: FAT32 SD cards use with sdfshc32d.pbp

    Hello there !!
    I kept the original file SDFSHC32D2.bas intact because i wanted to experiment arround. K stands for Kostas, my name :P. I just adjusted the PORT values to my PIC18F26K22 and enabled HRWSPI1 at PORTC. I did run the code above, i did insert the card and powered the device at 3.3 volt. The result was after some thrash messages from serial communicator ( probably due to bad timing or wiring ) i tried to check my card into the laptop but unfortunatly my laptop can't even format the card or detect it, i dont know why. I will buy couple of cards from ebay to experiment.
    Also i would like to ask. Have you managed to make it work with FAT32 ?! Is it a problem that my PIC runs at 64MHz ?

    I will keep studing the SDFSHC32D2.bas file and the examples because last time i dealed with it was like a year ago before getting in the army.
    Best regards, Kostas.
    One man's magic is ANOTHER man's engineering.
    Supernatural is a null word

  4. #4
    Join Date
    Aug 2006
    Location
    Italy
    Posts
    72


    Did you find this post helpful? Yes | No

    Default Re: FAT32 SD cards use with sdfshc32d.pbp

    Hi Xapmanis,
    I've never tried to use it with the FAT32...
    Probably the fact that the chip run at 64MHz SHOULD NOT hurt the timing... well... you're using the hardware SPI....
    Did you tried to setup the library to use the software SPI (and set accordingly the ports to do that) instead of the hardware one?
    Have you checked in your schematic if you're pulling-up all the SD Card pins?
    Have you double checked if in NO CASE your power supply and or signal level, never exceed the 3.6V as ABSOLUTE MAXIMUM ratings for the SD?

    Regards,
    Mike.

  5. #5
    Join Date
    Apr 2012
    Location
    Ptolemaida
    Posts
    50


    Did you find this post helpful? Yes | No

    Default Re: FAT32 SD cards use with sdfshc32d.pbp

    I thought u did succeed making this work with FAT32. Didn't you ?? Also i have mikroelektrinika's EasyPIC7 for main testing boards and a module for SD/MicroSD cards from ebay that has aready pullups and voltage lvl shifter on it if i want to use the card at 5v. But for safety i used 3.3v powered from my laptop usb port.
    Also i will give it a try to use software SPI, i dont care about speeds anyway ( for now...).
    Thank you for the feedback mate!
    I'll let you know if anything changes, i ordered 3 more cards to play with :P !!!
    One man's magic is ANOTHER man's engineering.
    Supernatural is a null word

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,837


    Did you find this post helpful? Yes | No

    Default Re: FAT32 SD cards use with sdfshc32d.pbp

    USB port supplies 5Volts, not 3.3. Do you have a low drop regulator then?

    Ioannis

  7. #7
    Join Date
    Apr 2012
    Location
    Ptolemaida
    Posts
    50


    Did you find this post helpful? Yes | No

    Default Re: FAT32 SD cards use with sdfshc32d.pbp

    Hello ioannis !!!
    yes, as i said earlier i use easypic7 board and i can select 5v or 3.3v with the help of a jumper. I use 3.3 v to power my pic also to power the sd card module
    One man's magic is ANOTHER man's engineering.
    Supernatural is a null word

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts