anonymous wrote on Tuesday, July 27, 2010:
I am unable to make vTaskGetRunTimeStats() work on a Cortex M3 with IAR. First I followed the instructions in the FreeRTOS Reference Manual, but found that declaring the counting variable extern in FreeRTOSConfig.h gave a assembly error (in portasm.s) which I could not understand nor fix.
After declaring the variable in port.h (which I assume is not OK due to the license) I was able to get everything seemingly working. However, upon calling vTaskGetRunTimeStats(buffer) the buffer isn’t filled. (I verified this by giving the first buffer bytes a known value before calling vTaskGetRunTimeStats()).
Does anybody know what I may be doing wrong?