nRF5 SDK v13.0.0
Macros
Flash storage module configuration

Macros

#define FSTORAGE_ENABLED
 Enabling fstorage module. More...
 
#define FS_QUEUE_SIZE
 Configures the size of the internal queue. More...
 
#define FS_OP_MAX_RETRIES
 Number attempts to execute an operation if the SoftDevice fails. More...
 
#define FS_MAX_WRITE_SIZE_WORDS
 Maximum number of words to be written to flash in a single operation. More...
 

Detailed Description

Macro Definition Documentation

#define FS_MAX_WRITE_SIZE_WORDS

Maximum number of words to be written to flash in a single operation.

Tweaking this value can increase the chances of the SoftDevice being able to fit flash operations in between radio activity. This value is bound by the maximum number of words which the SoftDevice can write to flash in a single call to sd_flash_write, which is 256 words for nRF51 ICs and 1024 words for nRF52 ICs.

Note
This is an NRF_CONFIG macro.
#define FS_OP_MAX_RETRIES

Number attempts to execute an operation if the SoftDevice fails.

Increase this value if events return the FS_ERR_OPERATION_TIMEOUT error often. The SoftDevice may fail to schedule flash access due to high BLE activity.

Note
This is an NRF_CONFIG macro.
#define FS_QUEUE_SIZE

Configures the size of the internal queue.

Increase this if there are many users, or if it is likely that many operation will be queued at once without waiting for the previous operations to complete. In general, increase the queue size if you frequently receive FS_ERR_QUEUE_FULL errors when calling fs_store or fs_erase.

Note
This is an NRF_CONFIG macro.
#define FSTORAGE_ENABLED

Enabling fstorage module.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.

Documentation feedback | Developer Zone | Subscribe | Updated