SDLoader/Bootloader Mounting issue (Resolved and updated with video)
marzec309
Posts: 146
I've been trying to use the sdloader object and GG's Bootloader(I believe they are the same program), but my SD card will not mount. I'm leaning towards wrong formatting or maybe incompatible card. I did modify it, so i could see the abort code, which is a -20 "not fat16". I've tried every SD card I have with no success. Does anyone know of an alternate program to format the SD cards? I've tried using XP to format them in every way possible.
Hardware setup:
I'm using a propellor proto board and Hydra SD-MAX Storage card and supplied sd card(1Gb). The sd-max is hard wired via the expansion header to the PPB. Jumpers a roughly 3" max in length.
SD pin connections are:
DO - 0
Clk - 1
DI - 2
CS - 3
I've also tried numerous SD cards including a small 32Mb card the only one to accept a 512 sector size format(w/windows xp).
Hardware setup:
I'm using a propellor proto board and Hydra SD-MAX Storage card and supplied sd card(1Gb). The sd-max is hard wired via the expansion header to the PPB. Jumpers a roughly 3" max in length.
SD pin connections are:
DO - 0
Clk - 1
DI - 2
CS - 3
I've also tried numerous SD cards including a small 32Mb card the only one to accept a 512 sector size format(w/windows xp).
Comments
Mount tests first
First mount.
Mount failed spectacularly!
Command => Response
Erroneously returned from start!
-1
I have never had a problem with XP formatting the cards I use in the RamBlade and I have formatted quite a few.
The bootloader needs a FAT16 (2GB or less) card, but fsrw can deal with SD or SDHC. Either way, you're using a non-SDHC card.
3 inch wires should be fine. Are you using pullup resistors? The stuff I've tried usually works without pullups, but if you're having problems, it's a good idea to use them.
My best guess is maybe you aren't connecting power and ground on the SD card. Is the VDD pad connected to 3.3v & the Gnd pad connected to ground?
Yes, I am using pull ups. There are 10k pull ups built into the hydra sd max card(Using the hydra adapter only with a PPB). This adapter also has a power led which is lit. So, the card should have power(vdd 3.3v).
Or - can you put a terminal program on the propeller programmer lines?
Either way, KyeDOS talks to both and works a lot better with sd cards.
I remembered a past issue I had with this project. My lcd was hanging when I inserted an sd card, well in the end I rewired it so they didn't share I/O's. I now know why my original plan of sharing a couple of pins didn't work. Quote "Assumptions are the cause of all F&^%ups". I assumed the id "J2" marked Pin1 of the sd adapter, not the case.
IT LIVES
Test Results:
Clock: 80000000 ClusterSize: 16384 ClusterCount: 60942
Raw write 3968 kB in 2268 ms at 1749 kB/s
Raw read 1920 kB in 2184 ms at 879 kB/s
fsrw pwrite 2016 kB in 2354 ms at 856 kB/s
fsrw pread 2016 kB in 2297 ms at 877 kB/s
FSRW pputc 63 kB in 2100 ms at 30 kB/s
FSRW pgetc 63 kB in 1837 ms at 34 kB/s
All done!
Here's the fix.
No, I'm not running VGA but instead I'm using a graphics LCD. I will have to check out KyeDOS. Does it support SD Booting?
http://www.youtube.com/watch?v=K8E_geFsBOo