This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

APP_ERROR_CHECK(err_code); undeclared identifier

Hi,

I'm starting with nrf52 dk using Keil ide for ANT+ applications...

I tried to run an example inside the sdk folder and I have problems with app_error functions.

All called check functions was not declared. I included paths for components, softdevices, etc., but the errors persists.

I'm using SDK15.3 and keil IDE 5.28

thanks for help

..\..\..\..\..\..\..\components\libraries\util\nrf_nvic.h(417): error:  #20: identifier "NRF_ERROR_SOC_BASE_NUM" is undefined
      return NRF_ERROR_SOC_NVIC_INTERRUPT_PRIORITY_NOT_ALLOWED;
..\..\..\..\..\..\..\components\libraries\util\nrf_nvic.h(421): error:  #20: identifier "NRF_SUCCESS" is undefined
    return NRF_SUCCESS;
..\..\..\..\..\..\..\components\libraries\util\nrf_nvic.h(429): error:  #20: identifier "NRF_SUCCESS" is undefined
      return NRF_SUCCESS;
..\..\..\..\..\..\..\components\libraries\util\nrf_nvic.h(433): error:  #20: identifier "NRF_ERROR_SOC_BASE_NUM" is undefined
      return NRF_ERROR_SOC_NVIC_INTERRUPT_NOT_AVAILABLE;
..\..\..\..\..\..\..\components\libraries\util\nrf_nvic.h(440): error:  #20: identifier "NRF_ERROR_SOC_BASE_NUM" is undefined
    return NRF_ERROR_SOC_NVIC_SHOULD_NOT_RETURN;
..\..\..\..\..\..\..\components\libraries\util\nrf_nvic.h(463): error:  #20: identifier "NRF_SUCCESS" is undefined
    return NRF_SUCCESS;
..\..\..\..\..\..\..\components\libraries\util\nrf_nvic.h(480): error:  #20: identifier "NRF_SUCCESS" is undefined
    return NRF_SUCCESS;
..\..\..\..\..\..\..\external\segger_rtt\SEGGER_RTT_printf.c: 0 warnings, 19 errors
compiling nrf_sdh_ant.c...
..\..\..\..\..\..\..\components\softdevice\common\nrf_sdh_ant.c(89): error:  #20: identifier "NRF_SUCCESS" is undefined
      if (ret_code == NRF_SUCCESS)
..\..\..\..\..\..\..\components\softdevice\common\nrf_sdh_ant.c(126): error:  #20: identifier "NRF_SUCCESS" is undefined
          if (ret_code != NRF_SUCCESS)
..\..\..\..\..\..\..\components\softdevice\common\nrf_sdh_ant.c(149): error:  #20: identifier "NRF_ERROR_NOT_FOUND" is undefined
      if (ret_code != NRF_ERROR_NOT_FOUND)
..\..\..\..\..\..\..\components\softdevice\common\nrf_sdh_ant.c: 0 warnings, 3 errors
compiling system_nrf52.c...
".\_build\nrf52832_xxaa.axf" - 664 Error(s), 0 Warning(s).