2011-02-07 08:01 AM
dynamic memory allocation of flash memory
2011-05-17 05:24 AM
You can't ''free'' memory, you'd need to leave a 16-bit tag as 0xFFFF so you could mark it as unused (write it to something else later). To recover flash memory, you have to erase the whole page (1K or 2K depending on part). You can however write incrementally. Once you fill a page or pages, you can erase and perform garbage collection.
2011-05-17 05:24 AM
What about a file system? If you got KEIL, look at FlashFS (
http://www.keil.com/support/man/docs/rlarm/rlarm_fs_flashfs.htm
). Or try some Open Source file system like ChaNFS...2011-05-17 05:24 AM
''What about a file system?''
Yes, it does sound rather like a simple file system! Wouldn't need all the complexities of hierarchical directories - just a single, ''root'' level. Like early MS-DOS...?
2011-05-17 05:24 AM
Simple unless you have to cater for power interruption (or reset) while writing without corrupting the file system
2011-05-17 05:24 AM
Any write operation to any data storage is critical regardless whether done by own code or by verified file system.