Skip to content

v2.0.0-beta-1

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 17 Oct 20:37
· 326 commits to main since this release
2daf7e6

v2.0.0-beta-1

This first v2 beta introduces new instrumentation and logging workflows for integration and compatibility testing in real projects before the stable v2 release. Review the migration notes before upgrading a 1.x project.

New workflows and features

  • Bind supplies IDs through generated headers while keeping source log calls ID-free; Insert/Clean remains available.
  • Structured Logging exports named values, source locations and timestamps as text, JSON or key/value records.
  • -ce (Context Enrichment) adds selected values automatically with Bind or Insert; Clean removes matching source additions.
  • Tags and severity gain weight-based filtering, custom weights/colors and dark, light and contrast palettes.
  • Local deferred text logging formats buffered records on the target without a host decoder.
  • Visualization output sends transformed numeric measurements to files or UDP.
  • Target-stamp expressions add host-side printf(...), unwrap(...) and delta(...) conversion. Logging raw hardware counters can avoid target-side conversion work, especially in interrupt handlers.
  • Generation tools add source-selected C tables, readable JSON dictionary copies and read-only Bind artifact reports.
  • Deterministic ID assignment orders identical calls; adding, removing or moving a call can change existing IDs in its group.
  • Documentation gains a guided User Manual, split Reference Manual, two release PDFs and F030 RTT/UART instrumentation examples.

Target integration and fixes

  • Updated SEGGER RTT integration provides shared fallback defaults and automatically inherits the selected channel counts and buffer sizes.
  • Calls without value arguments compile in strict C99 and later. Disabled backends and unused encoders no longer add unnecessary link dependencies.
  • Deferred ID routing includes both range endpoints, validates bounds and requires single-pack transfer when ID selection is active.
  • Dictionary live reload handles file replacement; finite FILEBUFFER replay exits promptly and releases resources.
  • Filters handle complete log events and their metadata; diagnostics remain visible, and statistics count decoded events before filtering.

Release and migration notes

  • Template syntax now treats single braces as fields. See firmware and dictionary compatibility.
  • CLI flags, generated-file paths, tag/filter syntax and location paths have changed. See migration from 1.x.
  • Host source builds require Go 1.25; v2 uses release archives or local tag checkouts rather than versioned remote Go installation.
  • Bind and CE have different compiler/macro limits; see the workflow comparison tables.
  • Release archives now include the full MIT license and the target sources retain the SEGGER license. Beta releases use explicitly selected tags and do not update the stable Homebrew tap.

Homebrew (stable releases)

Install a stable release via Homebrew: brew install rokath/tap/trice.
For a beta, download this release's platform archive and use its matching target sources.

macOS

If Gatekeeper blocks the downloaded tool, remove the quarantine flag from
the unpacked binary path, for example:

xattr -d com.apple.quarantine path/to/trice

Windows

If SmartScreen or the file block flag gets in the way, unblock the unpacked
binary path, for example:

Unblock-File path\to\trice.exe