Previous Next

MDB Reference : List of Commands : Device and Tool Commands

Device and Tool Commands
To display information about the device and tool commands available in MDB, type help device or help hwtool. Table 2-4 provides additional information for these commands.
Table: Device and tool Commands 
Device
Sets the name of the target device.
Command format: Device devicename
Example:
Device PIC32MX795F512L
Hwtool
Sets the debug tool or list all the available hardware tools on the system. (The device must be set with the Device command before a tool can be used/set.)
Command format: Hwtool [toolType] [-p] [index]
Following are the supported tool names (not case-sensitive):
ICD3 – MPLAB ICD 3 In-Circuit Debugger
RealICE – MPLAB REAL ICE In-Circuit Emulator
PICkit3 – PICkit 3 In-Circuit Debugger
SIM – Simulator
PM3 – MPLAB PM3 Programmer
LicensedDebugger – third party debugger
LicensedProgrammer – third party programmer
To set the tool for programming only, a space must precede the -p option.
Command format: Hwtool [toolType] -p
Example:
Hwtool ICD3 -p
Use the index option to select the tool if there are more than one instance of a tool type. If you have two ICD3 units connected to the PC, use the command hwtool to find the assigned index number of the tool.
Example:
>hwtool
index Description
0 MPLAB ICD 3 tm (MRK1000000000)
1 MPLAB ICD 3 tm (MRK1000001111)
Example:
Hwtool ICD3 -p 1
Note:
By default, when a hardware tool is selected, it is loaded as a debugger. This means that it always programs the device and adds the necessary debug requirements to enable the image to be debugged.
To use a tool for programming only, use the -p option when setting the hardware tool.

Previous Next Microchip Support
Help Updated: 2014-08-12 12:16:05Z
Help Page: 14