Hi all,
I'm using MIMXRT1020 and running FreeRTOS on it. I got FreeRTOS generic example from MCUExpresso SDK and base on that for studying.
I only create 2 tasks (refer from https://freertos.org/Documentation/161204_Mastering_the_FreeRTOS_Real_Time_Kernel-A_Hands-On_Tutoria... page 53 - official FreeRTOS document), and modify the main function as the image below (sorry, I don't know to insert code):
The result is only Task 1 running. It seems Task 1 is always in Running state and the "time slice algorithm" is not working. I googled, and got something similar in https://stackoverflow.com/questions/5142917/freertos-tasks-are-not-context-switching. But I can't find vPortIncrementTick (maybe it only on MPLAB PIC32MX).
So, anyone has any ideal about this case?
Oh, I find the solution: add #define configUSE_TIME_SLICING 1 to FreeRTOSConfig.h