fsrw+PropBOE+SimpleIDE
Rsadeika
Posts: 3,837
I am using SimpleIDE Spin mode and the PropellerBOE board for this experiment. I am having trouble getting the SD card to mount, specifically when it gets to the 'sdfat.mount(basepin)', it does not continue with the program. This command 'Cogxbee := cognew(xbeeTerm, @xbeeStack)' gets loaded and it works, so it is specifically the sdmount that is causing trouble. I inserted fresh uSD card, I believe that with the latest version of fsrw, all the uSD card problems were solved? So, what remains is PropBOE card itself, has anybody loaded an uSD card using fsrw and PropBOE and SimpleIDE?
Ray
Ray
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '' PboeBase.spin '' '' July 28, 2013 '' ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' CON _clkmode = xtal1 + pll16x _xinfreq = 5_000_000 basepin = 22 OBJ term : "Extended_FDSerial" '' An enhanced version of (FDS) xbee : "Extended_FDSerial" '' misc : "tools" '' My object that contains some common tools. sdfat : "fsrw" VAR long xbeeStack[60] '' Most of the time 10 would suffice. byte tbuf[20] PUB Start Cogxbee := cognew(xbeeTerm, @xbeeStack) misc.waitMS(250) term.Start(31,30,0,115200) misc.waitMS(250) sdfat.mount(basepin) term.str(string("Mounted.",13,10)) Main '' To be used as local access for maintenance?? PUB Main | inSbyte, inAbyte
Comments
I think that some of the new users will be very disappointed when they purchase the PropellerBOE or the Activity Board, and realize that there are no Spin drivers for a lot of things that are on those boards. Maybe a warning should be placed at the purchase site - Warning, there are no Spin drivers available at this time for this product, but there are some programs, in the OBEX, that you can try to modify to fit the product.
Ray
Are your pin definitions correct? The .mount() method requires a specific order. You may have a bad uSD card, too -- I did when first running the attached test (I ran in Propeller Tool).
Q: When you ZIP a Spin project from SimpleIDE it doesn't include objects -- shouldn't it?
I am running SimpleIDE 0.9.36, and I just tried the zip file function, it worked for me, it included the objects. I know a couple of versions back, it was not working for me, but now, it seems like something got fixed.
This morning when I was looking at the latest fsrw package, I just could not find where the uSD pins were called out, I found the basepin call out, but that was it. I agree that the uSD object should be written in a way that you can easily change the pin numbers so it fits all boards. I am also thinking that it needs some kind of separate object that contains all the basic functions/methods like format, dir, create a file, delete a file, write to a file, and etc.
Ray
That should work.
However, Kye's version is more pedantic that everything on the card is correct, and it seems that a number of cards therefore do not work. I have stumbled upon the fact that it will not work on code loaded (using SDload, not reset or reboot) following fsrw and this still needs to be solved (Kye thinks it may be because fsrw uses block mode and fatengine does not take the card out of this mode). IIRC Kye has also said that his version is slower than fsrw. It also works with FAT16 & FAT32.