Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

Flash File System

Flash File System

2005-12-25 by mucko

Hi!

For my designed hardware i want to make some storage
through an SPI bus to an external flash chip.For this
purpose is there any file system that can be used for
data storage?

regards,



		
__________________________________________ 
Yahoo! DSL \ufffd Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com

Re: [lpc2000] Flash File System

2005-12-25 by Tom Walsh

mucko wrote:

>Hi!
>
>For my designed hardware i want to make some storage
>through an SPI bus to an external flash chip.For this
>purpose is there any file system that can be used for
>data storage?
>
>  
>
Yes, I am doing this with an SD card on the SPI bus.  The sources are 
available for a FAT16 filesystem is at:

http://www.openhardware.net/?title=RDCF2%20DOS%20FAT%20Filesystem%20for%20LPC2138&dir=rdcf2&file=rdcf2lpc2138.html

It is integrated a total solution using the newlib filestreams (fopen(), 
fread(), etc).  But, you still use the core of the FAT  driver and make 
direct calls into the driver to do your file I/O.  It is more convenient 
for me to have the newlib interface as I need newlib in my project.


Regards,

TomW


-- 
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net, http://cyberiansoftware.com
"Windows? No thanks, I have work to do..."
----------------------------------------------------

Re: [lpc2000] Flash File System

2005-12-25 by bertrik@zonnet.nl

Citeren mucko <mukadder_c@...>:

> Hi!
> 
> For my designed hardware i want to make some storage
> through an SPI bus to an external flash chip.For this
> purpose is there any file system that can be used for
> data storage?

Check out the embedded file systems project on sourceforge
http://sourceforge.net/projects/efsl
Version 0.2.5 "stable" already has a port for the LPC made by
Martin Thomas. Basically the only things I had to do to make it work
on my hardware (embedded artists LPC2148 board) was to configure
some #defines to select the SPI port (SPI0 or SSP/SPI1) and which
pins functions as the SPI select pin.

IIRC, a little test program combined with the library was just 16 kB.

Kind regards,
Bertrik

-- 
_____________________________________________________________________
Nu 12 maanden gratis Live Eredivisievoetbal bij 20 Mb ADSL voor maar
EUR 39,95 per maand. Bestel op www.versatel.nl/voetbal

RE: [lpc2000] Flash File System

2005-12-26 by martijnbroens@yahoo.co.uk

Hi Tom,

 

I tried to compile it using keil's uVision3 but i get the error that it
can't find reent.h/ neither can i, can you help me out?? Didn't that come in
the tar or is this a file for gnu??

 

Thanks in advance

Martijn Broens

 

  _____  
Show quoted textHide quoted text
From: lpc2000@yahoogroups.com [mailto:lpc2000@yahoogroups.com] On Behalf Of
Tom Walsh
Sent: zondag 25 december 2005 16:49
To: lpc2000@yahoogroups.com
Subject: Re: [lpc2000] Flash File System

 

mucko wrote:

>Hi!
>
>For my designed hardware i want to make some storage
>through an SPI bus to an external flash chip.For this
>purpose is there any file system that can be used for
>data storage?
>
>  
>
Yes, I am doing this with an SD card on the SPI bus.  The sources are 
available for a FAT16 filesystem is at:

http://www.openhardware.net/?title=RDCF2%20DOS%20FAT%20Filesystem%20for%20LP
C2138
<http://www.openhardware.net/?title=RDCF2%20DOS%20FAT%20Filesystem%20for%20L
PC2138&dir=rdcf2&file=rdcf2lpc2138.html> &dir=rdcf2&file=rdcf2lpc2138.html

It is integrated a total solution using the newlib filestreams (fopen(), 
fread(), etc).  But, you still use the core of the FAT  driver and make 
direct calls into the driver to do your file I/O.  It is more convenient 
for me to have the newlib interface as I need newlib in my project.


Regards,

TomW


-- 
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net, http://cyberiansoftware.com
"Windows? No thanks, I have work to do..."
----------------------------------------------------





SPONSORED LINKS 


Microprocessor
<http://groups.yahoo.com/gads?t=ms&k=Microprocessor&w1=Microprocessor&w2=Mic
rocontrollers&w3=Pic+microcontrollers&w4=8051+microprocessor&c=4&s=93&.sig=t
sVC-J9hJ5qyXg0WPR0l6g>  

Microcontrollers
<http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Microprocessor&w2=M
icrocontrollers&w3=Pic+microcontrollers&w4=8051+microprocessor&c=4&s=93&.sig
=DvJVNqC_pqRTm8Xq01nxwg>  

Pic
<http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Microprocessor&
w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+microprocessor&c=4&s=93&
.sig=TpkoX4KofDJ7c6LyBvUqVQ>  microcontrollers 


8051
<http://groups.yahoo.com/gads?t=ms&k=8051+microprocessor&w1=Microprocessor&w
2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+microprocessor&c=4&s=93&.
sig=1Ipf1Fjfbd_HVIlekkDP-A>  microprocessor 

 

 

 

  _____  

YAHOO! GROUPS LINKS 

 

*	 Visit your group "lpc2000 <http://groups.yahoo.com/group/lpc2000> "
on the web.
  
*	 To unsubscribe from this group, send an email to:
 lpc2000-unsubscribe@yahoogroups.com
<mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe> 
  
*	 Your use of Yahoo! Groups is subject to the Yahoo!
<http://docs.yahoo.com/info/terms/>  Terms of Service. 

 

  _____  



[Non-text portions of this message have been removed]

Re: [lpc2000] Flash File System

2005-12-26 by Tom Walsh

martijnbroens@... wrote:

>Hi Tom,
>
> 
>
>I tried to compile it using keil's uVision3 but i get the error that it
>can't find reent.h/ neither can i, can you help me out?? Didn't that come in
>the tar or is this a file for gnu??
>
>  
>
Hmmm, did you read the whole webpage or just go for the file sources?

The core code is in rdcf2.c, this is the FAT16 driver, everything else 
is supporting code: interface to SD card, interface to newlib, Date & 
Time routines, etc.  I know nothing about Keil, I'm a strictly Linux 
based development here and I tend to use OpenSource whenever I can.

I'm using it for an integrated solution: newlib, ARM + gcc toolset.  The 
rdcf2.c code is public domain, you can take it and make it work with any 
other library / compiler systems that wish.


Regards,

TomW

-- 
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net, http://cyberiansoftware.com
"Windows? No thanks, I have work to do..."
----------------------------------------------------

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.