FAQs for BDM-CF


The embedded tools company

Search FAQs



PDF document ( 46KB / 07-Sep-2016 )


TOP

Sourcecode-instrumenting for select. Trace

Ref: 0319
How do I instrument my sourcecode for selective tracing?

The sourcecode to be traced needs to be surrounded by the following assembler instructions:

     PEA.L 2(PC)
     WDDATA.L (A7)+

     -- your source code goes here --

     PEA.L 3(PC)
     WDDATA.L (A7)+


Naturally you can also use these in inline assembler code or maybe even tell your compiler to add these instructions to the function prologue and epilogue automatically.
The basic principle of the above instructions is that the WDDATA.L needs to write out its own address. If bit 0 of the address is clear the trace will turn on, if bit 0 is set, the trace will stop.
Prerequisites:
  • ColdFire CPU with PST3..0 and DDATA3..0 signals available and connected to the debug port
  • T32 ColdFire Preprocessor from mid-2004 or later (reprogram maybe needed)
  • T32 Software 2009 or later
  • SYSTEM.OPTION TRACEWDDATA ON





Copyright © 2016 Lauterbach GmbH, Altlaufstr.40, D-85635 Höhenkirchen-Siegertsbrunn, Germany  Impressum
The information presented is intended to give overview information only.
Changes and technical enhancements or modifications can be made without notice. Report Errors
Last generated/modified: 22-Sep-2016