θΏ™ζ˜―indexlocζδΎ›ηš„ζœεŠ‘οΌŒδΈθ¦θΎ“ε…₯任何密码
Skip to content
/ trice Public

🟒 super fast πŸš€ and tiny πŸ₯ embedded device 𝘾 printf-like trace ✍ code, works also inside ⚑ interrupts ⚑ and real-time PC πŸ’» logging (trace ID visualization πŸ‘€)

License

Notifications You must be signed in to change notification settings

rokath/trice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

44 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

trice - TRace Ids C Embedded

embedded device C printf-like trace code and real-time PC logging (trace ID visualization) over serial port

About

  • C trace (traceLog) code and real-time PC logging with trice (Go sources).
  • Communication over serial port without strings
  • "log in (a) trice"

traceLog

  • Real fast (~16 clocks per trace!!!) and small loggging technique, a tracer in software usable
    • for debugging dynamic behaviour during development,
    • as runtime logger or simply for narrow bandwidth logging in the field even with encryption.
  • Usage is similar to 'printf()', but the format strings go not into the target image.
  • The needed code instrumentation is minimal:
    • Adapt a config file (hardware specific).
    • Add one small C-file to your project and include a C-header where traceLogs are used.

trice

  • PC tool written in Go
  • Manages traceLogs inside a C|C++ source tree during target compile time.
  • Displays traceLogs in realtime during target runtime.

Quick setup

  • add traceLog.c as is to your project
  • #include traceLog.h as is in your source file to use tracelog
  • copy proj_traceLogConfig.h, rename to trceLogConfig.h and adapt to your needs
  • traceLogCheck.c is example code and for testing
  • run trice u in root of your C|Cpp source project after code instrumentation with TL* statements
  • compile, flash & run trice log -port COMm -baud n with coccert values m and n

Documentation