Hi everyone,
I am using SDK 15.2 with keil microvision and softdevice132 nrf52_6.1.
In version 13, system dispatch event was regestired with Softdevice handler as below
static void sys_evt_dispatch(uint32_t sys_evt)
{
fs_sys_event_handler(sys_evt);
}
//Register with the SoftDevice handler module for SYS events.
err_code = softdevice_sys_evt_handler_set(sys_evt_dispatch);
In 15.2, I replaced this part with
NRF_SDH_SOC_OBSERVER(m_sys_obs, 0, nrf_fstorage_sys_evt_handler, NULL);
I get an implicit declaration error even with correct header nrf_storage_sd.h included in the file. I even defined nrf_storage_sys_evt_handler in the same file, but its like writing most of the part which is already in nrf_storage_sd.c. Even then its not working, when the fds intialising is done and if its true again the my_flash_evt_handler should be called to reset it. Its not called and my program hangs in a infinite while loop. The fds event handler is as below
// register event handler
err_code = fds_register(my_flash_evt_handler);
void locid_flash_evt_handler(fds_evt_t const * const p_fds_evt){
switch (p_fds_evt->id){
case FDS_EVT_INIT:
{
//handle error
}
break;
case FDS_EVT_WRITE: {
//handle error
}
Am I doing it right ? I also went through the available fds example in pheripheral folder and even usage part in nordic info center, it has no OBSERVER macro defined. I am confused. Please help me find the solution.
Thanks in advance