Hello. I have a flash memory with these specifications:
Page size: 256 bytes
Sector size : 16 pages (4096 bytes)
I am writing 25 byte chunks of data which gives me 10 chunks per page +6 extra bytes that I skip and leave empty.
The issue for me is that the smallest erase is sector which only allows me to erase 16 pages. That means whenever I fill my flash memory, I need to erase first 16 pages and start rewriting the oldest data with the new data.
It is not good that I can only erase 16 pages because I loose 160 chunks of data just to rewrite a new 25 byte chunk.
I wonder what are the ways to manage that? What should I do when I want to delete the oldest chunk and rewrite this with a new chunk?
Page size: 256 bytes
Sector size : 16 pages (4096 bytes)
I am writing 25 byte chunks of data which gives me 10 chunks per page +6 extra bytes that I skip and leave empty.
The issue for me is that the smallest erase is sector which only allows me to erase 16 pages. That means whenever I fill my flash memory, I need to erase first 16 pages and start rewriting the oldest data with the new data.
It is not good that I can only erase 16 pages because I loose 160 chunks of data just to rewrite a new 25 byte chunk.
I wonder what are the ways to manage that? What should I do when I want to delete the oldest chunk and rewrite this with a new chunk?