Rockbox Development > New Ports

SanDisk Sansa c200v2, m200v4, clipv1, clipv2, clip+, and fuzev2

<< < (261/386) > >>

FlynDice:
Glad to hear things are working good now.

Could I get some tests on this:   http://pastie.org/732553
This patch runs the internal at 15.5(sort of see below..), standard uSD at 15.5, and HS uSD at 31

I think I have solved the problem with crc failures on sd writes at 15.5 MHz.  For some reason we need a small delay after we send the write command to the controller before we start the transfer when writing to the cards at 15.5 MHz.

I am now almost certain that the internal controller uses the IDE clock as it's MCLK.  For some reason It needs both  IDE_CLK and NAF_CLK enabled to function which is where my confusion came from several weeks ago.  With this thought in mind it should be possible to run the internal cards at 25 MHz, High speed uSD cards at 31 MHz and standard speed uSD cards at 15.5 MHz.  That would be all cards running at their max frequency within the specs.  We could choose to lower that later if tests show an advantage power wise.

BlastTyrant:

--- Quote from: FlynDice on December 07, 2009, 09:42:43 PM ---Glad to hear things are working good now.

Could I get some tests on this:   http://pastie.org/732553
This patch runs the internal at 15.5(sort of see below..), standard uSD at 15.5, and HS uSD at 31
...

--- End quote ---

OK, I finally got set up on my Ubuntu install to make Rockbox builds.

I applied your patch to r23895 and put it on my Fuze.

I didn't experience any problems with it when I was testing it for about 15 minutes. I booted it multiple times with different cards and tested playback. I'll leave it on there for a little while. Let me know if you need a more extensive test.

Here's the info that I got while running the patched build:

With my 8GB Class 6 Transcend uSD:
HW Info*:
   SD: 15MHz
   uSD: 31MHz
Disk info:
   Speed: 25.0MBit/s

I also tested it with a 2GB Class 2 Kingston uSD and got the same results.

*The 'Actual' column reading was the same as the 'Set' column reading while it was filling the buffer. I didn't know if you needed me to include this, but I figured it couldn't hurt.

kugel.:
Shouldn't class 6 cards be 50MBit/s? Those are rated for over 10MB usually (which we can't handle anyway but we do manage to be faster than 25MBit/s if the cards allow it).

FlynDice:
@BlastTyrant:

The speed value is a maximum value which we aren't actually running the card at. I believe your card(s) is indeed successfully switching to 50.0.  The initial screen which appears for View disk info shows [microSD 0], which is the internal SD card, which is a v1 and does indeed not switch to 50.0.  Press the select button while in the View disk info page and it will cycle to  [microSD 1] which is the uSD.

Since your card is running at 31 MHz, the code checked on the speed value reported in the card's CSD register and found it to be 50.0 so it divided PCLK by 2 to get 31 MHz.  Otherwise it would have divided by 4 to run at 15.5.

EDIT: ---------->  Thanks to all for taking the time to test for me!

BlastTyrant:

--- Quote from: FlynDice on December 08, 2009, 03:53:44 PM ---@BlastTyrant:
...Press the select button while in the View disk info page and it will cycle to  [microSD 1] which is the uSD....

--- End quote ---

Well, I feel kind of stupid now  ;)

Yes, when I press the select button it brings up microSD 1 and it shows that the speed is in fact 50.0MBit/s

Sorry about the confusion, and I'm glad that I can help.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version