Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/22/05 06:56
Read: times


 
#92126 - few thoughts
Responding to: ???'s previous message
If you store a fixed amount of data regularly, the "filesystem" can shrink into a single number, keeping the number of stored records. You can add a timestamp and serial number to the records, still having them constant length.
For PC readibility of CF, it is enough to create one big file spanning over the whole card. You can create it on PC, finding the position of its first sector and simply write into it. Alternatively, you can create multiple files with filesizes of multiple of cluster size; on a freshly formatted CF they will be allocated after each other.
You need to consider also that the CF sector size is 512 bytes, so you need a 512B buffer to store it when adding your 20-30B. Also, this is the minimum cluster size for FAT, so if implementing FAT and storing each record as a separate file you will have huge overhead here.
Human readability can be often a bonus, consider writing your data as ASCII.
Beware, some CFs today tend to be crappy - we came across a type which has incorrectly implemented the 8-bit mode... Also you need to have a quite long reset pulse for some types to work correctly. Some of the similar projects use MMC which are said to be easier interfaced to a mcu, but I have no experience with them.

List of 20 messages in thread
TopicAuthorDate
Simple Filesystems            01/01/70 00:00      
   Here is an idea...            01/01/70 00:00      
      Thought about an EEPROM but...            01/01/70 00:00      
         if only add data and read it all at once            01/01/70 00:00      
         How big?            01/01/70 00:00      
   FAT might be overkill...            01/01/70 00:00      
      Another reason not to use FAT.            01/01/70 00:00      
      I agree            01/01/70 00:00      
   I found this too.            01/01/70 00:00      
      Good!            01/01/70 00:00      
      Are you sure?            01/01/70 00:00      
   Hmmm            01/01/70 00:00      
      few thoughts            01/01/70 00:00      
         SD cards            01/01/70 00:00      
      I got three            01/01/70 00:00      
      if what you are saying is            01/01/70 00:00      
      Hard work?            01/01/70 00:00      
         I agree            01/01/70 00:00      
   If you decide on FAT support....            01/01/70 00:00      
   Recent Article            01/01/70 00:00      

Back to Subject List