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
  • I've just simplified an example. I take ble_app_uart example in sdk14, and add just two functions from infocenter example

    static void fds_evt_handler(fds_evt_t const * p_fds_evt)
    {
        switch (p_fds_evt->id)
        {
            case FDS_EVT_INIT:
                if (p_fds_evt->result != FDS_SUCCESS)
                {
                    // Initialization failed.
                }
                break;
            default:
                break;
        }
    }
        
    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;
    		
    }
    

    in main function I call fds_test_init and again app stops working.

Reply
  • I've just simplified an example. I take ble_app_uart example in sdk14, and add just two functions from infocenter example

    static void fds_evt_handler(fds_evt_t const * p_fds_evt)
    {
        switch (p_fds_evt->id)
        {
            case FDS_EVT_INIT:
                if (p_fds_evt->result != FDS_SUCCESS)
                {
                    // Initialization failed.
                }
                break;
            default:
                break;
        }
    }
        
    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;
    		
    }
    

    in main function I call fds_test_init and again app stops working.

Children
No Data
Related