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

Undefined symbol ble_nus_c_on_ble_evt

Trying to port over code from UART example to muti-connect example.

Made sure include paths are correct, and made sure the following C files are in project.

ble_nus_c.c
nrf_pwr_mgmt.c

Also added following code to sdk_config.h

#define APP_UART_ENABLED 1
#define APP_FIFO_ENABLED 1
#define APP_UART_DRIVER_INSTANCE 0

However, keep getting compile time error

.\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol ble_nus_c_on_ble_evt (referred from main.o).
.\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol ble_nus_c_string_send (referred from main.o).
.\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol nrf_pwr_mgmt_shutdown (referred from main.o).

Can't figure out why.

Any advice? Thanks.

Related