nRF5 SDK v11.0.0
Macros
fstorage configuration

fstorage configuration options. More...

Macros

#define FS_QUEUE_SIZE   (4)
 Configures the size of fstorage internal queue. More...
 
#define FS_OP_MAX_RETRIES   (3)
 Configures how many times should fstorage attempt to execute an operation if the SoftDevice fails to schedule flash access due to high BLE activity. More...
 
#define FS_MAX_WRITE_SIZE_WORDS   (256)
 Configures the maximum number of words to be written to flash in a single operation. If data length exceeds this value, the data will be written down in several chunks, as necessary. More...
 

Detailed Description

fstorage configuration options.

Macro Definition Documentation

#define FS_MAX_WRITE_SIZE_WORDS   (256)

Configures the maximum number of words to be written to flash in a single operation. If data length exceeds this value, the data will be written down in several chunks, as necessary.

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.

#define FS_OP_MAX_RETRIES   (3)

Configures how many times should fstorage attempt to execute an operation if the SoftDevice fails to schedule flash access due to high BLE activity.

Increase this value if fstorage events return the FS_ERR_OPERATION_TIMEOUT error often.

#define FS_QUEUE_SIZE   (4)

Configures the size of fstorage 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.


Documentation feedback | Developer Zone | Updated