This is a followup on the post https://sourceforge.net/p/freertos/discussion/382005/thread/f2c275d1/
in the middle of which Richard Damon posted
There are two separate issues with using multiple interrupt levels and allowing interrupt that access FreeRTOS to nest. First is the need to be able to have a critical section inside the interrupts. The PIC24 port could define this operation, but doesn’t due to the second issue.
The second issue is task switching forced by an ISR. The method that the PIC24/dsPIC ports use, is not compatible with nesting interrupts.
I would like to fix this for the PIC24’s. I had assumed that it worked because the port instructions included instructions to change configKERNEL_INTERRUPT_PRIORITY.
I hope to suggest some solutions and hope that others will comment and/or suggest others.