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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/08/06 09:33
Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#111587 - Something to try...
Responding to: ???'s previous message

If you only want to store one file, one trick is to format the memory card and write a file full of 0xff's to the card whilst connected to the PC. Find out the starting cluster and start writing your data from this point as FAT allocates the clusters sequentially. To read your file on the PC is as simple as reading the file! However, the remaining part of the file is full of 0xff's. You can write a simple program in your language of choice on the PC to remove these. So you get the advantages of a file system without the code overhead on your micro.

Actually, if you only want to write a text file, fill the file with 0x1a's which are an end of file marker (methinks).

List of 17 messages in thread
TopicAuthorDate
SD/MMC CARD with FAT            01/01/70 00:00      
   There is a company that wants $$$            01/01/70 00:00      
      Possibly less $$            01/01/70 00:00      
   they will be lucky            01/01/70 00:00      
      Money is the problem            01/01/70 00:00      
         Use the search box            01/01/70 00:00      
         example ide interface code            01/01/70 00:00      
   Discussion about this in the past...            01/01/70 00:00      
      Nuts and volts            01/01/70 00:00      
         Something to try...            01/01/70 00:00      
            File length            01/01/70 00:00      
               FAT are not suitable for micros with ...            01/01/70 00:00      
                  Been there done that            01/01/70 00:00      
                     thats interesting            01/01/70 00:00      
               file length -> change in FAT            01/01/70 00:00      
   DFSS            01/01/70 00:00      
   O lot of work....            01/01/70 00:00      

Back to Subject List