5.6.3 Hardware Setup

Preliminaries

  1. Use USB communication between the PC and MPLAB ICE 4. Other communication types do not support trace.
  2. Find devices that support PIC32M instruction trace – see Help>Release Notes> Debug Features Support>Hardware Tool Debug Features by Device.
  3. Design the target board to have a connector for emulator-target communication and a connector for trace pins if using the PIC32 Instruction Trace Adapter Board. Alternately design the target board to connect to the high-speed cable with pins for both debug and trace (see Target Connection Pinout).
  4. When using trace, pins TRCLK and TRD3:0 are used. Therefore, you cannot use the other functions multiplexed on these pins. 
For PIC32MX360F512L, multiplexed functions are RG14:12 and RA7:6. Check your device data sheet for details.

Set Up Hardware – PIC32M MCU on PIM

To use the PIC32M Instruction Trace feature with the PIM do the following:

  1. Plug the PIM into the unpowered target board.
  2. Install communication cable between the emulator or adapter board and the communication connector on the target board.
  3. If using the adapter board, connect the trace cable between the adapter board and trace connector on the PIM.
  4. Power the target.

Set Up Hardware – PIC32M MCU on Target

To use the PIC32M Instruction Trace feature with your own board do the following:

  1. The target board should be unpowered.
  2. Install communication cable between the emulator or adapter board and the communication connector on your target board.
  3. If using the adapter board, connect the trace cable between the adapter board and trace connector on your target board.
  4. Power the target.