Hi, > > Correct! If you want to log data continously only, why you want to > > spent a lot of time in implementing a file system? Just write your > > data byte4byte to your flash and wrap around if it is full. > > Definitely concur on this point. Using a file system just to > do some append-only logging like using a chainsaw to cut butter. You can't write byte-by-byte to the LPC flash. IIRC, an ECC byte cannot be changed without erasing the flash so you cannot over-program and already-programmed word. Hence you must write in groups of four bytes aligned to a word boundary. The other thing to say is that the IAP routines write a minimum of 256 bytes to a 256-byte-aligned page, so to synthesize word-wise writing you need a buffer of 256 bytes and a copy of the previous flash contents for the page. -- Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk CrossWorks for MSP430, ARM, AVR and now MAXQ processors
Message
RE: [lpc2000] Re: Adding Filesystem on LPC2138 or 2294
2005-10-11 by Paul Curtis
Attachments
- No local attachments were found for this message.