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
    

  • Have you followed: 
    https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ant_examples_broadcast.html

    ANT SoftDevices for the nRF52 Series are not distributed by Nordic Semiconductor. You can download them from https://www.thisisant.com/developer/components/nrf52832/#tab_protocol_stacks_tab 

    The SDK does not include the header files for the ANT SoftDevices. You must add them to your project before you can compile your application. To do so, extract the downloaded zip file that contains the SoftDevice and copy the SoftDevice headers to components/softdevice/SoftDevice/headers.

    Make sure that ANT_LICENSE_KEY is uncommented in the nrf_sdm.h file that you copied. The included license key can be used for evaluation, but before releasing a product, it must be replaced with a valid commercial license key. For more information about licensing, see thisisant.com.

    Kenneth

  • Thanks Kenneth, I've fixed it, there are two same definition files, and I delete one of them in "Path", it can be compiled now.

Reply Children
No Data
Related