Notes on using Ethernet TAP probe

It provides information on how to use Ethernet TAP probe in different modes, Exception/Interrupt Handlers, and power source.

The following topics provide information specific to Ethernet TAP probe operation:

For information on system operation, see Targeting manual.

Run/Pause/Mixed Mode States

When the host debugger is connected to the target system using the Ethernet TAP probe, the probe is always in one of these states (modes): run,pause, or mixed mode.

  • Run mode - in this mode, all target system processor cores are executing target code. The Run/Pause LED will be green.
  • Pause mode - in this mode, all target system processor cores have stopped executing target code. The Run/Pause LED will be red.
  • Mixed mode - in this mode, some target system processor cores are in run mode and others are in pause mode. The Run/Pause LED will be orange.

Breakpoints in exception/interrupt handlers

Care must be taken when setting breakpoints in exception handler code. A typical exception consists of a preamble that saves processor context, the actual exception handler, and then a postamble that restores processor context. You can use software breakpoints in the actual exception handler code, but not in the preamble or postamble where the processor context is changing.

Note: For Embedded PowerPC processors, placing the CPU into debug mode is just another interrupt. For example: your code is in an interrupt epilogue and has just placed the return address into SRR0 when a breakpoint occurs. The breakpoint causes the IP for the address of the breakpoint to be written to SRR0, destroying your original return address. Stepping through code which accesses SRR0 and SRR1 exhibits the same problem.

To avoid this problem, always set your breakpoints before or after code which accesses SRR0 and SRR1, and never step through such code. For example, you can set your breakpoint anywhere after the interrupt prologue, but before the epilogue.

Instructions that involve the SRR0 and SRR1 registers are "MTSPR SRR0/1,Rx" "MFSPR Rx,SRR0/1," and "RFI."

Ethernet TAP probe power source

The Ethernet TAP probe draws power from the external power supply. The Ethernet TAP probe tip draws less than 50 mA from the target in order to detect target power.