Hello, we have a pretty detailed question regarding to the RTOS implementation and usage generation values. At this point, I have been pursuing a FreeRTOS example project provided by Atmel in Atmel Studio 7. We have found multiple examples where initializing a GET_RUNTIME_STATS configuration and using a vTaskGetRunTimeStats() provides a table in the form of:
TASK ABS TIME % Time
In order for us to achieve this tabular interface, we took the following steps as detailed by RTOS website in this website: http://www.freertos.org/rtos-run-time-stats.html
We added the following code to FreeRTOSconfig.h
Define configGENERATE_RUN_TIME_STATS 1
Define . portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() 1
Define portGET_RUN_TIME_COUNTER_VALUE() 10000
We then added vTaskGetRunTimeStats() function in the task monitor function in the c main file and passed through an array construction, based on the following documentation: http://www.freertos.org/a00021.html#vTaskGetRunTimeStats
The value passed through is a pcWriteBuffer, a buffer into which execution times will be written in ASCII form, approximately 40 bits per task used.
However, we found that when defining the ports in FreeRTOSconfig.h was complicated, we needed an incremented timer tick clock. The 2 examples in the first website referenced above, provides an example of a demo application that already includes a 20KHz timer test and one that does not. For the one that does not, we belive this resembles our situation. However, the definition they provide of a configuration of a timer for runtime stats in the main.c file does not fit our processor. We are currently attempting to discover a method for defining a peripheral clock. If you have any more questions or if you could assist us, we would be grateful.