· I'm having trouble with your driver ... have double checked my wiring and when I try to 'mount 0' on my 2 GB SD card, I recieve an I/O error.· I'm using the breakout adapter at www.uController.com ... the LED on the card shows it has power .. has anyone else got this report?
BYW, the chip reads & writes in my PC ... I have formatted it for FAT16 ... it holds files, I'm a little confussed?
Your SD card reader, how do you have it plugged in? Are you using it on a breadboard, or do you have it plugged into the double row plug? I had mine plugged into the breadboard, single row of pins, and I had it working, but it was inconsistent. I think it was because it just wasn't being seated very well on the breadboard, but I cannot be sure. I think while you are inserting the card, you push down on the end of the holder, and the other end moves up a little, just enough to lose contact on one of the pins, at least that is my speculation.
Tapperman - Your card may not be supprted yet by my driver. However, It may be an electrical problem that leads to the error.
I'm assuming you changed the pins used for the SD card in the FATEngine.spin file to be the correct pins in your setup, if you have not done this then that may be the problem. Also note that the DO pin refers to data out from the SD card and not from the propeller. It is possible to reverse the data out and data in pins.
Other than that try another SD card... and if that does not work. Go to the function in the FATEngine.spin file called "FATEngine" and change this line:
Thank you for the awesome SD driver. I was working with the FSRW and had trouble with it and it didn't have the functionality I wanted. I got your driver working on the first attempt! and it has all the functionality I want. The documentation is great too!! Keep up the good work.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Will work for Propeller parts!
I just wondered if you had any updates to this software? I have been using your latest beta in my forthcoming Catalyst release because it much of the functionality I needed already built-in. I have found (and fixed) several bugs in the last beta (which is the only version I could get working on the Hybrid/Hydra) but I thought I'd check to see if you had any later version.
BTW - it looks like it will be a very nice addition to the Propeller arsenal, and I would encourage you to finish it!
Ross.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Catalina - a FREE C compiler for the Propeller - see Catalina
I plan on releasing it really soon. Tests and school work have prevented me from working on it very much.
I would reconmend waiting till I get everything done. I'll have the final release up hopefully sometime in May after my school semester is over.
As I now, I have made substantial changes to RTCEngine so that it support multiprocessor acess and so that it does not suffer from roll over problems. If you are using the current version of that driver... weird stuff can happen some times. The new driver does not suffer from the previous problems.
I've also made alot changes to my string library and fixed many of the broken functions in it. (They were broken because I never used them). The string library runs my front end terminal so it was important to get it working perfectly. The new version of the string library is faster and more impervious to whitespace and capitalization issues in strings.
Additionally I changed my serial driver also so that it features run time pin configuration. Infact I've changed all my drivers so that they no longer use constants anymore.
As for the FATEngine its not changed much since the post above where I posted a copy of it. I'm pretty happy with the current version. I would like to add pathing but that's a PITA, and I'd rather just get it released first.
---
Oh, Ross what bugs did you find? Please tell me where they are so that I can fix them. I found a pretty bad one myself recently that was associated with reading and writing chunks of data at a time. The bug caused every other sector to be skipped. It was caused by the "readWriteCurrentCluster" function being called more than once per sector.
---
This is the last week of classes for me. Then I have two weeks on finals and I am free!
I only use the FATEngine, since most platforms won't have an RTC. I'll PM email you a copy of the changes I made - some bug fixes, and a couple of minor additions. I've not seen anything like the bug you described, but maybe some of my other changes fixed that as well. Can you send me the change you made?
Ross.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Catalina - a FREE C compiler for the Propeller - see Catalina
Comments
Some functions may work, they may not, try them out AT YOUR OWN RISK!
I'll have to put this project on the shelf again as school now is in full swing. Hopefully I'll have some time during spring break to finish this.
Thanks,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
· I'm having trouble with your driver ... have double checked my wiring and when I try to 'mount 0' on my 2 GB SD card, I recieve an I/O error.· I'm using the breakout adapter at www.uController.com ... the LED on the card shows it has power .. has anyone else got this report?
BYW, the chip reads & writes in my PC ... I have formatted it for FAT16 ... it holds files, I'm a little confussed?
Ray
I'm assuming you changed the pins used for the SD card in the FATEngine.spin file to be the correct pins in your setup, if you have not done this then that may be the problem. Also note that the DO pin refers to data out from the SD card and not from the propeller. It is possible to reverse the data out and data in pins.
Other than that try another SD card... and if that does not work. Go to the function in the FATEngine.spin file called "FATEngine" and change this line:
slowTiming := ((constant(250_000 << 12) / clkfreq) << 20)
to
slowTiming := ((constant(250_00 << 12) / clkfreq) << 20)
This will slow down the SPI clock to the card during the intialization phase.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Will work for Propeller parts!
The driver posted in the first post on this thread is stable. The stuff I've been posting is not.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Will work for Propeller parts!
I just wondered if you had any updates to this software? I have been using your latest beta in my forthcoming Catalyst release because it much of the functionality I needed already built-in. I have found (and fixed) several bugs in the last beta (which is the only version I could get working on the Hybrid/Hydra) but I thought I'd check to see if you had any later version.
BTW - it looks like it will be a very nice addition to the Propeller arsenal, and I would encourage you to finish it!
Ross.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Catalina - a FREE C compiler for the Propeller - see Catalina
I would reconmend waiting till I get everything done. I'll have the final release up hopefully sometime in May after my school semester is over.
As I now, I have made substantial changes to RTCEngine so that it support multiprocessor acess and so that it does not suffer from roll over problems. If you are using the current version of that driver... weird stuff can happen some times. The new driver does not suffer from the previous problems.
I've also made alot changes to my string library and fixed many of the broken functions in it. (They were broken because I never used them). The string library runs my front end terminal so it was important to get it working perfectly. The new version of the string library is faster and more impervious to whitespace and capitalization issues in strings.
Additionally I changed my serial driver also so that it features run time pin configuration. Infact I've changed all my drivers so that they no longer use constants anymore.
As for the FATEngine its not changed much since the post above where I posted a copy of it. I'm pretty happy with the current version. I would like to add pathing but that's a PITA, and I'd rather just get it released first.
---
Oh, Ross what bugs did you find? Please tell me where they are so that I can fix them. I found a pretty bad one myself recently that was associated with reading and writing chunks of data at a time. The bug caused every other sector to be skipped. It was caused by the "readWriteCurrentCluster" function being called more than once per sector.
---
This is the last week of classes for me. Then I have two weeks on finals and I am free!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
I only use the FATEngine, since most platforms won't have an RTC. I'll PM email you a copy of the changes I made - some bug fixes, and a couple of minor additions. I've not seen anything like the bug you described, but maybe some of my other changes fixed that as well. Can you send me the change you made?
Ross.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Catalina - a FREE C compiler for the Propeller - see Catalina
Post Edited (RossH) : 4/27/2010 9:17:31 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Talbot
New Market, MD, USA
That comes with about 40 public functions to work with also.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,