SDHC (FAT32 for SD cards)


Closed Thread
Results 1 to 23 of 23

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: SDHC (FAT32 for SD cards)

    I think $72. I'll check later.
    But that is way they do it... I'm not familiar at all with anything regarding SD.
    I was hoping that I could just use module as is...
    First I edited my project from 2012, and it would create file on sd card, but wouldn't write nothing into file. That was case with both cards(2 and 16 gb)...
    Then I remove all files, and download new. First I get it to work with FAT16(2gb card), then replace INCLUDE "SDFS.pbp" with INCLUDE "sdfshc32d.pbp". Tried 2GB formated as fat 16 and fat32 and it worked. Then tried 16gb fat32 and then get it to fail at FSInit, error 6 (CE_INIT_ERROR Con 6 ' An initialization error has occured)
    What else I could check and report back, if you are interested in improving sdfshc32d.

  2. #2
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: SDHC (FAT32 for SD cards)

    Now fails here
    Code:
    	For SDC_timeout1.lowbyte = $ff To 0 Step -1
    		SDC_sector_addr = 0 : Gosub SectorRead	' Long SDC_sector_addr is the sector to read.  Returns Byte SDC_status.
    		If (SDC_status = sdcValid) Then SDC_timeout1 = 0	' Got a valid response, end the loop.
    	Next SDC_timeout1.lowbyte
    	If (SDC_status != sdcValid) Then SDC_status = sdcCardNotInitFailure : Goto InitError
    	Return			' Return Byte SDC_status.
    SDC_status=2
    SDC_response=$A9
    FAT_error=6
    Last edited by pedja089; - 27th December 2022 at 13:49.

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,160


    Did you find this post helpful? Yes | No

    Default Re: SDHC (FAT32 for SD cards)

    I don't have answers, only more questions:
    • Are you sure it's even a coding issue?
      Doesn't going over 2GB put you into another category of card speeds?
      Are PIC18Fs even fast enough to process these I/Os?

    For example:
    https://www.spypoint.com/en/blog/41/...-types-classes

    I'm sure the larger/faster/newer PICs can do it, but I know nothing about them except Microchip advertisements.

    Robert

Members who have read this thread : 2

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