Shop OBEX P1 Docs P2 Docs Learn Events
fsrw+PropBOE+SimpleIDE — Parallax Forums

fsrw+PropBOE+SimpleIDE

RsadeikaRsadeika Posts: 3,837
edited 2013-07-29 17:32 in Propeller 1
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
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'' 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

  • RsadeikaRsadeika Posts: 3,837
    edited 2013-07-29 08:43
    This morning I spent some time looking at the uSD card programs that are provided by Kye and fsrw, my question is - Parallax, where are the Spin drivers for the uSD socket that is found on the PropellerBOE and the Activity Board? The two programs that I mentioned earlier do not work for the two boards, let alone having it work using SimpleIDE in Spin Mode.

    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
  • JonnyMacJonnyMac Posts: 9,107
    edited 2013-07-29 09:07
    Generic Spin drivers like FSRW should not be written to accommodate a specific board, they should accommodate ANY board. I use FSRW all the time, on my own boards, EFX-TEK boards (e.g., the AP-16+ audio player), and on Parallax boards -- it always works. The attached demo proves it.

    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).
  • David BDavid B Posts: 592
    edited 2013-07-29 11:16
    Make the mount call so it catches aborts, like "check := \sd.mount(SD_DO)", write your mount call so it detects when the return code represents an error, then use that error code to troubleshoot the problem. That might help.
  • JonnyMacJonnyMac Posts: 9,107
    edited 2013-07-29 11:23
    I downloaded the latest version of SimpleIDE and verified that my demo program works with it, too.
    1024 x 640 - 68K
  • jazzedjazzed Posts: 11,803
    edited 2013-07-29 11:31
    Same level of hardness once you enter project view.
  • JonnyMacJonnyMac Posts: 9,107
    edited 2013-07-29 11:35
    I removed my question as it may have been me just stumbling around....

    Q: When you ZIP a Spin project from SimpleIDE it doesn't include objects -- shouldn't it?
  • RsadeikaRsadeika Posts: 3,837
    edited 2013-07-29 12:22
    Thanks Jon.

    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
  • jazzedjazzed Posts: 11,803
    edited 2013-07-29 12:24
    JonnyMac wrote: »
    Q: When you ZIP a Spin project from SimpleIDE it doesn't include objects -- shouldn't it?
    You have found a bug that has been fixed in version 0-9-38+ ....
  • JonnyMacJonnyMac Posts: 9,107
    edited 2013-07-29 13:36
    I don't know if it makes a difference but I changed my Spin Library folder to the one used by the Propeller Tool.
  • jazzedjazzed Posts: 11,803
    edited 2013-07-29 14:52
    JonnyMac wrote: »
    I don't know if it makes a difference but I changed my Spin Library folder to the one used by the Propeller Tool.

    That should work.
  • Cluso99Cluso99 Posts: 18,069
    edited 2013-07-29 17:32
    Kye's FATEngine is well documented and has a lot more functions. There is an AppNote (#6?) over on the parallaxsemi website.

    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.
Sign In or Register to comment.