I am struggling to get fstorage working with ANT, using S332 soft device. I have tracked my problems down to the callback event not firing after flash write calls, and this is I think due to the fact that I was missing nrf_sdh_soc.c library.
If I try to add this library I get the following build error:
Linking ant_hrm_tx_pca10040_s332.elf Output/ant_hrm_tx_pca10040_s332 Debug/Obj/nrf_sdh_soc.o:E:\Nordic_Semi\nRF5_SDK_15.2.0\components\softdevice\common/nrf_sdh_soc.c:64: undefined reference to `__start_sdh_soc_observers' Output/ant_hrm_tx_pca10040_s332 Debug/Obj/nrf_sdh_soc.o:(.rodata.sdh_soc_observers+0x4): undefined reference to `__stop_sdh_soc_observers' Output/ant_hrm_tx_pca10040_s332 Debug/Obj/nrf_sdh_soc.o: In function `nrf_sdh_soc_evts_poll': undefined reference to `__start_sdh_soc_observers' Build failed
To simplify debugging I have tried adding the fstorage to the ant hrm example, and I get the same error with the nrf_sdh_soc.c library. I have attached the project.
What am I doing wrong?