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

nrf_nfic_state_t ?

Dear Members,

I tried to compile :

E:\nRF5_SDK_17.0.2_d674dde\examples\ant\ant_broadcast\tx\main.c

I got this error :

..\..\..\..\..\..\..\components\libraries\util\app_util_platform.c(44): error:  #20: identifier "nrf_nvic_state_t" is undefined

..\..\..\..\..\..\..\components\libraries\util had been included in "Setup Compiler Include Paths:"

Anyone knows how to rectify it ?

Thanks

Parents
  • Here's the log :

    E:\nRF5_SDK_17.0.2_d674dde\examples\ant\ant_broadcast\tx\main.c
    
    *** Using Compiler 'V5.06 update 5 (build 528)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
    Build target 'nrf52832_xxaa'
    compiling app_util_platform.c...
    ..\..\..\..\..\..\..\components\libraries\util\app_util_platform.c(44): error:  #20: identifier "nrf_nvic_state_t" is undefined
      nrf_nvic_state_t nrf_nvic_state;
    ..\..\..\..\..\..\..\components\libraries\util\app_util_platform.c: 0 warnings, 1 error
    compiling nrf_sdh.c...
    ..\..\..\..\..\..\..\components\softdevice\common\nrf_sdh.c(160): error:  #20: identifier "SD_EVT_IRQn" is undefined
          ret_code_t ret_code = sd_nvic_EnableIRQ((IRQn_Type)SD_EVT_IRQn);
    ..\..\..\..\..\..\..\components\softdevice\common\nrf_sdh.c(172): error:  #20: identifier "SD_EVT_IRQn" is undefined
          ret_code_t ret_code = sd_nvic_DisableIRQ((IRQn_Type)SD_EVT_IRQn);
    ..\..\..\..\..\..\..\components\softdevice\common\nrf_sdh.c(202): error:  #20: identifier "nrf_clock_lf_cfg_t" is undefined
          nrf_clock_lf_cfg_t const clock_lf_cfg =
    ..\..\..\..\..\..\..\components\softdevice\common\nrf_sdh.c(208): warning:  #12-D: parsing restarts here after previous syntax error
          };
    ..\..\..\..\..\..\..\components\softdevice\common\nrf_sdh.c(214): warning:  #223-D: function "sd_softdevice_enable" declared implicitly
          ret_code = sd_softdevice_enable(&clock_lf_cfg, app_error_fault_handler);
    ..\..\..\..\..\..\..\components\softdevice\common\nrf_sdh.c(214): error:  #20: identifier "clock_lf_cfg" is undefined
          ret_code = sd_softdevice_enable(&clock_lf_cfg, app_error_fault_handler);
    ..\..\..\..\..\..\..\components\softdevice\common\nrf_sdh.c(260): warning:  #223-D: function "sd_softdevice_disable" declared implicitly
          ret_code          = sd_softdevice_disable();
    ..\..\..\..\..\..\..\components\softdevice\common\nrf_sdh.c(325): error:  #20: identifier "SD_EVT_IRQn" is undefined
          ret_code_t ret_code = sd_nvic_SetPendingIRQ((IRQn_Type)SD_EVT_IRQn);
    ..\..\..\..\..\..\..\components\softdevice\common\nrf_sdh.c: 3 warnings, 6 errors
    ".\_build\nrf52832_xxaa.axf" - 6 Error(s), 3 Warning(s).
    Target not created.
    Build Time Elapsed:  00:00:01
    

Reply
  • Here's the log :

    E:\nRF5_SDK_17.0.2_d674dde\examples\ant\ant_broadcast\tx\main.c
    
    *** Using Compiler 'V5.06 update 5 (build 528)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
    Build target 'nrf52832_xxaa'
    compiling app_util_platform.c...
    ..\..\..\..\..\..\..\components\libraries\util\app_util_platform.c(44): error:  #20: identifier "nrf_nvic_state_t" is undefined
      nrf_nvic_state_t nrf_nvic_state;
    ..\..\..\..\..\..\..\components\libraries\util\app_util_platform.c: 0 warnings, 1 error
    compiling nrf_sdh.c...
    ..\..\..\..\..\..\..\components\softdevice\common\nrf_sdh.c(160): error:  #20: identifier "SD_EVT_IRQn" is undefined
          ret_code_t ret_code = sd_nvic_EnableIRQ((IRQn_Type)SD_EVT_IRQn);
    ..\..\..\..\..\..\..\components\softdevice\common\nrf_sdh.c(172): error:  #20: identifier "SD_EVT_IRQn" is undefined
          ret_code_t ret_code = sd_nvic_DisableIRQ((IRQn_Type)SD_EVT_IRQn);
    ..\..\..\..\..\..\..\components\softdevice\common\nrf_sdh.c(202): error:  #20: identifier "nrf_clock_lf_cfg_t" is undefined
          nrf_clock_lf_cfg_t const clock_lf_cfg =
    ..\..\..\..\..\..\..\components\softdevice\common\nrf_sdh.c(208): warning:  #12-D: parsing restarts here after previous syntax error
          };
    ..\..\..\..\..\..\..\components\softdevice\common\nrf_sdh.c(214): warning:  #223-D: function "sd_softdevice_enable" declared implicitly
          ret_code = sd_softdevice_enable(&clock_lf_cfg, app_error_fault_handler);
    ..\..\..\..\..\..\..\components\softdevice\common\nrf_sdh.c(214): error:  #20: identifier "clock_lf_cfg" is undefined
          ret_code = sd_softdevice_enable(&clock_lf_cfg, app_error_fault_handler);
    ..\..\..\..\..\..\..\components\softdevice\common\nrf_sdh.c(260): warning:  #223-D: function "sd_softdevice_disable" declared implicitly
          ret_code          = sd_softdevice_disable();
    ..\..\..\..\..\..\..\components\softdevice\common\nrf_sdh.c(325): error:  #20: identifier "SD_EVT_IRQn" is undefined
          ret_code_t ret_code = sd_nvic_SetPendingIRQ((IRQn_Type)SD_EVT_IRQn);
    ..\..\..\..\..\..\..\components\softdevice\common\nrf_sdh.c: 3 warnings, 6 errors
    ".\_build\nrf52832_xxaa.axf" - 6 Error(s), 3 Warning(s).
    Target not created.
    Build Time Elapsed:  00:00:01
    

Children
Related