Skip to content

Commit

Permalink
[Telink] Update zephyr config (#28051)
Browse files Browse the repository at this point in the history
* [Telink] Set correct NVS settings

* [Telink] Enable stream flash erase by default
  • Loading branch information
s07641069 authored Jul 19, 2023
1 parent cc34bd9 commit e750ef0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions config/telink/app/zephyr.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e750ef0

Please sign in to comment.