From e750ef053edaf12e6185503bbfd4262794bbaeb7 Mon Sep 17 00:00:00 2001 From: Alex Tsitsiura Date: Wed, 19 Jul 2023 17:45:15 +0300 Subject: [PATCH] [Telink] Update zephyr config (#28051) * [Telink] Set correct NVS settings * [Telink] Enable stream flash erase by default --- config/telink/app/zephyr.conf | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/config/telink/app/zephyr.conf b/config/telink/app/zephyr.conf index 680c6b4634fbe0..ec5f0adb843360 100644 --- a/config/telink/app/zephyr.conf +++ b/config/telink/app/zephyr.conf @@ -111,12 +111,13 @@ CONFIG_OPENTHREAD_EXTERNAL_HEAP=y # Config dynamic interrupts to have posibility to switch between BLE/Thread radio drivers CONFIG_DYNAMIC_INTERRUPTS=y -# Set multiplicator of Name Value Storage (NVS) as 8 to reach NVS sector size 2048 -# nvs_sector_size = flash_page_size * mult = 256 * 8 = 2048 -CONFIG_SETTINGS_NVS_SECTOR_SIZE_MULT=8 +# Set multiplicator of Name Value Storage (NVS) as 16 to reach NVS sector size 4096 +# nvs_sector_size = flash_page_size * mult = 256 * 16 = 4096 +CONFIG_SETTINGS_NVS_SECTOR_SIZE_MULT=16 # Enable NVS lookup cache CONFIG_NVS_LOOKUP_CACHE=y +CONFIG_NVS_LOOKUP_CACHE_SIZE=512 # Reboot system when fault happened CONFIG_TELINK_B91_REBOOT_ON_FAULT=y @@ -132,6 +133,7 @@ CONFIG_GETOPT_LONG=y # flash stream functionality CONFIG_STREAM_FLASH=y +CONFIG_STREAM_FLASH_ERASE=y # In current config/zephyr/Kconfig # next deprecated values are selected