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

Example nAN-36 problem, not compiling

Hi developers,

I've found the nAN-36 file and tried to follow the steps in it. That was impossible for me, I got lost bigtime. Then I found the folly completed project and copied the ble_lbs.c, ble_lbs.h and main.c tot the folder I was working in. There seemed to be missing some files: (they gave errors while rebuilding)

ble_eval_board_pins.h ble_stack_handler.h pstorage_pl.h

so I added them to the project and got some warnings and a couple of Linking errors. I can't read them, have no idea what they mean. So I'm asking you

Build Output:

Rebuild target 'nrf51822_xxaa_s110 (256K)'
assembling arm_startup_nrf51.s...
compiling system_nrf51.c...
compiling main.c...
..\main.c(131): warning:  #223-D: function "GPIO_LED_CONFIG" declared implicitly
      GPIO_LED_CONFIG(ADVERTISING_LED_PIN_NO);
..\main.c(392): warning:  #223-D: function "GPIO_WAKEUP_BUTTON_CONFIG" declared implicitly
                  GPIO_WAKEUP_BUTTON_CONFIG(WAKEUP_BUTTON_PIN);
..\main.c(495): warning:  #223-D: function "sd_app_event_wait" declared implicitly
      uint32_t err_code = sd_app_event_wait();
..\main.c: 3 warnings, 0 errors
compiling ble_srv_common.c...
compiling ble_lbs.c...
compiling ble_error_log.c...
compiling pstorage.c...
compiling crc16.c...
compiling ble_advdata.c...
compiling app_scheduler.c...
compiling app_timer.c...
compiling ble_conn_params.c...
compiling softdevice_handler.c...
compiling app_button.c...
compiling app_gpiote.c...
compiling ble_debug_assert_handler.c...
linking...
.\_build\ble_app_template.axf: Error: L6218E: Undefined symbol GPIO_LED_CONFIG (referred from main.o).
.\_build\ble_app_template.axf: Error: L6218E: Undefined symbol GPIO_WAKEUP_BUTTON_CONFIG (referred from main.o).
.\_build\ble_app_template.axf: Error: L6218E: Undefined symbol ble_stack_handler_init (referred from main.o).
.\_build\ble_app_template.axf: Error: L6218E: Undefined symbol intern_ble_stack_events_execute (referred from main.o).
.\_build\ble_app_template.axf: Error: L6218E: Undefined symbol sd_app_event_wait (referred from main.o).
Not enough information to list image symbols.
Finished: 1 information, 0 warning and 5 error messages.
".\_build\ble_app_template.axf" - 5 Error(s), 3 Warning(s).
Target not created
Related