Shop OBEX P1 Docs P2 Docs Learn Events
Best method for transferring files to onboard SD? — Parallax Forums

Best method for transferring files to onboard SD?

Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
edited 2011-01-30 09:51 in Propeller 1
With the microSD card becoming more and more common, I'm looking for the best way to transfer files from a propeller connected PC directly to the SD card. (Without moving the card)

I'm curious what methods are being used?

OBC

Comments

  • Dr_AculaDr_Acula Posts: 5,484
    edited 2011-01-29 20:17
    I'm using xmodem with code in Kyedos at the propeller end, and code in vb.net on the PC so it is just a few mouseclicks to send a file.
  • AntoineDoinelAntoineDoinel Posts: 312
    edited 2011-01-30 02:30
    Recently I built a stable mini box with the RamBlade, and did it in a way that makes difficult to remove the card, so I faced the same need.

    I'm using the "sb"/"rb" pair from sphinix by Dave Hein. It uses YModem protocol and works great at 115200bps with TeraTern 4.67.

    Haven't had many luck with other file transfer options, i.e. with the standalone YModem I'm only able to send from propeller, but not to receive.

    Again it may be just me, also had problems using KyeDOS with this config: the CS signal is apparently asserted all the time. Which prompted me to check the source, but there's code to correctly release it, so it must be something more subtle.

    The whole sphinix package is an underrated gem IMHO: it's the closest of the bunch to a real OS, and has full subdirectory support. The only main feature lacking is a launcher for standalone binaries.
  • MagIO2MagIO2 Posts: 2,243
    edited 2011-01-30 02:45
    Quick and easy solution for small files:
    You only need a small program that mounts the SD card, opens the file and writes the content of a dat section that you imported with the file instruction to the SD card.
    That program you simply load to RAM and there is your file.
  • potatoheadpotatohead Posts: 10,261
    edited 2011-01-30 09:51
    For PASM, I've built the object in a SPIN wrapper that fires it off for testing. Then include the SD card, and write the HUB image to SD to be loaded and started later.

    For small data sets, just including it in a DAT, with the file: operator works too. Write a little program that writes the file, write it, then go from there.
Sign In or Register to comment.