I am trying to use app_timer library with the provisioner example but I get this linker error.
Linking light_switch_provisioner_nrf52832_xxAA_s132_6.0.0.elf build/light_switch_provisioner_nrf52832_xxAA_s132_6.0.0_Debug/obj/app_util_platform.o:(.bss.nrf_nvic_state+0x0): multiple definition of `nrf_nvic_state' (.bss.nrf_nvic_state+0x0): first defined here Build failed
The multiple definition error is due to nrf_nvic_state being present in mesh_softdevice_init.c as well as app_util_platform.c. I had to add app_util_platform.c since app_timer.c has a dependency on it. Now how do I resolve this??
I managed to build the code by defining nrf_nvic_state as extern in app_util_platform.c but dont know its implications. Is it ok to do it this way?