EmbDev.net

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


von coubi (Guest)


Rate this post
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 ...

von Martin Thomas (Guest)


Rate this post
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

von coubi (Guest)


Rate this post
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...

von Mh T. (lpc2103)


Rate this post
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

von Sevc D. (sevc)


Rate this post
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

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.