Using SDK 15.2 on an nRF52832 using SoftDevice S132. FDS works OK unless the SoftDevice is enabled. None of the examples work. We've tried the peripheral example, GitHub examples, support samples, etc. but no luck. The basic flow is:
BLE stack init:
rc = nrf_sdh_enable_request();
rc = nrf_sdh_ble_default_cfg_set(APP_BLE_CONN_CFG_TAG, &ram_start);
rc = nrf_sdh_ble_enable(&ram_start);
app timer init
Peer Manager init:
err_code = pm_sec_params_set(&sec_param);
err_code = pm_register(pm_evt_handler);
The problem is that the event from fds_init() never occurs. We are looping in a while loop calling
sd_app_evt_wait();
during the wait for the event. We've tried calling nrf_pwr_mgmt_init() before the BLE stack init, but that had no effect. If we delay the BLE stack enable, the init completes but subsequent writes after enabling the stack will never event. The SDK is configured with SD as the FDS backend. We're using a PCA10040 for testing, with GCC 7. We are using a stock bootloader to start the application.
Is there an FDS sample that is known to work with S132 on the DK? Are there additional steps needed to get events to work, similar to older FDS implementations a couple of years back?
Regards,
Mike