Support and General Use > Audio Playback, Database and Playlists

Files in MicroSD card aren't being shown in File Browser or Database on Clip+

<< < (8/12) > >>

knopfsocke:
Fuze V1 is correct. I am not familiar with the rockbox code, but I added the 100ms delay to the file "sd-as3535.c" in hope to get an effect to the fuze v1. is that correct?


--- Code: ---svn diff firmware/target/arm/as3525/sd-as3525.c
Index: firmware/target/arm/as3525/sd-as3525.c
===================================================================
--- firmware/target/arm/as3525/sd-as3525.c      (revision 29466)
+++ firmware/target/arm/as3525/sd-as3525.c      (working copy)
@@ -351,6 +351,8 @@
             return -7;
         mci_delay();
 
+       udelay(100000); /* 100ms */
+
         /*  go back to STBY state so we can read csd */
         /*  CMD7 w/rca=0:  Deselect card to put it in STBY state */
         if(!send_cmd(drive, SD_DESELECT_CARD, 0, MCI_NO_RESP, NULL))

--- End code ---

saratoga:

--- Quote from: knopfsocke on March 04, 2011, 12:33:50 PM ---Fuze V1 is correct. I am not familiar with the rockbox code, but I added the 100ms delay to the file "sd-as3535.c" in hope to get an effect to the fuze v1. is that correct?

--- End quote ---

Thats the right file for your player, but the changes mentioned in that task aren't for your player.  Its surprising that something meant to solve a problem on a different device would help you.  Perhaps you should post your changes to the tracker and see if anyone understands what is going on.  

z8080:
IMHO, problem is in SDHC card initialisation algorithm.

We do not wait reply from SDcard to CMD6 command, but should do this. In current versions we just wait for some timeout in hope, that card will finish initialisation in this time. Initialisation time is card-dependent, so for some cards timeout value from vanilla sources are sufficient, for others my patch with increased to 100ms delay is needed.

Algorithms in sd-as3535.c are similar, so increasing delay to 100ms may also  help with Fuze V1 SDHC detection troubles.

knopfsocke:
hey thanks for your contribution.

Is this a general problem for big SD-cards or are only Fuze 1 and 2 devices affected?

Where can I find the communication and data specification for SD-cards to check if the sequence of data exchange in the file "sd-as3525.c" is correct.  google won't help me :-D

I will help to fix this problem if i can!

saratoga:
It might be a better idea to ask on the tracker or IRC.  You're more likely to find someone familiar with the SD protocol and rockbox driver there.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version