FreeRTOS for MIMXRT1020 with MCUExpresso run only the first task

cancel
Showing results for 
Search instead for 
Did you mean: 

FreeRTOS for MIMXRT1020 with MCUExpresso run only the first task

132 Views
Contributor I

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):

Screenshot from 2019-07-28 11-33-30.png

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?

Labels (1)
0 Kudos
1 Reply

24 Views
Contributor I

Oh, I find the solution: add #define configUSE_TIME_SLICING 1 to FreeRTOSConfig.h

0 Kudos