MicroSD - SD card FAT32 newbie


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: MicroSD - SD card FAT32 newbie

    What is the error shown?
    But, as far as I know you need to run the MCU at 40MHz plus.
    and
    I will suggest you get this working with the code from MeLabs first.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default Re: MicroSD - SD card FAT32 newbie

    Hello mackrackit,
    i found that there is a problem with FSinit subroutine, pic's programm stuck in waitforcmdtimeout loop of SDFSHC32d file without returning to main programm. I tried a fix that a user(Alexey) did and worked out!!
    ....
    ....
    loopcount var byte
    loopcount= 0
    waitforcmdtimeout:
    if loopcount = 255 then
    SD_CS = 1
    return
    endif
    loopcount = loopcount +1 'ExtraCode
    ....
    ....
    But i got responce :
    FAT_error= 6 SDC_status= 1 SDC_response= 255
    FAT_error= 7 SDC_status= 1 SDC_response= 255

    Also i forgot to say that i run the program at 32Mhz but still same results. Q: Is there need of 40Mhz ++ speeds ?? Isn't 32Mhz enough ?
    I think MeLabs has code only for FAT16 and not for FAT32 example. Anyhow i'll use your advise and try to use one FAT16 example when i get my hands on 1 2Gb or less microSD

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


    Did you find this post helpful? Yes | No

    Default Re: MicroSD - SD card FAT32 newbie

    As it seems it's a pitty... But picbasic can't handle SD/microSD FAT32 formated cards yet... I hope someone in the future will add Statements, include files etc etc for this work.
    One man's magic is ANOTHER man's engineering.
    Supernatural is a null word

Similar Threads

  1. SDHC (FAT32 for SD cards)
    By mackrackit in forum Code Examples
    Replies: 22
    Last Post: - 15th October 2023, 19:16
  2. FAT32 SD cards use with sdfshc32d.pbp
    By Alexey in forum PBP Extensions
    Replies: 22
    Last Post: - 10th March 2015, 15:17
  3. MicroSD Cards and SDFS
    By rsocor01 in forum General
    Replies: 33
    Last Post: - 28th August 2010, 05:53
  4. yes card
    By jonas2 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 25th March 2007, 17:25
  5. SD-Card
    By glaubertadeu in forum General
    Replies: 1
    Last Post: - 27th April 2005, 14:57

Members who have read this thread : 0

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

Tags for this Thread

Posting Permissions

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