The following table provides additional information for tool property options used with the Set command.
set
command, including the tool property options, must be executed
before the Hwtool
command is issued, otherwise the changes to the tool
properties will be ignored.set
command, where tool
option properties are passed as parameters, the parameter portion of the command
line entered is case-sensitive.set
command must be selected before using
the Hwtool
command.Tool Property Name | Value | Tool |
---|---|---|
AutoSelectMemRanges Determines whether the debugger will automatically select the areas of memory and program memory ranges to program. If set to Example:
|
auto or
manual |
MPLAB ICD3, MPLAB ICD4, MPLAB REAL ICE, PICkit 3, MPLAB PICkit 4, MPLAB PM3, MPLAB Snap, EDBG |
communication.interface Set the communication interface to
Example:
|
jtag, swd, updi, dw, isp, pdi,
tpi |
EDBG |
communication.speed Set the communication speed to
Example:
|
a decimal value (in MHz), dependent on the device | EDBG |
debugoptions.useswbreakpoints
Example:
|
true or
false |
MPLAB ICD3, MPLAB ICD4, MPLAB REAL ICE, MPLAB PICkit 4, MPLAB Snap, EDBG |
memories.programmemory If Example:
|
true or
false |
MPLAB ICD3,MPLAB ICD4, MPLAB REAL ICE, PICkit 3,MPLAB PICkit 4, MPLAB PM3, MPLAB Snap, EDBG |
memories.programmemory.start The value represents the starting program memory address that the debug tool will begin programming. Example:
|
a string representing a long value | MPLAB ICD3,MPLAB ICD4, MPLAB REAL ICE, PICkit 3,MPLAB PICkit 4, MPLAB PM3, MPLAB Snap, EDBG |
memories.programmemory.end The value represents the ending program memory address that the debug tool will end programming. Example:
|
a string representing a long value | MPLAB ICD3,MPLAB ICD4, MPLAB REAL ICE, PICkit 3,MPLAB PICkit 4, MPLAB PM3, MPLAB Snap, EDBG |
memories.eeprom If Example:
|
true or
false |
MPLAB ICD3,MPLAB ICD4, MPLAB REAL ICE, PICkit 3,MPLAB PICkit 4, MPLAB PM3, MPLAB Snap, EDBG |
memories.id If Example:
|
true or
false |
MPLAB ICD3, MPLAB ICD4, MPLAB REAL ICE, PICkit 3, MPLAB PICkit 4, MPLAB PM3, MPLAB Snap, EDBG |
memories.bootflash If Example:
|
true or
false |
MPLAB ICD3, MPLAB ICD4, MPLAB REAL ICE, PICkit 3, MPLAB PICkit 4, MPLAB PM3, MPLAB Snap, EDBG |
memories.aux If Example:
|
true or
false |
MPLAB ICD3, MPLAB ICD4, MPLAB REAL ICE, PICkit 3, MPLAB PICkit 4, MPLAB PM3, MPLAB Snap, EDBG |
programoptions.eraseb4program If
Example:
|
true or
false |
MPLAB ICD3, MPLAB ICD4, MPLAB REAL ICE, PICkit 3, MPLAB PICkit 4, MPLAB PM3, MPLAB Snap |
programoptions.ledbrightness Sets
the brightness of the LEDs on the hardware tool. Setting
Example:
|
1 to
10 |
MPLAB ICD4, MPLAB PICkit 4 |
programoptions.pgcconfig Sets the type of resistance to be applied to the PGC
line. The default is Example:
|
none or pull
up or pull down |
MPLAB ICD4, MPLAB PICkit 4 |
programoptions.pgcresistor.value Sets the value of the resistance on the PGC line. Maximum value is 50 kohms. If PGC configuration is set to none, this value is ignored. Example:
|
0.1 to
50.0 |
MPLAB ICD4, MPLAB PICkit 4 |
programoptions.pgdconfig Sets the type of resistance to be applied to the PGD
line. The default is Example:
|
none or pull up
or pull down |
MPLAB ICD4, MPLAB PICkit 4 |
programoptions.pgdresistor.value Sets the value of the resistance on the PGD line. Maximum value is 50 kohms. If PGD configuration is set to none, this value is ignored. Example:
|
0.1 to
50.0 |
MPLAB ICD4, MPLAB PICkit 4 |
programoptions.pgmentry.voltage Sets the method the hardware tool will use to put the target device in programming mode. For the low voltage method, Vpp will not exceed the Vdd supply voltage. Instead, a test pattern will be used on Vpp. For the high voltage method, a voltage in excess of 9 volts will be placed on Vpp. Example:
|
Low or
High |
MPLAB ICD4, MPLAB PICkit 4, MPLAB Snap |
programoptions.pgmspeed Sets the speed that the hardware tool will use to
program the target. If programming fails, try a slower speed. The
default is Example:
|
Min or Med
or Max |
MPLAB ICD4, MPLAB PICkit 4 MPLAB Snap |
poweroptions.powerenable If Note: This property does not apply to MPLAB REAL ICE.
To set a non-default voltage for the target power,
first set the
Example:
|
true or
false |
MPLAB ICD3, MPLAB ICD4, PICkit 3, MPLAB PICkit 4, MPLAB PM3 |
SecureSegment.SegmentProgramming
SegmentProgrammingAll If true, it permits programming to “Program Over Secure and Protected FLASH.” This property must be set prior to using the program operation on the MDB. Use the -p option to set the tool as a programmer if it’s for a production final image and not just a debug image. Example:
|
true or
false |
MPLAB ICD3, MPLAB ICD4, MPLAB REAL ICE, PICkit 3, MPLAB PICkit 4 |
system.disableerrormsg This option has been deprecated as of v3.15 but will
still function with existing projects. For new projects, use the
system.disableoutput
and
If Example:
|
true or
false |
Not tool dependent |
system.disableoutput If
Example:
|
true or
false |
Not tool dependent |
system.yestoalldialog If
Example:
|
true or
false |
Not tool dependent |