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

FDS_ERR_NOT_INITIALIZED

Hey guys, With the ble_app_exemple, I manage to add the FDS libraries. Unfortunately, when i run the example in Debug, I got error 2 for fds(FDS_ERR_NOT_INITIALIZED). I'm currently working with Nrf52 s132 pca10040 with SDK11 on a custom board. Also, I'm trying to save characteristic data in the flash, that's why I'm using FDS. I'm not sure how to initiate the FDS handler. Plus, i saw some blog talking about flag? I tried to use it but I'm not sure what flags are suppose to do?

Thanks for the help!

Parents
  • FormerMember
    0 FormerMember

    For the FDS events to be forwarded to the FDS module, fs_sys_event_handler() has to be added to sys_evt_dispatch() in main.c:

    static void sys_evt_dispatch(uint32_t sys_evt)
    {
        fs_sys_event_handler(sys_evt);
        ble_advertising_on_sys_evt(sys_evt);
    }
    

    Could you check if a missing fs_sys_event_handler() in sys_evt_dispatch() is the reason for the problem?

Reply
  • FormerMember
    0 FormerMember

    For the FDS events to be forwarded to the FDS module, fs_sys_event_handler() has to be added to sys_evt_dispatch() in main.c:

    static void sys_evt_dispatch(uint32_t sys_evt)
    {
        fs_sys_event_handler(sys_evt);
        ble_advertising_on_sys_evt(sys_evt);
    }
    

    Could you check if a missing fs_sys_event_handler() in sys_evt_dispatch() is the reason for the problem?

Children
Related