I am currently running version 7.0.2 on a dsPIC33. We recently upgraded from version 5.3.1 and aside from slightly more RAM and Flash usage everything seems OK. We have recently found that when we attempt to get the real time stats on the tasks we are getting strange results. When we request the stats the first time, everything seems to work fine. All subsequent requests for the stats returns 0% or <1% CPU usage for all tasks. This code worked perfectly under 5.3.1.
To start with, I have configGENERATE_RUN_TIME_STATS set to 1 in freeRTOSConfig.h.
Here is the code for setting up the timer, reading the timer, and the timer interrupt. The code that calculates the stats is in the FreeRTOS code and was not modified.