Has anyone programmed SmartMedia memory devices? I have an application that I wrote for small-black SmartMedia and I'd like to make it work with large-block devices. My biggest concern has to do with the restriction on multiple writes to a sector.
The application writes data in page-sized chunks, but allocates space in erase-block-sized chunks. When a file is closed for writing, the present application writes the size in the spare area of the first block; when a file is deleted, the last byte of the spare area of the fourth page on each block is written with zero. This works nicely with the existing devices, but is contrary to the specification for new devices which forbids writing pages out of order.
What would be the best way of making the software be readily adaptable to different SmartMedia devices? The chips are soldered to the board, so compatibility with PC file systems is not an issue.
|