--- In l..., "mherrmann71" wrote: >
> Does anyone have a working example project made with crossworks that
> has FatFs in it for the lpc2378 or know of were to find one or at the
> very least what needs to be intergrated ?
>
> Thank you.
>
> Kind regards
> Matthias
> take a look at the following link http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/arm_memcards/index.html
i find it helps when i use fat on my sd card
> > Does anyone have a working example project made
with crossworks that
> > has FatFs in it for the lpc2378
On Mon, 20 Apr 2009, mjames_doveridge wrote:
> ... I use fatfs in my 2129 system.
Ditto here on a 2148 system.
> You *have* to ... supply at least a dummy routine for
get_fatttime() ....
> get_fattime() must return a valid time, even if 'wrong' ...
Only if you don't use the READONLY mode, BTW.
> I set MCU_ENDIAN to 2 in ff.h - this works, 1 does
not.
Yeah, same here.
The OP should also know that it FATFS can't support SD cards that
don't
have a 512-byte blocksize (and there's no way to tell by looking nor
size, I had some 1GB cards that were 1024 bytes/sec and some 2GB cards
that were 512 bytes/sec). Sweated over that one for a while trying to
figure out what was up.
-Kenny
--
Kenneth R. Crudup Sr. SW Engineer, Scott County Consulting, Los Angeles
O: 3630 S. Sepulveda Blvd. #138, L.A., CA 90034-6809 (888) 454-8181
Reply by mjames_doveridge●April 20, 20092009-04-20
--- In l..., "mherrmann71" wrote: >
> Does anyone have a working example project made with crossworks that
> has FatFs in it for the lpc2378 or know of were to find one or at the
> very least what needs to be intergrated ?
>
If it helps, I use fatfs in my 2129 system. It sits on top of an SPI interface
to an SD card. Works well.
You *have* to code up disk_write() and disk_read() and supply at least a dummy
routine for get_fatttime(), disk_initialize() and disk_ioctl().
It *may* be OK for disk_ioctl() and disk_initialize() to just return RES_OK, but
this depends on how your system works overall. get_fattime() must return a
valid time, even if 'wrong', ie. dayInMonth and month could be set to
1 and the other struct members set to 0, (that's what I do since I have no
RTC driver).
I set MCU_ENDIAN to 2 in ff.h - this works, 1 does not.
Rgds,
Martin
Reply by mherrmann71●April 19, 20092009-04-19
Does anyone have a working example project made with crossworks that
has FatFs in it for the lpc2378 or know of were to find one or at the
very least what needs to be intergrated ?