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

Mesh 4.0 with scheduler

Im trying to enable the Scheduler on a mesh example, but Im getting "1127959>, app_error_weak.c,  108, Mesh assert at 0x0002C9E4 (:0)" each time I try to add or connect it via the mesh app, if I change  NRF_SDH_DISPATCH_MODEL to 0 it works as expected. So its something about the softdevice.

My config>

#define APP_SCHEDULER_ENABLED 1
#define NRF_SDH_DISPATCH_MODEL 1
#define APP_TIMER_CONFIG_USE_SCHEDULER 1
#define APP_SCHED_EVENT_SIZE 32
#define APP_SCHED_QUEUE_SIZE 32

int main(void)
{
APP_SCHED_INIT(APP_SCHED_EVENT_SIZE, APP_SCHED_QUEUE_SIZE);
initialize();
start();

for (;;)
{
app_sched_execute();
(void)sd_app_evt_wait();
}
}
Related