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
  • @Kristin : No it's not working on my board:( I took the fds part, copy and paste it in my code, I have the same error(2).

    [EDIT]:

    I found the function who's returning this error, in fds.c,

    static ret_code_t record_find(uint16_t const * const p_file_id, uint16_t const * const p_record_key, fds_record_desc_t * const p_desc, fds_find_token_t * const p_token) { if (!flag_is_set(FDS_FLAG_INITIALIZED)) { return FDS_ERR_NOT_INITIALIZED; }

    My guess is, I don't know how to set a flag haha. Can you help me please

Reply
  • @Kristin : No it's not working on my board:( I took the fds part, copy and paste it in my code, I have the same error(2).

    [EDIT]:

    I found the function who's returning this error, in fds.c,

    static ret_code_t record_find(uint16_t const * const p_file_id, uint16_t const * const p_record_key, fds_record_desc_t * const p_desc, fds_find_token_t * const p_token) { if (!flag_is_set(FDS_FLAG_INITIALIZED)) { return FDS_ERR_NOT_INITIALIZED; }

    My guess is, I don't know how to set a flag haha. Can you help me please

Children
No Data
Related