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

change SCHED_MAX_EVENT_DATA_SIZE and device stall

I want to use app sched feature, so as example does, I call: static void scheduler_init(void) { APP_SCHED_INIT(SCHED_MAX_EVENT_DATA_SIZE, SCHED_QUEUE_SIZE); }

since I have my own event data, the max size is 9, so I changed the SCHED_MAX_EVENT_DATA_SIZE to 9, the old is 8. after flashed and restart the device, it's stall and cannot be scanned. if change to 12 which I believe is int aligned, device runs smoothly. so should the event size always be uint32 aligned?

Related