This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

problem with fds in the light swich project

Hello, I am trying to combine light switch client example with fds functionality.
For these I did next steps:
  1. Included all ‘c’ files from the fds example to the light switch project.
  2. Added links for all ‘h’ files to the "User Include Directories" in light switch project 
  3. Activated necessary variables in the sdk_config.c 
  4. Copy main.c from the fds_flash to the light switch project. 
  5. Changed all NRF_ messages to __LOG l.
As a result there aren’t any mistakes after compilation project, but program sticks in wait_for_fds_ready() function in the loop.
 
My main.c.: 
 
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdint.h>
#include <string.h>
#include "nrf.h"
#include "nordic_common.h"
#ifdef SOFTDEVICE_PRESENT
#include "nrf_sdh.h"
#include "nrf_sdh_ble.h"
#else
#include "nrf_drv_clock.h"
#endif
#include "fds.h"
#include "app_timer.h"
#include "app_error.h"
#include "nrf_cli.h"
#include "fds_example.h"
#define NRF_LOG_MODULE_NAME app
#include "nrf_log.h"
#include "nrf_log_ctrl.h"
#include "log.h"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX