EmbDev.net

Forum: ARM programming with GCC/GNU tools Mixed EFSL with USB


Author: coubi (Guest)
Posted on:

Rate this post
0 useful
not useful
Hi everybody,
I want to upload files and directory on an SD-CARD controlled by EFSL. I
want to use the USB port for make the transfert. But I haven't any idea
about the solution to use.I don't know how to use the usart to upload
file into the SD-CARD. If anyone have an idea ...
Thanks
PS: sorry for my english ...

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 useful
not useful
coubi wrote:
> Hi everybody,
> I want to upload files and directory on an SD-CARD controlled by EFSL. I
> want to use the USB port for make the transfert. But I haven't any idea
> about the solution to use.I don't know how to use the usart to upload
> file into the SD-CARD. If anyone have an idea ...
> Thanks
> PS: sorry for my english ...

An "old school" solution would be to use the USB as a "virtual" com-port
and
transfer the files by a simple file-transfer-protocol i.e. X/Y/ZMODEM.
Another not so modern solution would be to transfer the files-content
with a self-written PC-software to the controller. This software could
use something like ZMODEM inside but would not need a virtual COM-port
but some kind of self-written USB-driver.

A modern solution would be to implement a USB mass-storage device in the
controller's firmware and use the OS's drivers. Keil has an
storage-example for LPC214x (keil.com), Atmel has one for AT91SAM7
(needs registration, at91.com/atmel.com). Once the mass-storage code is
working it should be relativly easy to interface read/writes to the
efsl-routines.

Martin Thomas

Author: coubi (Guest)
Posted on:

Rate this post
0 useful
not useful
Hi Martin,

I think, that I'll do two of this solutions because in a first case I
want to acces in SD-CARD with a little bit of security and in second way
with OS's Mass storage driver. I will use the source of Atmel for the
mass storage.

Thanks


PS : I will correct the EFSL library for correct file name if you want
this...

Author: Mh Tay (lpc2103)
Posted on:

Rate this post
0 useful
not useful
For USB mass storage device, the SD-drive appeared to Windows O/S more
like raw disc sectors.   Filesystem used is Windows own Filesystems.

EFSL is only needed when ARM7 read/write to the SD-Drive.  (ARM7 alters
the storage content and not just a simple mass storage where windows O/S
is the only one altering the storage content). That works fine if both
Windows O/S and ARM7 access the drive exclusively.

I do NOT have any idea of how to handle both ARM7 and Windows O/S
read/write the SD-Drive simultaneously (Lots of mobile phone, camera
and etc only allow you to operate exclusively).  if someone knows
how to do it, please teach me.

Thanks in advance!
Regards

Author: Sevc Dominik (sevc)
Posted on:

Rate this post
0 useful
not useful
Hi.
I read this post and question is have some real code to make easy USB
mass storage disc?? or MMC/SD card reader for GCC (WinARM)????

On Keil is example (memory) and memory is on RAM (4096).
the example is only demonstration.
Ifter inicialize copy binary image from flash to ram and then work with
ram image.
Have some idea how after write operation save data from ram to flash??
I want this only for demostration.

regards

Dzairo

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.