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

compiling error for ibeacon

.\_build\nrf51422_xxac.axf: Error: L6218E: Undefined symbol app_timer_init (referred from main.o).
.\_build\nrf51422_xxac.axf: Error: L6218E: Undefined symbol app_button_disable (referred from bsp.o).
.\_build\nrf51422_xxac.axf: Error: L6218E: Undefined symbol app_button_enable (referred from bsp.o).
.\_build\nrf51422_xxac.axf: Error: L6218E: Undefined symbol app_button_init (referred from bsp.o).
.\_build\nrf51422_xxac.axf: Error: L6218E: Undefined symbol app_timer_create (referred from bsp.o).
.\_build\nrf51422_xxac.axf: Error: L6218E: Undefined symbol app_timer_start (referred from bsp.o).
.\_build\nrf51422_xxac.axf: Error: L6218E: Undefined symbol app_timer_stop (referred from bsp.o).

Keil image

Keil image 2

sdk_config.h

Parents
  • Hi,

    Have you added the source files of the timer (app_timer.c) and button (app_button.c) library to the project, and enabled the modules in the SDK configuration header using #define APP_TIMER_ENABLED 1 and #define BUTTON_ENABLED 1?

    Best regards, Jørgen

  • i added two header files u mentioned in main , i got

    .\_build\nrf51422_xxac.axf: Error: L6200E: Symbol bsp_button_is_pressed multiply defined (by bsp.o and main.o).
    .\_build\nrf51422_xxac.axf: Error: L6200E: Symbol bsp_buttons_disable multiply defined (by bsp.o and main.o).
    .\_build\nrf51422_xxac.axf: Error: L6200E: Symbol bsp_buttons_enable multiply defined (by bsp.o and main.o).
    .\_build\nrf51422_xxac.axf: Error: L6200E: Symbol bsp_buttons_state_get multiply defined (by bsp.o and main.o).
    .\_build\nrf51422_xxac.axf: Error: L6200E: Symbol bsp_event_to_button_action_assign multiply defined (by bsp.o and main.o).
    .\_build\nrf51422_xxac.axf: Error: L6200E: Symbol bsp_indication_set multiply defined (by bsp.o and main.o).
    .\_build\nrf51422_xxac.axf: Error: L6200E: Symbol bsp_indication_text_set multiply defined (by bsp.o and main.o).
    .\_build\nrf51422_xxac.axf: Error: L6200E: Symbol bsp_init multiply defined (by bsp.o and main.o).
    .\_build\nrf51422_xxac.axf: Error: L6200E: Symbol bsp_wakeup_buttons_set multiply defined (by bsp.o and main.o).
    .\_build\nrf51422_xxac.axf: Error: L6200E: Symbol bsp_wakeup_nfc_set multiply defined (by bsp.o and main.o).
    
Reply
  • i added two header files u mentioned in main , i got

    .\_build\nrf51422_xxac.axf: Error: L6200E: Symbol bsp_button_is_pressed multiply defined (by bsp.o and main.o).
    .\_build\nrf51422_xxac.axf: Error: L6200E: Symbol bsp_buttons_disable multiply defined (by bsp.o and main.o).
    .\_build\nrf51422_xxac.axf: Error: L6200E: Symbol bsp_buttons_enable multiply defined (by bsp.o and main.o).
    .\_build\nrf51422_xxac.axf: Error: L6200E: Symbol bsp_buttons_state_get multiply defined (by bsp.o and main.o).
    .\_build\nrf51422_xxac.axf: Error: L6200E: Symbol bsp_event_to_button_action_assign multiply defined (by bsp.o and main.o).
    .\_build\nrf51422_xxac.axf: Error: L6200E: Symbol bsp_indication_set multiply defined (by bsp.o and main.o).
    .\_build\nrf51422_xxac.axf: Error: L6200E: Symbol bsp_indication_text_set multiply defined (by bsp.o and main.o).
    .\_build\nrf51422_xxac.axf: Error: L6200E: Symbol bsp_init multiply defined (by bsp.o and main.o).
    .\_build\nrf51422_xxac.axf: Error: L6200E: Symbol bsp_wakeup_buttons_set multiply defined (by bsp.o and main.o).
    .\_build\nrf51422_xxac.axf: Error: L6200E: Symbol bsp_wakeup_nfc_set multiply defined (by bsp.o and main.o).
    
Children
No Data
Related