Using MLA with freeRTOS® on dsPIC33EP - Tips and Tricks
When using MLA and freeRTOS® on a PIC24EP512GU810, the following steps should be taken:
- Make all interrupt service routines (ISRs) MANDATORY, which can cause context switch with the same priority, similar to the RTOS tick timer.
- Remove all interrupt enable/disable operators inside the ISRs.
- Remove the taskYIELD() operator and force context switch inside the vApplicationTickHook(void) callback function. The context switch will be made automatically by the scheduler which is called by the RTOS tick.