Error: L6218E: Undefined symbol ble_bas_battery_level_update (referred from main.o) Error: L6218E: Undefined symbol nrf_drv_saadc_buffer_convert (referred from main.o)
Error: L6218E: Undefined symbol ble_bas_battery_level_update (referred from main.o) Error: L6218E: Undefined symbol nrf_drv_saadc_buffer_convert (referred from main.o)
You probably need to add nrf_drv_saadc.c
to you project. Right click the nRF Drivers folder in the project explorer in KEil, click "Add Existings File to Group" and navigate to \components\drivers_nrf\saadc
.
i have included nrf_drv_saddc.c file in main file and also provided the path of that file in target
You should not include .c-files the same way as header files. you should add them to you project as I described above. Have you also ensured that SAADC_ENABLED is checked in the sdk_config.h file in the Configuration Wizard?
Which example are you trying to modify and compile?