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

nRF52-DK Compiling Error

Hi All,

It seems that my question may be repeated but I went over almost all similar posts and followed the suggested resolution, however no luck :(

I downloaded the nRF52-ble-app-lbs example from the below link.

github.com/.../nRF52-ble-app-lbs

I am using nRF5_SDK_12.0.0

Let me know if anyone has suggestions.

*** Using Compiler 'V5.06 update 3 (build 300)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' Rebuild target 'nrf52832_xxaa_s132' compiling app_uart.c... compiling ble_advertising.c... compiling nrf_delay.c... compiling nrf_drv_gpiote.c... compiling main.c... ......\main.c(140): error: #55-D: too many arguments in invocation of macro "APP_TIMER_APPSH_INIT" APP_TIMER_APPSH_INIT(APP_TIMER_PRESCALER, APP_TIMER_MAX_TIMERS, APP_TIMER_OP_QUEUE_SIZE, true); ......\main.c(140): error: #20: identifier "BSP_APP_TIMERS_NUMBER" is undefined

PP_TIMER_APPSH_INIT(APP_TIMER_PRESCALER, APP_TIMER_MAX_TIMERS, APP_TIMER_OP_QUEUE_SIZE, true); ......\main.c(358): error: #136: struct "" has no field "keys_periph" static ble_gap_sec_keyset_t m_keys = {.keys_periph = {&m_enc_key, &m_id_key, &m_sign_key}}; ......\main.c(413): error: #136: struct "" has no field "kdist_periph" p_distributed_keys = &m_auth_status.kdist_periph; ......\main.c(473): error: #20: identifier "NRF_CLOCK_LFCLKSRC_XTAL_20_PPM" is undefined

OFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL); ......\main.c(487): error: #165: too few arguments in function call err_code = sd_ble_enable(&ble_enable_params); ......\main.c(524): error: #20: identifier "BLE_ADV_FAST_ENABLED" is undefined options.ble_adv_fast_enabled = BLE_ADV_FAST_ENABLED; ......\main.c(127): warning: #177-D: function "service_error_handler" was declared but never referenced static void service_error_handler(uint32_t nrf_error) ......\main.c: 1 warning, 7 errors compiling ble_srv_common.c... compiling ble_conn_params.c... compiling bsp.c... compiling nrf_drv_common.c... compiling ble_advdata.c... ............\components\ble\common\ble_advdata.c(41): warning: #223-D: function "sd_ble_gap_address_get" declared implicitly err_code = sd_ble_gap_address_get(&device_addr); ............\components\ble\common\ble_advdata.c: 1 warning, 0 errors compiling nrf_drv_uart.c... compiling app_button.c... compiling app_timer.c... compiling app_scheduler.c... compiling app_trace.c... compiling retarget.c... assembling arm_startup_nrf52.s... compiling app_error.c... compiling pstorage.c... compiling nrf_assert.c... compiling ble_lbs.c... compiling system_nrf52.c... compiling app_timer_appsh.c... compiling softdevice_handler.c... "._build\nrf52832_xxaa_s132.axf" - 7 Error(s), 2 Warning(s). Target not created. Build Time Elapsed: 00:00:07

Parents Reply Children
No Data
Related