Baron Samedi wrote:
> I don't want to reinvent the wheel, so I am looking for a debug trace
> log system. Something tried, tested and efficient.
>
> It should be coded in C++ (or C) and will be used in an embedded
> system (which means that it needs to be efficient at run-time (output
> will probably be over serial port - it is acceptable for the tarcer to
> buffer output and for a low priority task to output it when teh system
> is relatively idle))), although it need not have been proven in one
> yet.
>
> Can anyone recommend something?
>
> Thanks in advance for any help.
>
JTAG may provide execution trace that your debugger should be able to parse.
If you need something generated programmatically, take a look at (from
one of the previous threads):
A preliminary draft description is at
http://www.macroexpressions.com/dl/C%20code%20unit%20testing %20on%20a%20shoestring.pdf
A reference implementation (with a C99 accent) with a runnable example is at
http://www.macroexpressions.com/dl/maestra.zip
You will need to invent a printf to buffer things and send over a serial
port; unbuffered (and quite limited) versions in C 90 are floating on
the Web.
HTH
-- Ark