Shop OBEX P1 Docs P2 Docs Learn Events
Memory — Parallax Forums

Memory

tjbd332tjbd332 Posts: 3
edited 2011-07-24 18:07 in Propeller 1
Im looking for a way to use a flash drive as the eeprom for my projects. Im a noob when it comes to flash memory so any help would be appreciated.

thanks

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2011-07-22 19:43
    What do you want to do with the flash drive? By flash drive do you mean "one of those USB flash memory sticks"? or something else.
  • Cluso99Cluso99 Posts: 18,069
    edited 2011-07-22 20:34
    tjbd332: Firstly, welcome to the fabulous world of the propeller, and this magnificent forum.

    As Mike said, waht do you mean? We have SD (or usually microSD) cards running complete FAT16/32 file systems, so if this is what you mean, its been done.
  • tjbd332tjbd332 Posts: 3
    edited 2011-07-23 08:10
    what i would like to do is to use the a usb flash drive as extra memory to store and run vary large programs (30000+lines of code). i have the adapter DLP-usb232m, which is a uart usb adapter, that i am trying to use but it seems like most of the example code is for data logging and is not really tailored to what i am trying to do.

    thanks
  • StefanL38StefanL38 Posts: 2,292
    edited 2011-07-23 15:07
    I'm not an expert on this field but I guess using an USB-flashdrive for running large programs will be difficult to do.
    You will have to code a mechanism to overload areas in the internal HUB-RAM.

    It will be much easier to use a propeller-board with additional SD-card/RAM or flash-ROM like the morpheus-board running C with the LMM (LMM Large Memory Model)
    Search for Catalina a propeller c compiler

    best regards

    Stefan
  • Duane DegnDuane Degn Posts: 10,588
    edited 2011-07-23 16:25
    I use both USB flash drives and SD cards with the Propeller.

    I prefer the SD cards much more than the USB drives. The hardware needed to use USB drives seems to be very picky about what drives it will work with (I've only found two drives that will work).

    I plan to stop using USB drives all together once I have some time to rewrite the software.

    I haven't used LMM applications myself but I have used a modified version of KyeDos to load programs as needed into the Prop.

    I was running out of memory on a project using a LCD touchscreen. I broke the program into smaller pieces that get loaded based on the menu selection.

    Duane
  • Dr. MarioDr. Mario Posts: 331
    edited 2011-07-23 16:34
    If you still want easy-to-use USB host for accessing your USB jump drive, why not I suggest you look into FTDI Vinculum II chipset? FTDI also suggested it could work with hard drive formatted with FAT32 (they said it would work as long as the partition could be discovered by Vinculum II processor and external HDDs are generally BOT [Bulk-Only Transport] USB hardware). And at Mouser, they have ready-to-use board containing Vinculum II USB controller: http://www.mouser.com/ProductDetail/FTDI/V2DIP2-48/?qs=sGAEpiMZZMuXfccvO5DzamN7TLYwZGWj and it do support UART and SPI signaling interface (as mentioned in the manual for this board) so it could work for you.

    Otherwise SD works too (they're also already plentiful cheaper).
  • tjbd332tjbd332 Posts: 3
    edited 2011-07-24 16:11
    Thanks for all the post. I will probably just try the sd card since it sounds like it is a lot easier.
  • prof_brainoprof_braino Posts: 4,313
    edited 2011-07-24 18:07
    StefanL38 wrote: »
    You will have to code a mechanism to overload areas in the internal HUB-RAM.

    It will be much easier to use a propeller-board with additional SD-card/RAM
    Stefan
    tjbd332 wrote: »
    what i would like to do is to use the a usb flash drive as extra memory to store and run vary large programs (30000+lines of code).

    If you are still looking for options, propforth can use the SD cards for running very large programs (scripts, text files to the size of the SD card) and for external memory (to the size of the SD card), and for storage ( files to the size of the SD card). Sort of like the the SD is extended memory, and the hub is L2 cache, and the COG is L1 cache. (sort of, you might have to have a good imagination).
Sign In or Register to comment.