Problem with SD card and KyeDos
pik33
Posts: 2,398
I added a sd card to a demo board. It is now 2 GB card formatted as fat32 . Also tried fat16 on this card, with the same results
It works now in femtobasic. Femtobasic can save, load and list files on it and all seems to be working ok.
So I tried this: http://forums.parallax.com/showthread.php?128779-KyeDOS-an-operating-system-for-the-Propeller&highlight=kyedos
Set con:
_SD_DO = 0
_SD_CLK = 1
_SD_DI = 2
_SD_CS = 3
It only displays "Testing for SD card"
Then I tried to replace SD card driver added to KyeDOS archive to this: http://obex.parallax.com/objects/619/ object.
After this I got a command promt. Can mount an unmount SD card. After mount I got this:
"Disk 0x00000000 with volumeID (8 hex digits) a.k.a NO NAME ready"
But when test, I got "Byte read back failed"
"Dir" shows nothing or gives an error. There is a file "test.bas" created on this SD with FemtoBasic, which I can read on PC or with FemtoBasic, "dir" doesn't see it.
What can be wrong with this SD?
And another question: is there any VGA version of PropDOS or PropCMD?
It works now in femtobasic. Femtobasic can save, load and list files on it and all seems to be working ok.
So I tried this: http://forums.parallax.com/showthread.php?128779-KyeDOS-an-operating-system-for-the-Propeller&highlight=kyedos
Set con:
_SD_DO = 0
_SD_CLK = 1
_SD_DI = 2
_SD_CS = 3
It only displays "Testing for SD card"
Then I tried to replace SD card driver added to KyeDOS archive to this: http://obex.parallax.com/objects/619/ object.
After this I got a command promt. Can mount an unmount SD card. After mount I got this:
"Disk 0x00000000 with volumeID (8 hex digits) a.k.a NO NAME ready"
But when test, I got "Byte read back failed"
"Dir" shows nothing or gives an error. There is a file "test.bas" created on this SD with FemtoBasic, which I can read on PC or with FemtoBasic, "dir" doesn't see it.
What can be wrong with this SD?
And another question: is there any VGA version of PropDOS or PropCMD?
Comments
PropDos / PropCmd etc...
As kuroneko (Marko) said, it should be a fairly simple matter to change the screen driver. Which version are you using? I use the PC and it works fine. I also have a version that works with 1pin TV (and 1pin keyboard).
My driver checks a lot more stuff than other SD card drivers. It if starts complaining about something then there is truly something wrong with your SD card. Even if it's not a fatal error its better to fix it than to let it go untreated.
Test program from : http://obex.parallax.com/objects/619/ works. (slow blinks, then fast blinks, then led still on
Here is a result file
Edit:
Works: sector read
Don't work: byte/word/long read
Edit 2:
When working with Kye's card profiler all seems to work
When working with KyeDOS with the same SD driver added, long read don't work and seems to return zero.
i_don't_understand_anything.
And tried to display what is read adding vt100 object and using vt100.hex(long_value,8). This long_value should be a counter value (something between 32768 and 65536) - it displays some strange numbers
Still --- i_don't_understand_anything.
Edit 3
It seems I should (1) get a kye's driver, it seems to work (2) add a keyboard and vga text driver (3) do some own experiments (4) try to understand what works, what not and why
I didn't make KyeDos. It's made by Dr Acula.
You'll need to ask him for help.
Thanks,
Got a kyedos from here: http://forums.parallax.com/showthread.php?139294-DEMO-board-SD-KYEDOS-package.
Replaced not working sd driver with driver from OBEX
Replaced TV driver with VGA driver
And now it works