9 Recommended Best Practices
The following list of best design practices can help improve the overall reliability of the serial flash by minimizing frequent writes:
- Avoid frequent usage of API functions that write to the serial flash
- The creation and deletion of files also require updates to the FAT table – as a good practice avoid deleting files when not required, rewrite can be done over existing file. This will reduce unnecessary access to the FAT table.
- Avoid accessing the serial flash when the voltage is below the minimum serial flash operation voltage.
- Make sure you choose your serial flash based on the system you are developing – for example when using a serial flash rated for 2.7 V you must ensure that supply remains above 2.7 V.
- Adding an indication before power off (graceful shutdown) and making a call to sl_Stop() in the program is always the best approach