From 2eeff9aab0e2e970a971a5a33607b949ecedff5e Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Mon, 5 Nov 2018 22:49:56 +0100 Subject: [PATCH] subsys: nvs: increase NVS_BLOCK_SIZE The Atmel SAM E70 flash has a 16-byte write block size. Increase the NVS_BLOCK_SIZE a bit and take some margin. This might also improve the performances by reducing the calls to the flash driver when moving data during garbage collection. Signed-off-by: Aurelien Jarno --- subsys/fs/nvs/nvs_priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/fs/nvs/nvs_priv.h b/subsys/fs/nvs/nvs_priv.h index 3c4b39590b6..9fc56a733a8 100644 --- a/subsys/fs/nvs/nvs_priv.h +++ b/subsys/fs/nvs/nvs_priv.h @@ -26,7 +26,7 @@ extern "C" { */ #define NVS_STATUS_NOSPACE 1 -#define NVS_BLOCK_SIZE 8 +#define NVS_BLOCK_SIZE 32 /* Allocation Table Entry */ struct nvs_ate {