Description
Trice is an open source tracing and logging library for embedded C and C++ firmware, with a host tool that shows the output on a PC in real time. Calls look like printf, but the target sends compact binary records identified by IDs instead of formatted strings, and the project measures record creation at as few as 6 CPU clocks per call in an optimised configuration. Calls can be made directly inside interrupt handlers, and the approach is independent of the compiler. A binding step keeps numeric IDs out of your source code, and aliases let existing logging and assert macros use Trice. To keep interrupt logging light, the target can send raw hardware counter timestamps and let the host reconstruct wraps and convert units. On the PC side you can read events as text, work with structured values or plot measurements, and send asynchronous broadcast commands.…
Highlights
- printf-like calls with compact binary records
- Usable inside interrupt handlers
- IDs kept out of user code
- Aliases for legacy logging macros
- Host-side timestamp reconstruction
- Real-time PC logging and plotting
Ratings & Reviews
No ratings yet
Be the first to rate Trice.
People also visit

Cmtraceopen
Free, open-source CMTrace replacement for Windows log files: ConfigMgr/SCCM
Trice FAQ
What is Trice?
A tracing library for embedded C that replaces formatted printf output with compact ID-based records, decoded and displayed on a PC.
How fast is it?
The project reports record creation in as few as 6 CPU clocks per call in an optimised configuration; transmission is handled separately.
Can I log from interrupts?
Yes. Trice calls can be used directly inside interrupt handlers.
Do I have to put IDs in my code?
No. The bind feature keeps numeric IDs out of user log calls.
Can it work with my existing logging macros?
Yes. Aliases map existing logging and assert macros to Trice.
What are the best Trice alternatives?
Popular alternatives to Trice include VedaTrace, Palanteer and Cmtraceopen. See all Trice alternatives









