MSD + fat system + sd

OP #1173404
Hi all,

it's been a long time that i have not read the forum . Too busy i think
:P

SO I have a project to make a complete MSD solution based on at91sam7s
and at91sam7x series. I have found on this forum a solution but it is
not complete. The fat system is for read file only, I cannot create file
with this libreay.

So I think of usin the efsl 0.2.9rc7_mt for the library and i will try
to merge this with the msd part of the other project.

I wonder what is the status efsl projet ? is it usable ?

regards

jonathan
Jonathan Dumaresq wrote:
> So I think of usin the efsl 0.2.9rc7_mt for the library and i will try
> to merge this with the msd part of the other project.
>
I wonder why you would choose to use an old version. Current version is
0.3.6


> I wonder what is the status efsl projet ? is it usable ?
>
That question is best addressed by the project itself surely!?
http://efsl.be/

Martin has already done all the work for you here (although admittedly
using an the older 0.2.x source):
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/efsl_arm/index.html

I have used it for an LPC2xxx based serial data logger. It worked.

Forgive my ignorance perhaps, but what is MSD in any case? (Most
Significant Digit was the first thing that sprung to my mind ;-) )

Clifford
Clifford Slocombe wrote:
> Forgive my ignorance perhaps, but what is MSD in any case? (Most
> Significant Digit was the first thing that sprung to my mind ;-) )

Ok, Mass Storage Device seems likely? Why would you not just say that I
hate TLAs ;-)
OP
Clifford Slocombe wrote:
> Clifford Slocombe wrote:
>> Forgive my ignorance perhaps, but what is MSD in any case? (Most
>> Significant Digit was the first thing that sprung to my mind ;-) )
>
> Ok, Mass Storage Device seems likely? Why would you not just say that I
> hate TLAs ;-)

yeah Mass storage device.  Sorry about the confusion :)

Jonathan
it's been a long time that i have not read the forum . Too busy i think
:P

SO I have a project to make a complete MSD solution based on at91sam7s
and at91sam7x series. I have found on this forum a solution but it is
not complete. The fat system is for read file only, I cannot create file
with this libreay.

So I think of usin the efsl 0.2.9rc7_mt for the library and i will try
to merge this with the msd part of the other project.

I wonder what is the status efsl projet ? is it usable ?


"SO I have a project to make a complete MSD solution based on at91sam7s
and at91sam7x series. I have found on this forum a solution but it is
not complete. The fat system is for read file only, I cannot create file
with this libreay."

1. I had the same problem, but i resolved it. You have to add write
function to fat liblary. The read and write function are very similar.
Copy the read function, rename it to write ( int fat_blockread(int fd,
void *buffer)  --> int fat_blockwrite(int fd, void *buffer) ), and
change  sd_readsector(block, buffer, 0, 0); to  sd_writesector(block,
buffer, 0, 0);

2. I also merge msd with ChaN's FAT-Module from
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/efsl_arm/index.html
It's work wery god. I think it is better solution than efsl.
Moderator
Clifford Slocombe wrote:
> Be cautious, ChaN's FatFS is only licensed for non-commercial use, which
> may or may not be an issue.
I don't think so. From his "00readme.txt:
<cite>
  The FatFs/Tiny-FatFs module is a free software and there is no
warranty.
  The FatFs/Tiny-FatFs module is opened for education, reserch and
development.
  You can use and/or modify it for personal, non-profit or profit use
without
  any restriction under your responsibility.
</cite>
Jonathan Dumaresq wrote:
> Hi all,
>
> it's been a long time that i have not read the forum . Too busy i think
> :P
>
> SO I have a project to make a complete MSD solution based on at91sam7s
> and at91sam7x series. I have found on this forum a solution but it is
> not complete. The fat system is for read file only, I cannot create file
> with this libreay.
>
> So I think of usin the efsl 0.2.9rc7_mt for the library and i will try
> to merge this with the msd part of the other project.
>
> I wonder what is the status efsl projet ? is it usable ?
>
> regards
>
> jonathan

Hi Jonathan,

I'm working on a similar project, I'm using:
AT91SAM7256
SD memory card
The Atmel AT91SAM7X-EK Software Package for the USB part.
EFSL (not the latest..) for the file system.

and it works just fine, at least where I am for the moment.

I will look for the latest EFSL.
One thing that annoys me is that EFSL doesn't support long filenames.

Hans N.
Martin Thomas wrote:
> Clifford Slocombe wrote:
>> Be cautious, ChaN's FatFS is only licensed for non-commercial use, which
>> may or may not be an issue.
> I don't think so. From his "00readme.txt:
> <cite>
>   The FatFs/Tiny-FatFs module is a free software and there is no
> warranty.
>   The FatFs/Tiny-FatFs module is opened for education, reserch and
> development.
>   You can use and/or modify it for personal, non-profit or profit use
> without
>   any restriction under your responsibility.
> </cite>

I stand corrected. I read it, but must have missed the "or profit" part.
I would suggest he re-words it to make it clearer perhaps "The
FatFs/Tiny-FatFs module is opened for education, research and commercial
development".

Oh well, that pleass me in any case since I have an application for AVR
this may fit. Thanks.

Reply

A question of your own? This thread is over 18 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.