Rockbox Development > New Ports
SanDisk Sansa c200v2, m200v4, clipv1, clipv2, clip+, and fuzev2
funman:
@JdGordon : right
@FlynDice : if the card power up doesnt finish in N loops rockbox should just ignore the card no? (and not deadlock)
kugel.:
--- Quote from: funman on July 10, 2009, 07:20:01 AM ---@JdGordon : right
@FlynDice : if the card power up doesnt finish in N loops rockbox should just ignore the card no? (and not deadlock)
--- End quote ---
I rather think it should try harder.
FlynDice:
@funman:
I think we have 2 separate problems with the way voltage scaling was being implemented.
I think the deadlocks were being caused by the loop that was waiting for the voltage reading to be >= 1.20v. I believe using adc_read in the loop fixes that problem.
There seems to be an additional unrelated problem with the uSD card power up at the lower CVDD settings for some reason. The card will init fine at boot-up when CVDD is at 1.20v, and also if you force a boosted state through the debug menu, CVDD also at 1.20. But whenever CVDD is low the card fails to power up.
This leaves rockbox in a state where it thinks it has a microsd installed but coughs when it tries to access the non powered up card. The fix you put in this morning helps it fail more gracefully but I think the problem to be figured out here is how to get the card to power up correctly with CVDD at a lower setting.
funman:
The OF seems to use 1.10V for CVDD (on Fuze and Clip at least) so there must be something it does and we are not doing.
Do you still get µSD cards not working with CVDD voltage less than 1.20V ?
If yes which error code does the SD driver reports?
FlynDice:
My uSD card works fine at 1.10v but others were having what sounds like this same problem at 1.10v. mc2739 described the problem quite well and it is just what I'm seeing when I take CVDD down to 1.05v.
sd_init_card() is returning a -2 now indicating a timeout on the card power up, also it is tripping the panicf down in the sd_thread.
EDIT: I have tried goosing the voltage a bit on the uSD card and also adding extra delay between MCI_POWER_UP and MCI_POWER_ON with no change in the result.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version