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

hi, i want to advertise my nrf52840 device through air. i am having nrf connect app in my apple mobile. i want to read the values of this nrf52840 dk.

somebody help to resolve this problem

  • these are the errors.

    ..\..\..\..\..\..\components\libraries\log\src\nrf_log_internal.h(302): error:  #65: expected a ";"
      extern nrf_log_module_dynamic_data_t 
    RF_LOG_MODULE_DATA_DYNAMIC;
    ..\..\..\..\..\..\components\libraries\timer\app_timer.c(65): error:  #20: identifier "APP_TIMER_CONFIG_IRQ_PRIORITY" is undefined
      
    STATIC_ASSERT(RTC1_IRQ_PRI == SWI_IRQ_PRI);
    ..\..\..\..\..\..\components\drivers_nrf\clock\nrf_drv_clock.c(587): error:  #55-D: too many arguments in invocation of macro "STATIC_ASSERT"
      
    RF_SDH_SOC_OBSERVER(m_soc_evt_observer, CLOCK_CONFIG_SOC_OBSERVER_PRIO, soc_evt_handler, NULL);
    
    ..\..\..\..\..\..\components\drivers_nrf\clock\nrf_drv_clock.c(587): error:  #55-D: too many arguments in invocation of macro "STATIC_ASSERT"
      
    RF_SDH_SOC_OBSERVER(m_soc_evt_observer, CLOCK_CONFIG_SOC_OBSERVER_PRIO, soc_evt_handler, NULL);
    
    ..\..\..\..\..\..\components\drivers_nrf\clock\nrf_drv_clock.c(630): error:  #55-D: too many arguments in invocation of macro "STATIC_ASSERT"
      
    RF_SDH_STATE_OBSERVER(m_sd_state_observer, CLOCK_CONFIG_STATE_OBSERVER_PRIO) =
    
    ..\..\..\..\..\..\components\drivers_nrf\clock\nrf_drv_clock.c(630): error:  #55-D: too many arguments in invocation of macro "STATIC_ASSERT"
    ..\..\..\main.c(217): error:  #55-D: too many arguments in invocation of macro "APP_TIMER_TICKS"
          err_code = bsp_init(
    SP_INIT_LED, APP_TIMER_TICKS(100, APP_TIMER_PRESCALER), NULL);
    
    ..\..\..\main.c(217): error:  #20: identifier "APP_TIMER_CONFIG_RTC_FREQUENCY" is undefined
          err_code = bsp_init(
    SP_INIT_LED, 
    PP_TIMER_TICKS(100, APP_TIMER_PRESCALER), NULL);
    
    ..\..\..\main.c(217): error:  #140: too many arguments in function call
          err_code = bsp_init(
    SP_INIT_LED, 
    PP_TIMER_TICKS(100, APP_TIMER_PRESCALER), N
    ULL);
    ..\..\..\main.c(161): error:  #165: too few arguments in function call
          err_code = sd_ble_gap_adv_start(&m_adv_params);
    
    ..\..\..\main.c(180): error:  #20: identifier "GATT_MTU_SIZE_DEFAULT" is undefined
          
    OFTDEVICE_HANDLER_INIT(&clock_lf_cfg, NULL);
    
  • Did you use the project directly, or did you implement the changes into the example ourself? Which SDK did you use?

  • I updated my answer in the above linked thread with beacon example for pca10056 for SDK 14.1

  • thanks jorgen for your response. i am using sdk 14.0. with softdevice s140_nrf52840_5.0.0-2.alpha_softdevice.hex

Related