nRF5 SDK v14.0.0
Macros
Flash abstraction library configuration

Macros

#define NRF_FSTORAGE_ENABLED
 Enable the fstorage module. More...
 
#define NRF_FSTORAGE_SD_QUEUE_SIZE
 Size of the internal queue of operations. More...
 
#define NRF_FSTORAGE_SD_MAX_RETRIES
 Maximum number of attempts at executing an operation when the SoftDevice is busy. More...
 
#define NRF_FSTORAGE_SD_MAX_WRITE_SIZE
 Maximum number of bytes to be written to flash in a single operation. More...
 

Detailed Description

Macro Definition Documentation

#define NRF_FSTORAGE_ENABLED

Enable the fstorage module.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define NRF_FSTORAGE_SD_MAX_RETRIES

Maximum number of attempts at executing an operation when the SoftDevice is busy.

Increase this value if events frequently return the NRF_ERROR_TIMEOUT error. The SoftDevice might fail to schedule flash access due to high BLE activity.

Note
This is an NRF_CONFIG macro.
#define NRF_FSTORAGE_SD_MAX_WRITE_SIZE

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

This value must be a multiple of four. Lowering this value can increase the chances of the SoftDevice being able to execute flash operations in between radio activity. This value is bound by the maximum number of bytes that can be written to flash in a single call to sd_flash_write. That is 1024 bytes for nRF51 ICs and 4096 bytes for nRF52 ICs.

Note
This is an NRF_CONFIG macro.
#define NRF_FSTORAGE_SD_QUEUE_SIZE

Size of the internal queue of operations.

Increase this value if API calls frequently return the error NRF_ERROR_NO_MEM.

Note
This is an NRF_CONFIG macro.

Documentation feedback | Developer Zone | Subscribe | Updated