2020-03-07 03:34 AM
2020-03-07 07:34 AM
Instrument the code so it reports status and error conditions and progress.
Clear any pending errors when you start initially.
Make sure the addresses you write too are empty/blank.
Erase sectors before you write to them.