Microchip Mplab Ice 4 In Circuit Emulator User Guide

Microchip Mplab Ice 4 In Circuit Emulator User Guide

File:Microchip logo.svg - WikipediaMPLAB ICE 4 In Circuit Emulator
User GuideMICROCHIP MPLAB ICE 4 In Circuit Emulator - icon

Install the Latest Software

Download the MPLAB X IDE software from www.microchip.com/mplabx and install onto your computer. The installer automatically loads the USB drivers. Launch MPLAB X IDE.

Connect to Target Device

  1. Connect the MPLAB ICE 4 to the computer using
    a USB cable.
  2. Connect external power to the emulator. Connect external power* to the target board if not using emulator power.
  3. Connect one end of the 40-pin debug cable into the emulator. Connect the other end to your target or optional adapter board.

Computer Connections

MICROCHIP MPLAB ICE 4 In Circuit Emulator - Computer Connections

Target Connections

MICROCHIP MPLAB ICE 4 In Circuit Emulator - Target Connections

Setup Wi-Fi or Ethernet

To configure MPLAB ICE 4 for Wi-Fi or Ethernet, go to Project Properties>Manage Network Tools in MPLAB X IDE. MICROCHIP MPLAB ICE 4 In Circuit Emulator - Ethernet

Use the following steps to set up your selected computer connection.

Ethernet or Wi-Fi Setup and Tool Discovery in MPLAB X IDE

  1. Connect the emulator to your PC via the USB cable.
  2. Go to Tools> Manage Network Tools in MPLAB® X IDE.
  3. Under “Network Capable Tools Plugged into USB”, select your emulator.
    Under “Configure Default Connection Type for Selected Tool” select the radio button for the connection you want.
  4. Ethernet (Wired/StaticIP): Input Static IP Address, Subnet Mask and Gateway.
    Wi-Fi® STA: Input SSID, Security type and password, depending on the security type of your home/office router.
    Click Update Connection Type.
  5. Unplug the USB cable from your emulator unit.
  6. The emulator will restart automatically and come up in the connection mode you selected. Then either:
    All Except Wi-Fi AP: The LEDs will display for either a successful network connection or a network connection failure/error.
    Wi-Fi AP: The normal Wi-Fi scanning process of Windows OS / macOS / Linux OS will scan for available Wi-Fi networks on your PC. Find the tool with SSID  “ICE4_MTIxxxxxxxxx” (where xxxxxxxxx is your tool unique serial number), and use the password “microchip” to connect to it.
    Now go back to the “Manage Network Tools” dialog and click on the Scan button, which will list your emulator under “Active Discovered Network Tools”. Select the  checkbox for your tool and close the dialog.
  7. Wi-Fi AP: On Windows 10 computers, you may see the message “No Internet, Secured” and yet the button will say “Disconnect” showing that there is a connection.  This message means that the emulator is connected as a router/AP but not by direct connection (Ethernet.)
  8. If your emulator is not found under “Active Discovered Network Tools”, you can manually enter information in the “User Specified Network Tools” section. You must  know the IP address of the tool (by the way of network admin or static IP assignment.)

Connect to a Target

See the table below for the pin-out of the 40-pin connector on your target. It is recommended that you connect your target to the MPLAB ICE 4 using the high-speed 40-pin  cable for best debug performance. However, you may use one of the legacy adapters provided in the MPLAB ICE 4 kit between the cable and an existing target, but this  will likely degrade performance.

Additional Information

40-Pin Connector on Target

Pin DescriptionFunction(s)
1CS- APower Monitor
2CS- BPower Monitor
3UTIL SDAReserved
4DGI SPI nCSDGI SPI nCS,PORT6, TRIG6
5DGI SPI MOSIDGI SPI MOSI, SPI DATA, PORT5, TRIG5
63V3Reserved
7DGI GPIO3DGI GPIO3, PORT3, TRIG3
8DGI GPIO2DGI GPIO2, PORT2, TRIG2
9DGI GPIO1DGI GPIO1, PORT1, TRIG1
10DGI GPIO0DGI GPIO0, PORT0, TRIG0
115V0Reserved
12DGI VCP RXDDGI RXD, CICD RXD, VCD RXD
13DGI VCP TXDDGI TXD, CICD TXD, VCD TXD
14DGI I2C SDADGI I2C SDA
15DGI I2C SCLDGI I2C SCL
16TVDD PWRTVDD PWR
17TDI IOTDI IO, TDI, MOSI
18TPGC IOTPGC IO, TPGC, SWCLK, TCK, SCK
19TVPP IOTVPP/MCLR, nMCLR, RST
20TVDD PWRTVDD PWR
21CS+ APower Monitor
22CS+ BPower Monitor
23UTIL SCLReserved
24DGI SPI SCKDGI SPI SCK, SPI SCK, PORT7, TRIG7
25DGI SPI MISODGI SPI MISO, PORT4, TRIG4
26GNDGND
27TRCLKTRCLK, TRACECLK
28GNDGND
29TRDAT3TRDAT3, TRACEDATA(3)
30GNDGND
31TRDAT2TRDAT2, TRACEDATA(2)
32GNDGND
33TRDAT1TRDAT1, TRACEDATA(1)
34GNDGND
35TRDAT0TRDAT0, TRACEDATA(0)
36GNDGND
37TMS IOTMS IO, SWD IO, TMS
38TAUX IOTAUX IO, AUX, DW, RESET
39TPGD IOTPGD IO, TPGD, SWO,TDO, MISO, DAT
40TVDD PWRTVDD PWR

Create, Build and Run Project

  1. Refer to the MPLAB X IDE User’s Guide or online help for instructions to install compilers, create or open a project, and configure project properties.
  2. Consider the recommended settings below for configuration bits.
  3. To run the project:

MICROCHIP MPLAB ICE 4 In Circuit Emulator - icon 2 Execute your code in Debug mode
MICROCHIP MPLAB ICE 4 In Circuit Emulator - icon 3 Execute your code in Non-Debug (release) mode
MICROCHIP MPLAB ICE 4 In Circuit Emulator - icon 4 Hold a device in Reset after programming

Recommended Settings

ComponentSetting
Oscillator• OSC bits set properly • Running
PowerExternal supply connected
WDTDisabled (device dependent)
Code-ProtectDisabled
Table ReadProtect Disabled
LVPDisabled
BODDVDs > BOD DVDs min.
Add and AsMust be connected, if applicable
Pac/PadProper channel selected, if applicable
ProgrammingDVDs voltage levels meet programming spec

Note: See MPLAB ICE 4 In-Circuit Emulator online help for more information.
Reserved Resources
For information on reserved resources used by the emulator, see the MPLAB X IDE Help>Release Notes>Reserved Resources
The Microchip name and logo, the Microchip logo, MPLAB and PIC are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. Arm  and Cortex are registered trademarks of Arm Limited in the EU and other countries. All other trademarks mentioned herein are property of their respective companies.

© 2022, Microchip Technology Incorporated. All Rights Reserved. 1/22
DS50003240A

References

Documents / Resouces

Download manual
Here you can download full pdf version of manual, it may contain additional safety instructions, warranty information, FCC rules, etc.


Related Manuals