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

How to use softdevice 212 in Keil5?

I downloaded S212 for nRF52 from thisisant.com and programmed the softdevice to nRF52832DK(PCA10040) via nRFgo Studio. Then I copied the 'include' folder of unzipped softdevice to example/headers and uncommented the licence key in 'nrf_sdm.h' . I'm using the examples from Keil packs. So, when I rebuild, I get this errors. I tried different ANT examples but everytime the result is same. What is the thing I missed? Sincerely, thanks.

    *** Using Compiler 'V5.06 update 1 (build 61)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Rebuild target 'nrf52832_xxaa'
compiling main.c...
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_SoftDevice_Common\2.0.0-2.alpha\softdevice_handler\softdevice_handler.h(140): error:  #20: identifier "nrf_clock_lfclksrc_t" is undefined
  uint32_t softdevice_handler_init(nrf_clock_lfclksrc_t              clock_source,
..\..\main.c(39): error:  #20: identifier "NRF_CLOCK_LFCLKSRC_XTAL_20_PPM" is undefined
      err_code = softdevice_handler_init(
RF_CLOCK_LFCLKSRC, NULL, 0, NULL);
..\..\main.c: 0 warnings, 2 errors
assembling arm_startup_nrf52.s...
compiling ant_scalable_tx.c...
compiling bsp.c...
compiling system_nrf52.c...
compiling ant_stack_config.c...
compiling ant_channel_config.c...
compiling nrf_drv_common.c...
compiling nrf_delay.c...
compiling nrf_drv_gpiote.c...
compiling app_button.c...
compiling app_error.c...
compiling app_timer.c...
compiling nrf_assert.c...
compiling softdevice_handler.c...
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_SoftDevice_Common\2.0.0-2.alpha\softdevice_handler\softdevice_handler.h(140): error:  #20: identifier "nrf_clock_lfclksrc_t" is undefined
  uint32_t softdevice_handler_init(nrf_clock_lfclksrc_t              clock_source,
RTE\nRF_SoftDevice\nRF52832_xxAA\softdevice_handler.c(269): error:  #20: identifier "nrf_clock_lfclksrc_t" is undefined
  uint32_t softdevice_handler_init(nrf_clock_lfclksrc_t           clock_source,
RTE\nRF_SoftDevice\nRF52832_xxAA\softdevice_handler.c(305): warning:  #167-D: argument of type "void (*)(uint32_t, uint16_t, const uint8_t *)" is incompatible with parameter of type "nrf_fault_handler_t"
      err_code = sd_softdevice_enable(clock_source, softdevice_fault_handler, 
NT_LICENSE_KEY);
RTE\nRF_SoftDevice\nRF52832_xxAA\softdevice_handler.c(317): warning:  #223-D: function "sd_nvic_EnableIRQ" declared implicitly
      return sd_nvic_EnableIRQ(SOFTDEVICE_EVT_IRQ);
RTE\nRF_SoftDevice\nRF52832_xxAA\softdevice_handler.c: 2 warnings, 2 errors
".\_build\nrf52832_xxaa.axf" - 4 Error(s), 2 Warning(s).
Target not created.
Build Time Elapsed:  00:00:05
Parents Reply Children
No Data
Related