uOLED 96-PROP uSD mount issue
jwurmz
Posts: 7
As the title suggests I have an uOLED 96-PROP that seems to work great·-- the display, serial comm., command interpeting all work fine. The 1GB uSD card·was·formatted (and reformatted several times) as a FAT drive and works fine in Windows XP. No matter if I put SPINs, text files, pictures, or anything else on it, PropBASIC reports that the card can't be mounted:
(from Hyperterminal)
uOLED-96-Prop Basic Version 3.008
8860 bytes available
OK
files
Can't mount SD card
OK
I noticed in the·PropBASIC 'definitions' object·code that the lined for the uSD are as follows:
· spiCS······ = 14
· spiClk····· = 15
· spiDO······ = 16
· spiDI······ = 17
...but the schematic in the manual shows DO and DI being reversed (as far as I can tell), so I also recompiled using:
· spiCS······ = 14
· spiClk····· = 15
· spiDO······ = 17
· spiDI······ = 16
...without any luck, of course. Any ideas on what I'm doing wrong?
I'm using the ìUSB-CE5 and it's connected to a self-powered USB hub (5.0v, 2.6A).
(from Hyperterminal)
uOLED-96-Prop Basic Version 3.008
8860 bytes available
OK
files
Can't mount SD card
OK
I noticed in the·PropBASIC 'definitions' object·code that the lined for the uSD are as follows:
· spiCS······ = 14
· spiClk····· = 15
· spiDO······ = 16
· spiDI······ = 17
...but the schematic in the manual shows DO and DI being reversed (as far as I can tell), so I also recompiled using:
· spiCS······ = 14
· spiClk····· = 15
· spiDO······ = 17
· spiDI······ = 16
...without any luck, of course. Any ideas on what I'm doing wrong?
I'm using the ìUSB-CE5 and it's connected to a self-powered USB hub (5.0v, 2.6A).
Comments
do := 16
clk := 15
di := 17
cs := 14
If you do use the (excellent) fsrw instead, then it does have a few (minor) issues and you should read up on these on the forum. For example
http://forums.parallax.com/forums/default.aspx?f=25&m=294690
plus others (a new bug was posted recently).
-CF
I have Rockiki's notes on that at the bottom of this page:
http://www.rayslogic.com/propeller/Programming/SD_Card/SD_Card.htm
Also, I have a (contest winning[noparse]:)[/noparse]) driver and Windows interface that you can test the card with here:
http://www.rayslogic.com/propeller/3rdPartyHardware/uOLED-96-Prop/RS232Driver.htm
Just note that if you have a newer version of the uOled-96-Prop, it has a 10MHz crystal instead of 8.· So, you need to change the CLKFRQ and PLL settings to 10_000_000 and PLL8X, in that case.
Grrr! Didn't know that! I just sorted out all my timing issues with the (several) uOLEDs I have here, all of which have an 8MHz crystal... good job you mentioned this Rayman. I did wonder why 4D used an 8MHz crystal, as it doesn't seem to make that much sense as far as the prop is concerned. It can't run at top speed, if I am correct, since this would make it unstable...?? (This was from Mike Green.)
To prove that the 10MHz version works on the 8MHz board? Yes, OK, I can do that, but I am entrenched in some nasty bug hunts right now so it won't be immediately...
Looking forward to hearing of success!
-CF
You'd have to have an 8MHz board to be able to run uOLED-96-Prop Basic at all since the serial I/O routines depend on having the right clock frequency.
Post Edited (Mike Green) : 10/10/2008 7:35:37 PM GMT
@ Mike Green:
My problem aside, everything works well using your updated version for 10MHz.
The project I have in mind is a data collection tool (using a barcode scanner) so the capability for storage is critical. I'm tempted to·prototype and test using another dev platform, but something tells me that I'm just missing some mundane setting in defs or something similar. Can anyone else suggest another issue that I might be facing? Please don't let this beat me
Waiting to hear....
-CF
PS please ignore all the extra junk in these files that isn't relevant, it's a part of a project I'm developing here
are you using this:
FORMAT E:/fs:fat16/a:32k
?
-CF
If so, you might look down in the connector and make sure you didn't break any pins somehow...
Also check that the card is clicking into place like it is supposed to...
Post Edited (Rayman) : 10/17/2008 11:20:28 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
lonesock
Piranha are people too.
What does it mean?
Mark
FORMAT E: /fs:FAT /a:64K
That should work just fine.
(Note that this gives you 64K clusters, which is what I recommend; I don't know why
everyone keeps suggesting smaller cluster sizes.)
I'm sort of ashamed·to have to keep bothering everyone about this, as I'm the type of person who·just KNOWS they can fix it given enough time and insight. I think I might just send it back to 4D for testing soon, along with my uSD card...
Hmm... it does look like the card is not formatted correctly, as has already been suggested. Others on this forum with more knowledge than I (tom Rokicki for a start) and would know more about the intricacies of the code and what it may return under which circumstances, but let's look at the obvious first I suppose. I would be doing a few basic things by now to see what affected or did not affect this. For example, do you get the same error when the card is not in the socket? If you don't (I haven't reviewed everything you've said above to be honest, you might have done that already) then look again at formatting. I use XP's disc manager to format - go to mycomputer->rightclick->manage->disk management->right click drive->format, I use disc label "FAT16" and set clusters to 32K for a 1G card.
Hopefully you'll also get other suggestions that I haven't thought of and FIX this! I'm sure we are all keen to find out what the problem **WAS**!
Incidentally, considering the fragility of the uOLED, the possibility of destruction during development etc., I just purchased several of them. If you had another you could eliminate hardware issues more easily?
Not a clue... I don't actually understand any of this... I just do what I'm told and don't complain too much[noparse]:)[/noparse]
Hope someone else can help we-two clueless victims[noparse]:)[/noparse]
Rich
He gave me a different command line: FORMAT E: /fs:FAT /a:64K
I guess FAT and FAT16 are the same, in this case.
Thanks,
Mark
·
I tried·the·code you made for jwurmz. I had to tweak it a little to get it to work for me.
Here's my version.
Mark
-CF
Perhaps you could find someone who has a win2k / xp machine and try formatting on there...? And it's a shame we haven't fixed his problem of yours, I felt at the start that it was going to be simple as pie. I know how these things can really slow you down.
I'm starting to think it would be a good idea to write a windows-based format tool, it seems to me that this whole affair is another stupid m*cros*ft issue (bah! who needs to format in FAT16 anymore, anyway?). No way do I have time for that right now though...
I still don't get it. I had it written down on a cheat sheet... which I kept under my window...
You are right though. I get the same message on the same machine...in xp.... and
format E:/fs:fat/a:32K does work for me.
It took me a while to retrieve my uSD to test.
It is voodoo to me... maybe I saved the wrong cheat sheet[noparse]:)[/noparse]
Rich