5.6.3 Hardware Setup
Preliminaries
- Use USB communication between the PC and MPLAB ICE 4. Other communication types do not support trace.
- Find devices that support PIC32M instruction trace – see Help>Release Notes> Debug Features Support>Hardware Tool Debug Features by Device.
- 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).
- 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:
- Plug the PIM into the unpowered target board.
- Install communication cable between the emulator or adapter board and the communication connector on the target board.
- If using the adapter board, connect the trace cable between the adapter board and trace connector on the PIM.
- Power the target.
Set Up Hardware – PIC32M MCU on Target
To use the PIC32M Instruction Trace feature with your own board do the following:
- The target board should be unpowered.
- Install communication cable between the emulator or adapter board and the communication connector on your target board.
- If using the adapter board, connect the trace cable between the adapter board and trace connector on your target board.
- Power the target.