It is possible to use the FreeRTOS tick count as the trace recorder time source, and the
trace recorder C code is delivered with this generic configuration. However, using
the tick count will result in a very low time resolution, so it is highly recommended
to adapt the trace recorder to a particular hardware platform by instead sourcing time values
from a high resolution hardware timer.
A template file called trcPort.c is provided for this purpose. The file
contains a function that should be implemented to return the current time, which
can be the value of the hardware counter used to supply the FreeRTOS tick. Please
refer to the comments in the file for detailed instructions. The FreeRTOS+Trace recorder
code also also
needs to know the frequency at which the timer is running.
[The hardware timer used to supply the FreeRTOS tick is usually configured
by a function called prvSetupTimerInterrupt() in the FreeRTOS port.c file used
by your FreeRTOS application.]
Provide a Port, and Get a Free License!
It is the intention to provide ready-to-run hardware timer ports for all
common hardware architectures. If you create a
hardware timer port for an architecture that is not yet directly supported,
and your port is validated by Percepio as being correct,
then Percepio will provide a free single user FreeRTOS+Trace Professional
license (or equivalent discount on a company license) in exchange
for ownership rights of your port! That means Percepio will also take
responsibility for the code, and you will not be liable for any customer
for more information on this offer.
Existing ports are listed on the Percepio web site.
Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2014 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd..
See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.