Skip to content

Commit

Permalink
[Silabs] Add more gn arg to configure NVM3. (project-chip#35717)
Browse files Browse the repository at this point in the history
Add two new gn arg(sl_nvm3_nvm_size and sl_nvm3_cache_size) to configure NVM3.

Developers can analyze their storage needs to adjust these two parameters, which can effectively improve storage efficiency.

Especially after project-chip#35480, developers would like to adjust these configuration.
  • Loading branch information
fuxiaoming-lumi authored and yyzhong-g committed Dec 11, 2024
1 parent 9d801d8 commit a283ce8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion third_party/silabs/efr32_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ declare_args() {
enable_openthread_cli = !(use_rs9116 || use_wf200 || use_SiWx917)
kvs_max_entries = 255
sl_nvm3_max_object_size = 4092
sl_nvm3_nvm_size = 40960
sl_nvm3_cache_size = 200

# Use Silabs factory data provider example.
# Users can implement their own.
Expand Down Expand Up @@ -424,7 +426,8 @@ template("efr32_sdk") {
"__STARTUP_CLEAR_BSS",
"HARD_FAULT_LOG_ENABLE",
"CORTEXM3_EFM32_MICRO",
"NVM3_DEFAULT_NVM_SIZE=40960",
"NVM3_DEFAULT_CACHE_SIZE=${sl_nvm3_cache_size}",
"NVM3_DEFAULT_NVM_SIZE=${sl_nvm3_nvm_size}",
"NVM3_DEFAULT_MAX_OBJECT_SIZE=${sl_nvm3_max_object_size}",
"KVS_MAX_ENTRIES=${kvs_max_entries}",
"CORTEXM3=1",
Expand Down

0 comments on commit a283ce8

Please sign in to comment.