# 34 questions

Tagged
• x
45
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)

39
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)

65
views
no
no

## 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)

87
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)

74
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)

47
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)

62
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)

136
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)

47
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)

48
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)

50
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)

31
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)

59
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)

30
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)

137
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)

203
views
2
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)

97
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)

255
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)

528
views
8
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)

218
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)

142
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)

193
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)

866
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)

208
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)

262
views
1
vote
1

## [FDS] Limited space for storing data in the flash

Hi,

I am trying to write some data into the flash of the nRF52832 SoC, but can only write around 5 kb of data. After that I will get an error of number 7, which should be related to FDS_ERR_NO_SPACE_IN_FLASH ... (more)

82
views
no
no

## fds FRESH_INSTALL, desired functionality. Attempt to build unsuccessful

I'd like to erase all the pages managed by FDS as part of a "Hard Reset" operation. fds.c has a hint of a "FRESH_INSTALL" directive (part of an enum defined in fds_internal_defs.h), but I don't see ... (more)

562
views
1
vote
1

## FDS: Updating existing records with fds_record_update

I have been debugging this problem for a few days and have exhausted all of my options. I am relatively new to embedded development so user error is not out of the question.

To start, I am using SDK 11 ... (more)

115
views
2
2

## Function fds_stat never returns

Hi

I've implemented support for the FStorage and the FDS in our application. In some cases it happens, that the function "fds_stat" does not return.

The reason can be found in the subfunction "dirty_records_stat". If an invalid header is ... (more)

364
views
1
vote
1

## Use flash data storage to write and read back record of specific record_id

I am using this flash data storage as reference https://github.com/hubuhubu/nRF52-fds...

Running fds_test_write() below, it writes to a file specified by FILE_ID, REC_KEY but to different record_id all the time. So, when reading back, I will not ... (more)

#### Statistics

• Total users: 18588
• Latest user: Jamila Pethard
• Resolved questions: 9213
• Total questions: 21765

## Recent blog posts

Posted 2017-04-11 11:49:17 by Radosław Koppel
• ### Taking a deeper dive into Bluetooth 5

Posted 2017-04-07 14:53:51 by John Leonard
• ### Logging enabled by default in SDK Bluetooth examples

Posted 2017-03-29 11:27:02 by Håvard
• ### Monitor Mode Debugging with J-Link and GDB/Eclipse

Posted 2017-03-29 05:56:12 by Daniel Veilleux
• ### Getting started with Nordic's Secure DFU bootloader, a step by step guide

Posted 2017-03-20 17:13:52 by Hung Bui

## Recent questions

• ### Is it possible to use Nordic SDK with Arduino?

Posted 2017-04-30 13:33:28 by Lola