3.3.3 Device and Tool Commands

To display information about the device and tool commands available in MDB, type help deviceandtool. The table below provides additional information about these commands.

Table 3-4. Device and Tool Commands
Command Description
Device Sets the name of the target device.

Command format:

Device devicename

Example:

Device PIC32MX795F512L
Hwtool Sets the debug tool or lists all the available hardware tools on the system.

Command format:

hwtool [toolType] [-p] [index]

Use the -p option to connect to the tool for programming only.

Use the index option to select the tool if there are more than one instance of a tool type.

Use the hwtool command to find the index number of the tool.

Use the hwtool supported command to see all the supported tool types.

To find a tool using the tool's serial number, provided it starts with <sn>, use the following command format.

Command format:

hwtool toolType <sn>

Example:

hwtool icd4 <sn>BUR204420097

To find a network tool using the tool's IP address, provided it starts with <ipa>, and uses the format xxx.xxx.xxx.xxx, use the following command format.

Command format:

hwtool toolType <ipa>

Example:

hwtool icd4 <ipa>010.016.024.031

Use the hwtool supported command to see all the supported tool types. This is a list of supported tooltypes:
  • Licensedprogrammer – third party programmer
  • atmelice - Atmel-ICE
  • EDBG - Atmel Embedded Debugger (EDBG)
  • MEDBG - Mini Embedded Debugger
  • PKOBNANO - Microchip Curiosity Nano Debugger
  • powerdebugger - Power Debugger
  • jtagice3 - JTAGICE3
  • ICD3 – MPLAB ICD 3 In-Circuit Debugger
  • ICD4 – MPLAB ICD 4 In-Circuit Debugger
  • ICD5 - MPLAB ICD 5 In-Circuit Debugger
  • j32 - J-32
  • jlink - J-Link
  • seggersameice - SEGGER SAME-ICE
  • PICkit3 – MPLAB PICkit 3 In-Circuit Debugger
  • PICkit4 – MPLAB PICkit 4 In-Circuit Debugger
  • PICkit5 - MPLAB PICkit 5 In-Circuit Debugger
  • Licenseddebugger – third party debugger
  • PKOB4 - Curiosity/Starter Kits (PKOB4)
  • SK - Microchip Starter Kit (PICkit On Board - PKOB)
  • PM3 – MPLAB PM3 Programmer
  • RealICE – MPLAB REAL ICE In-Circuit Emulator
  • ICE4 – MPLAB ICE 4 In-Circuit Emulator
  • SIM – Simulator
  • mchv - MCHV
  • microstick - MICROSTICK
  • SNAP – MPLAB Snap In-Circuit Debugger