This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

why Error: L6218E: Undefined symbol app_sched_init (referred from main.o).

Hi,

I am using Keil IDE to develop nRF51822 project.

in main(), the command line APP_SCHED_INIT(APP_SCHED_MAX_EVT_SIZE, APP_SCHED_QUEUE_SIZE);

has Error : L6218E

I had include app_scheduler.h and some other, also had enable the #define APP_SCHEDULER_ENABLED 1

in sdk_config.h

#include "nrf_gzll.h" #include "bsp.h" #include "app_timer.h" #include "app_error.h" #include "nrf_gzll_error.h" #include "nordic_common.h"

#define NRF_LOG_MODULE_NAME "APP" #include "softdevice_handler.h" #include "nrf_log.h" #include "nrf_log_ctrl.h" #include "nrf_delay.h" #include "nrf_drv_gpiote.h" #include "nrf_drv_power.h" #include "app_scheduler.h" #include "nordic_common.h" #include "nrf_soc.h" #include "softdevice_handler.h" #include "app_timer.h" #include "app_button.h" #include "nrf.h" #include "nrf_drv_spi.h" #include "ble_advdata.h" #include "nrf_gpio.h"

why it still has Undefined symbol app_sched_init error?

Thanks!

Related