nRF5 SDK v11.0.0
Macros
Configuration options

Configuration options for FDS. More...

Macros

#define FDS_OP_QUEUE_SIZE   (4)
 Configures the size of the internal queue.
 
#define FDS_CHUNK_QUEUE_SIZE   (8)
 Determines how many fds_record_chunk_t structures can be buffered at any time.
 
#define FDS_MAX_USERS   (3)
 Configures the maximum number of callbacks that can be registered.
 
#define FDS_VIRTUAL_PAGES   (3)
 Configures the number of virtual flash pages to use. More...
 
#define FDS_VIRTUAL_PAGE_SIZE   (256)
 Configures the size of a virtual page of flash memory, expressed in number of 4-byte words. More...
 

Detailed Description

Configuration options for FDS.

Macro Definition Documentation

#define FDS_VIRTUAL_PAGE_SIZE   (256)

Configures the size of a virtual page of flash memory, expressed in number of 4-byte words.

By default, a virtual page is the same size as a physical page. Therefore, the default size is 1024 bytes for nRF51 ICs and 4096 bytes for nRF52 ICs.

The size of a virtual page must be a multiple of the size of a physical page.

#define FDS_VIRTUAL_PAGES   (3)

Configures the number of virtual flash pages to use.

The total amount of flash memory that is used by FDS amounts to FDS_VIRTUAL_PAGES * FDS_VIRTUAL_PAGE_SIZE * 4 bytes. On nRF51 ICs, this defaults to 3 * 256 * 4 bytes = 3072 bytes. On nRF52 ICs, it defaults to 3 * 1024 * 4 bytes = 12288 bytes.

One of the virtual pages is reserved by the system for garbage collection. Therefore, the minimum is two virtual pages: one page to store data and one page to be used by the system for garbage collection.


Documentation feedback | Developer Zone | Updated