Optimized for data persistence with minimal flash wear

Asset Tracker Template

tags
Asset Tracker Template
# Storage enabled with persistent backend
CONFIG_APP_STORAGE=y
CONFIG_APP_STORAGE_BACKEND_LITTLEFS=y

# Higher record count reduces rewrite frequency
CONFIG_APP_STORAGE_MAX_RECORDS_PER_TYPE=50

To improve wear leveling further, grow the littlefs_storage partition in att_flash_partitions.dtsi so writes are spread across more flash blocks. See Minimum partition size above for the exact devicetree snippet to edit.