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

fds in sdk14

I'm trying to migrate my old app based on buttonless app sdk13 to buttonless app sdk14. I solved issuie according to migrate guide remove chunk things and etc. My app works well until I add fds_init function in my main.c file.
Here's my fds_test_init function

ret_code_t fds_test_init (void)
{
		
		ret_code_t ret = fds_register(fds_evt_handler);
		if (ret != FDS_SUCCESS)
		{
					return ret;
		}
		ret = fds_init();
		if (ret != FDS_SUCCESS)
		{
				return ret;
		}
		return NRF_SUCCESS;
		}

After I comment calling of that function in my main.c the app starts work. After comment again not working. I see nothing in RTT terminal

The same code works well with sdk13

Parents
  • It does send an fds_evt_handler for all asynchronous calls (init, write, delete, update, gc). Check

    1. You have registered your fds_evt_handler properly

    2. Your sys_evt_handler looks like this :

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

    3. Your return is 0 for the actual init call and 4. Your p_fds_evt->result is 0 on the call back

Reply
  • It does send an fds_evt_handler for all asynchronous calls (init, write, delete, update, gc). Check

    1. You have registered your fds_evt_handler properly

    2. Your sys_evt_handler looks like this :

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

    3. Your return is 0 for the actual init call and 4. Your p_fds_evt->result is 0 on the call back

Children
No Data
Related