Hello, I need to use storage component with wear-leveling (i need to save some data persitant quite often). I decided to use Flash Data Storage (FDS). I found fix for linker file:
SECTIONS
{
.fs_data (NOLOAD) :
{
PROVIDE( __start_fs_data = .);
KEEP(*(.fs_data))
PROVIDE( __stop_fs_data = .);
} > RAM AT>FLASH
}
and for section_vars.h
#define NRF_SECTION_VARS_ADD(section_name, type_def) \
static type_def __attribute__ ((section( "."#section_name ))) __attribute__ ((used))
Those fixes allow me to run ble_app_hrs_rscs_relay sample.
Then I want to add FDS to my project based on ble_app_hrs.After added required files to makefile, invoke register/init function and successful compilaiton struct fs_config is not initialized (all zeros). What more do I need to do?! I am using nRF5_SDK_11.0.0-2.alpha_bc3f6a0 with PCA1040 board and eclipse/gcc toolchain.