SD card interface

Questions on other types of hardware and getting it talking to the ARM CPU
YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

SD card interface

Post by YahooArchive »

>
> Has anyone tried to access/write data to any form of flash card
> successfully or are there any code samples? I'm assuming it could be
> done through SPI. Sparkfun has a microSd board that looks pretty
> cool. Let me know. Thanks!
>
> Bob
>

Yes, we are working on that. We are using the Sparkfun micro-sd
breakout board for proto work. I have it reading data. Whether its
correct or not I haven't determined. Still needs a write function.
This is in C and Basic. See http://gpscruise.wikispaces.com, Forum Joe.

I used a pic mmc.c example from http://www.captain.at/electronics
(thats from the header file, may not be right). But google on pic+mmc.

I've got a proto card hopefully coming tomorrow so I can get back onto
software, so the mmc should be done soon.

Joe



YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: SD card interface

Post by YahooArchive »

>
> Has anyone tried to access/write data to any form of flash card
> successfully or are there any code samples? I'm assuming it could
be
> done through SPI. Sparkfun has a microSd board that looks pretty
> cool. Let me know. Thanks!
>
> Bob
>

This is on my list of things to accomplish soon. I have read a bit
the DOSonChip product. I understand that it may not be as robust as
it is presented as: http://forum.sparkfun.com/viewtopic.php?t=6863

In the same thread, they make mention of a product from GHI
Electronics that appears like they are able to get >60KB/sec xfer
rates...

Their SD Media Solution: http://www.ghielectronics.com/details.php?
id=1&sid=2

Their USB Media Solution: http://www.ghielectronics.com/details.php?
id=1&sid=3

Their SD/USB Media Solution Combo:
http://www.ghielectronics.com/details.php?id=5&sid=6

Their main products page: http://www.ghielectronics.com/products.php

Look like a pretty solid product...

If anyone tries it before I post indicating that I have, please post
with your results...

-t

brucee
Site Admin
Posts: 33
Joined: Thu Dec 18, 2008 8:45 pm

Re: SD card interface

Post by brucee »

> can someone tell me how to hook a sd card to an armite board, or point
> me to the documentation on how to do it your self. I am a newbie so
> please go easy on me ok.

There are a couple solutions, some available from SparkFun. You could
connect to the card directly and then integrate someone elses FAT code
into it, but when you were done, I'm not sure how much room you'd have
left for your program.

There are SD cards at SparkFun that have an embedded CPU, often an
LPC2103 that take serial commands and then read/write to the SD card.
A few dollars more, but would save you a lot of time.

cfbsoftware
Posts: 8
Joined: Fri Oct 19, 2012 5:55 am
Contact:

Re: SD card interface

Post by cfbsoftware »

and then integrate someone elses FAT code into it, but when you were done, I'm not sure how much room you'd have left for your program.
Good point! For simple datalogger type applications the approach I would recommend is to forget about using a FAT file system - that would be overkill for the limited resources available on the MCU. All you need to do is write directly to the SD card on the microcontroller. A C# / VB / Delphi etc. app could then be written on the PC to access the SD card as a raw device and turn the data into some intelligible form.
Chris Burrows
CFB Software
Astrobe v4.4 (Mar 2013): Oberon Development System for the PRO-Plus and Super-PRO

YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: SD card interface

Post by YahooArchive »

Libraries and demo source code in the Oberon-07 programming language for
accessing SD cards and the Nokia 6100 132x132 colour LCD display have now been
developed for inclusion in the next release of the Armaide development system.

I'm investigating how to setup hardware options to provide these additional
features for ARMmite users as well. The most accessible approach seems to me to
be to use something like the SparkFun breakout boards:

LCD Display:

http://www.sparkfun.com/commerce/produc ... ts_id=8600

SD / MMC:

http://www.sparkfun.com/commerce/produc ... cts_id=204

Has anybody gone already tried connecting these boards to an ARMmite? If so it
might save me 'reinventing the wheel'.

Or is there a better way?

Regards,
Chris Burrows

CFB Software
Armaide v2.1: LPC2xxx Oberon-07 Development System
http://www.cfbsoftware.com/armaide

YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: SD card interface

Post by YahooArchive »

Hey,

So I am trying to attach a uALFAT MicroSD Board
(http://www.ghielectronics.com/product/102) to my ARMweb so I can have more
storage space. Has anyone set this up on their ARMweb? I have looked at the
documentation the GHI Electronic website, but I couldn't figure out how to
connect it to my ARMweb.

Specifically, I can't find the 3.3v, TXT, RXD, and GND inputs on the SD card.
Also, will I need to install software on it to work with the ARMweb?

Any help would be amazing. I've been stuck on this problem for a few days.

-Renaldo

YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: SD card interface

Post by YahooArchive »

Renaldo,

You're running into nomenclature differences.

#11 is 3.3v (Vcc)
#10 is GND
#1 is TXD
#2 is RXD

HTH,

Jeff Engel
Happiness is - positive intake manifold pressure.

YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: SD card interface

Post by YahooArchive »

Its in the Schematic,

1 tx
2 rx
10 gnd(vss)
11 3.3v(vcc)

I don't have this card, but other alfat products I have do not require anything,
they are already loaded with firmware ready to go.

YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: SD card interface

Post by YahooArchive »

I have a ualfat device. I've done up an ARMbasic library for same. I'll
post my code to the Group's file section later today, if there is interest.
Attachments
ARMbasic uAL-FAT lib files & test apps.zip
BASIC source for uAL FAT SD card
(23.16 KiB) Downloaded 654 times

YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: SD card interface

Post by YahooArchive »

There is definitely interest!

Post Reply