undefined reference to `nrf_nvic_state' when i clearly included nvic.h

Hello everyone

I'm trying to build an app using Segger Embedded Studio and a nRF52832. I'm currently struggling to include the fds module since i get the following errors:

Building ‘basurometro_lte_52’ from solution ‘basurometro_lte_52’ in configuration ‘Release’
Linking basurometro_lte_52.elf
Output/Release/Obj/basurometro_lte_52/nrf_sdh.o: in function `softdevice_evt_irq_disable':
undefined reference to `nrf_nvic_state'
Output/Release/Obj/basurometro_lte_52/nrf_sdh.o: in function `softdevices_evt_irq_enable':
undefined reference to `nrf_nvic_state'
Build failed

Those references shouldn't bother the building process since I have nvic.h included and these softdevice directories included in my project( (among many other necessary ones):


C:/nRF5_SDK_17.1.0_ddde560/components/softdevice/common
C:/nRF5_SDK_17.1.0_ddde560/components/softdevice/s132/headers
C:/nRF5_SDK_17.1.0_ddde560/components/softdevice/s132/headers/nrf52

So i'm not really sure why this problem may have come up. Can anyone help me?

Parents
  • Hi,

    In general, it is recommended to start with one of the Bluetooth projects if you want to create a project that includes SoftDevice. Otherwise, you will need to manually resolve and apply SoftDevice dependencies and configurations.

    The global 'nrf_nvic_state' variable is defined in app_util_platform.c, so the linker error suggests that you have not included app_util_platform.c in your build.

    Best regards,

    Vidar

Reply
  • Hi,

    In general, it is recommended to start with one of the Bluetooth projects if you want to create a project that includes SoftDevice. Otherwise, you will need to manually resolve and apply SoftDevice dependencies and configurations.

    The global 'nrf_nvic_state' variable is defined in app_util_platform.c, so the linker error suggests that you have not included app_util_platform.c in your build.

    Best regards,

    Vidar

Children
Related