Posted: Mon Feb 22, 2016 10:42 pm Post subject: How to prevent against SD card memory wearing in interaction
Hi,
Know limitation of flash memory technology is finite number of Writes cycles allowed for SD card.
I want to send a continuous stream of log data from a microcontroller to SD card in such a way to prevent the card from memory wearing.
Now in my project I'm using the following code:
Code:
'sending continuous stream of data Open"TEST.TXT"ForAppendAs #10 Do Write #10 , log_data
Loop
Since data is sent is small chunks theoretically multiple Writes are executed to the same memory sector on SD card until fully filled.
Wondering if the AVR-DOS related libraries have any mechanisms preventing against the memory wearing for the above case, let's suppose collect data in a buffer and next send in burst mode to the card(?) -- OR rather -- such mechanism is a part of SD card controller functionality?
Please advise.
If the above code was not optimised please advise how to optimise it.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum