FAQs for ColdFire BDM Debugger


The embedded tools company

Search FAQs



PDF document ( 73KB / 16-Jun-2021 )


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

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
  • TRACE32 ColdFire Preprocessor from mid-2004 or later (reprogram maybe needed)
  • TRACE32 Software 2009 or later
  • SYSTEM.OPTION TRACEWDDATA ON





Copyright © 2021 Lauterbach GmbH, Altlaufstr.40, 85635 Höhenkirchen-Siegertsbrunn, Germany   Impressum     Privacy Policy
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: 16-Sep-2021