Log writing to FlashDisk on iMX6

Hello, I’d like to know if there are possible issues to use the “FlashDisk” memory to output my application log which is updated continuously while the program is running. Will the EEPROM memory be degraded by this usage? Should I use a SD card instead?


Hi @brownb ,

FlashDisk should not be written too often as it might degrade. It’s OK to do some mild logging, but it’s important to write data in big chunks and not so often. The worst would be a few bytes every second. Better is to buffer the data until there is something like 16KB to write, then write all 16KB in once. Even this should not be more than every few minutes.
On SD Card you basically have the same issue… but the advantage is that you can replace it when it’s worn out.

1 Like