# 39 questions

Tagged
• x
86
views
no
2

## fds still experimental in SDK13?

The SDK13 documentation shows fds/fstorage as experimental, is that still the case? Not sure if I have to roll my own or not.

Richard

41
views
no
1

## FDS error in FDS_VIRTUAL_PAGE_SIZE 1024 ?? (NRF51)

FDS error in FDS_VIRTUAL_PAGE_SIZE 1024 ?? (NRF51)

https://github.com/hubuhubu/nRF52-fds...

If I use FDS_VIRTUAL_PAGES 3, FDS_VIRTUAL_PAGE_SIZE 1024, then there comes FDS_ERR_BUSY. DO I HAVE TO GIVE DELAY BETWEEN fds_register fds_init??

(I'd like to save about 3KB size Structure ... (more)

58
views
1
vote
1

## Bug in hrs example?

I want to use FDS in my application. Lets assume I do not have a bootloader. This is part of my linker script describing memory regions.

MEMORY
{
FLASH (rx) : ORIGIN = 0x1f000, LENGTH = 0x61000
RAM (rwx) :  ORIGIN = 0x200024b0, LENGTH = 0xdb50
}


I ... (more)

29
views
no
no

## what does the 0x40000000 error of sd_app_evt_wait() mean?

I'm using FDS and define record_chunk.length_words 173. system waits for fds operation is finished and in the meanwhile, system sleeps using sd_app_wait(). Then, sd_app_evt_wait() returns 0x40000000. what does this mean?

void fstorage_upsert_data(user_data_t user_data, fds_record_desc_t * p_record_desc) {
NRF_LOG_RAW_INFO("fstorage_write_data ...
(more)

70
views
no
no

## Peer manager returns invalid peer id

In our testing we encounter some devices (Centrals with nrf52832), where the peer manager event PM_EVT_BONDED_PEER_CONNECTED contains a invalid peer id 0x4000 (allowed values are between 0..255). This seems to be caused by a wrong FDS-record. The function "pds_peer_data_iterate ... (more)

202
views
no
1

## FDS Write problem

Hello, I am using SDK 12.01 with softdevice (BLE application) and I want to write large data over flash. I am stuck with various issues. 1. When I try to write the data, FDS returns success. But write_flag is ... (more)

73
views
no
1

## Best way to save sensor data with FDS?

Hi,

I want to collect sensor-data, save it to flash and access it later. I´m not quite familiar with ways to save data and get a little bit confused by the fds library (but already managed to save and ... (more)

87
views
1
vote
2

## FDS save under same id and key

Hey, I want to save stuff to flash under the same id and key which should be no problem as shown in the documentation. But when I save it and retrieve the data only the last saved data is in ... (more)

214
views
1
vote
1

## How to save data on flash storage?

I need to save some data on the flash storage. This data will be some structures and I will write, read and modify them as and when required. I am also using peer manager in my application. Can my application ... (more)

122
views
no
no

## FDS finalized?

Is there a known date or expected date that the FDS/Fstorage will be finalized and taken out of experimental status?

I have had a few issues with the FDS fstorage library and am looking forward to it getting fixed ... (more)

86
views
no
1

## FDS initial state

Hi, Id like to understand the FDS state after flashing the device. Im trying to check if the record exists then I use it, otherwise I write a valid info into the record. For some reason after flashing the record ... (more)

92
views
1
vote
1

## FDS storage, bootloader and factory init [closed]

Hello,

I use, with success, the FDS library to save data to the flash memory. I also use, with success, the bootloader to update the application (original dual bank ble from SDK11).

Now I want to initialise the flash memory ... (more)

211
views
1
vote
1

## Flash Data Storage (FDS) SDK13

Hello,

My base project is the ble_app_uart (periph) from the SDK13 and I am using PCA10040 DK.

I enabled the FSTORAGE and FDS in the sdk_config.h, and I ... (more)

98
views
no
1

## Application data and peer manager with FDS

I have an application that uses FDS and I've recently added to it the peer manager in SDK 12.2.0, which also uses FDS. It turns out that the application data keeps being updated, so every time that ... (more)

53
views
no
no

## fds pages_init can write beyond end of m_pages array

Using SDK 12.1.0 with flash containing data from a previous version of software.

The pages_init function in fds.c does no have adequate protection to prevent writing to data beyond the end of the m_pages array. The pages ... (more)

76
views
no
no

## How to force word alignment? [closed]

I'm using SDK 12.2. The FDS operates on word-sized data. How can I ensure that my data structures are word aligned and multiples of the word size? E.g. if I'm trying to write a structure of ... (more)

42
views
no
no

## How used fdataStorage with FreeRtos hts example

Hi, I try to use the example ble_peripheral -> blr_freertos -> ble_app_hrs_freertos and I add to the thread a fds_register() and fds_init(). Problem: In the call back function, fds_evt_hanfler, FDS_EVT_INIT flag is received but not FDS_EVT_WRITE after a writing operation and fs_sys_event_handler ... (more)

65
views
no
1

## fds.c: m_op_queue.rp uninitialized

i don't see where the command queue index, m_op_queue.rp, is initialized.

when queue_process is called, the following line blows up:

fds_op_t   * const p_op = &m_op_queue.op[m_op_queue.rp];


this occurs when using peer manager and a new device bonds ... (more)

40
views
no
1

## FDS Example -> Github Repo, IAR Project/Workspace missing

Hello I was working with the Flash Storage examples in the nordic github repo. I noticed that the FDS example while it has a IAR Workspace it does not have the associated project files to allow the IAR Workspace to ... (more)

168
views
no
1

## Controller hangs with call to fds_init()

I'm using nrf52 with SDK version 12.0.0. I'm trying to use the FDS for my application. I used one of the existing fds example from link fds_example.

With this example, I call the function "fds_test_init" which ... (more)

235
views
4
1

## FDS wear-leveling not working

Hi

I've just done a few tests with the FDS system of the SDK12.2. My observation is, that the FDS doesn't properly use all assigned flash pages to reach a maximal lifetime.

I have a configuration with ... (more)

102
views
1
vote
2

## How to save data into chip flash in a easy way?

I want to open a sequential space for saving my data, about 20KB , and I want to modify or read it anytime, nordic suggest using FDS, but it seems a bit confusing. Is there any way that I can define ... (more)

368
views
no
no

## fds_record_write doesn't trigger a FDS_EVT_WRITE event

Hello,

My problem is pretty much identical to this one:

https://devzone.nordicsemi.com/questi...

My functions look exactly like the ones posted in the original question and I was indeed making the same mistake that was being made in ... (more)

663
views
9
1

## FDS garbage collector, what does it do?

Hello everyone,

I am currently porting a project from pstorage to FDS. I am testing the functionalities of FDS including create, update and delete records and I am at the point where I would like to check how does the ... (more)

282
views
no
2

## FDS record write returns error: FDS_ERR_UNALIGNED_ADDR

Hi,

I am trying to save some data in flash by using the Flash data storage. However, everytime I try to write data to the flash, the module returns this error code: FDS_ERR_UNALIGNED_ADDR

My code for the writing function is ... (more)

149
views
1
vote
1

## Segger Embedded Studio - FDS - warning .stack and hardfault

Hello everyone,

I am trying to use Segger Embedded Studio for a simple explerimental project. I started from the sample FDS example from github and build something on it. Now I create some file/records and try to remove them ... (more)

239
views
2
1

## FDS Used In Application and Peer Manager

The SDK 12.1.0 documentation for the FDS library says the following:

FDS_THREADS: If set, the FDS module can be used by multiple modules at the same time (for example, by the Peer Manager and the application). Enabling FDS_THREADS ...

(more)

1k
views
2
3

## FDS Sample Code

Hi,

I am trying to use the FDS for saving some variables and displaying them again later. I have downloaded the NRF52-fds-master sample code posted on github. However, this uses the peer manager and I don't want to include ... (more)

1k
views
1
vote
1

## SDK12 and FDS

Hello

We are about to move an old design based on the NRF51 to the more powerfull NRF52. In this context we would like to use some of the new API’s that has been introduced in the latest SDK ... (more)

223
views
no
no

## Glucose database FDS

Hi!

Would it be possible to modify the glucose example to save the database records to flash using FDS?

Keeping the overall structure of reading and writing, just changing e.g. the uint32_t ble_gls_db_record_add(ble_gls_rec_t * p_rec)and uint32_t ble_gls_db_record_get(uint8_t ... (more)

#### Statistics

• Total users: 22278
• Latest user: Camilla Samons
• Resolved questions: 9667
• Total questions: 23073

## Recent blog posts

• ### Nordic Developer Zone celebrates its 4th year of helping developers succeed - Celebrate with us and win a Nordic Thingy: 52’

Posted 2017-06-23 10:12:53 by John Leonard
• ### nRF52 Development with CLion

Posted 2017-06-22 09:50:54 by dansheme
• ### Simple GPIO driver example

Posted 2017-06-22 13:38:36 by Hans Elfberg
• ### What mom didn't tell you about ble_app_att_mtu_throughput on the nRF52840 evaluation board

Posted 2017-06-16 16:12:15 by George
• ### Introducing Nordic’s new software licensing schemes

Posted 2017-06-15 11:21:39 by Reidar Martin Svendsen

## Recent questions

• ### NRF51822 to NRF51822 Over the air update (DFU)

Posted 2017-06-25 16:25:45 by wogisha
• ### Advertising with device_name Vs whitelisting

Posted 2017-06-25 14:39:12 by raju