Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Homepage FreeRTOS+ Products FreeRTOS Labs Integration Services Contact / Enquiries

FreeRTOS+Trace Ports and Porting

Porting: Time Stamp Generation

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.]

Existing Ports

Existing ports are listed on the Percepio web site.

[ Back to the top ]    [ About FreeRTOS ]    [ FreeRTOS+ Sitemap ]    [ Main FreeRTOS Sitemap ]    [ ]

Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 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.