PDA

View Full Version : I'm wanting to use the SD card today.



potatohead
05-23-2010, 04:22 AM
Can somebody point me to a simple demo program that demonstrates a good SD card driver object, open a file, write stuff to it, close?

I want to write some data to SD, then read it back for display on the screen, or to populate memory buffers.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Wiki: Share the coolness! (http://propeller.wikispaces.com/)
8x8 color 80 Column NTSC Text Object (http://obex.parallax.com/objects/550/)
Safety Tip: Life is as good as YOU think it is!

Rayman
05-23-2010, 04:31 AM
I think the test file with FSRW in OBEX does that... It's not hard at all...

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm

My Prop Products:· http://www.rayslogic.com/Propeller/Products/Products.htm

potatohead
05-23-2010, 04:44 AM
Cool, I'll go check it out. There was a lot of activity on SD card, and I didn't follow a lot of it.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Wiki: Share the coolness! (http://propeller.wikispaces.com/)
8x8 color 80 Column NTSC Text Object (http://obex.parallax.com/objects/550/)
Safety Tip: Life is as good as YOU think it is!

heater
05-23-2010, 05:02 AM
Where have you been? I thought everyone was using an SD card as a standard Prop accessory for years now.

I've be been using fsrwFemto forever now. All be it a modified version from Cluso's Triblade.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.

potatohead
05-23-2010, 05:33 AM
Sweet, it's working nicely.

I've been running SD card capable stuff, but not often. Where I've been at is video related things, and doing some labs with an o-scope. We also had some stuff to deal with this year, so I kept my prop activity simple, during that time.

Edit: battery on laptop died... Good thing, I hit save on my work before this post. Anyway, I got quite a distance away from file I/O, and just wanted a quick pointer to a jump start.

Right now, I'm building some .cog files, with PASM in them, to be loaded from the SD card, and started to free HUB memory. Needed to just see the basics of open, delete, write, read, etc...

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Wiki: Share the coolness! (http://propeller.wikispaces.com/)
8x8 color 80 Column NTSC Text Object (http://obex.parallax.com/objects/550/)
Safety Tip: Life is as good as YOU think it is!

Post Edited (potatohead) : 5/22/2010 9:49:26 PM GMT

JRetSapDoog
05-23-2010, 09:35 AM
I'm glad you asked (thanks for asking); the replies instill confidence.

Cluso99
05-23-2010, 11:30 AM
potatohead: before you go too far in reinventing the wheel, I suggest you look at Sphinx. There is a bug in SD access so be aware of that. However, if you write a program to be Sphinx aware (just like DIR, etc) then it will grow the OS. The other OS style to look at is PropCmd. I released a later version at the end of the RamBlde thread about a week ago. It uses the femto sd access and has inbuilt (rather than external) commands. There is a list of commands in the source or you can now type ? for an on screen list of them. Just recompile for your target hardware.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:

· Home of the MultiBladeProps: TriBlade (http://forums.parallax.com/showthread.php?p=786418),·RamBlade (http://forums.parallax.com/showthread.php?p=849265),·SixBlade (http://forums.parallax.com/showthread.php?p=780033), website (http://bluemagic.biz/cluso.htm)
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator) (http://forums.parallax.com/showthread.php?p=790917)
· Prop Tools under Development or Completed (Index) (http://forums.parallax.com/showthread.php?p=753439)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) (http://forums.parallax.com/showthread.php?p=778427) ZiCog (Z80) (http://forums.parallax.com/showthread.php?p=788511) , MoCog (6809) (http://forums.parallax.com/showthread.php?p=811043)·
· Prop OS: SphinxOS (http://forums.parallax.com/showthread.php?p=819353)·, PropDos (http://www.orrtech.us/propdos/) , PropCmd (http://obex.parallax.com/objects/440/)··· Search the Propeller forums (http://www.google.com/advanced_search?q=+site:forums.parallax.com&num=20&hl=en&lr=)·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz (http://www.bluemagic.biz)·· MultiBlade Props: www.cluso.bluemagic.biz (http://www.cluso.bluemagic.biz)