AnsweredAssumed Answered

freertos task switching

Question asked by Xingsheng Wang on Jul 16, 2019
Latest reply on Aug 11, 2019 by Daniel Chen

I am using the csi_rgb565 example and I am trying to use rtos to run two tasks. The first task is the camera task, which captures images and displays it on the LCD, and the second task is an image processing task, which processes images slowly and runs less frequently than the camera task. I have set two tasks with the same priority but when I started the scheduler, only the camera task is running. The image processing task never runs. I have set USE_PREEEMPTION and USE_TIME_SLICING to 1 but the problem persists. Can anyone help? Thanks!

Outcomes