3.3.5.1 Tool Property Options Used with the Set Command
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.- MDB commands are not
case-sensitive. However, when using the
set
command, where tool option properties are passed as parameters, the parameter portion of the command line entered is case-sensitive. - Tool property options that you
want to use with the
set
command must be selected before using theHwtool
command.
Tool Property Name | Value |
---|---|
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 |
communication.interface Set the
communication interface to Example:
|
jtag, swd, updi, dw, isp, pdi,
tpi |
communication.interface.jtag Select the JTAG method. Example:
|
2wire or 4wire |
communication.speed Set the
communication speed to Example:
|
a decimal value (in MHz), dependent on the device |
debugoptions.useswbreakpoints
Example:
|
true or false |
debugoptions.simultaneous.debug
Example:
|
true or false |
freezeperiphs Check to freeze all other peripherals not specifically mentioned above. Some peripherals have no freeze configurability and cannot be controlled by the debugger. Select peripherals to freeze, or not freeze, on program halt. Options available depend on device chosen. |
true or false |
hwtoolclock.frcindebug If
Example:
|
true or false |
hwtoolclock.instructionspeed This will
tell MPLAB X what speed (in instructions per second) the target will be
running at. This does not set the target instruction speed; that is done
through the configuration bits. This setting is used in conjunction with
the Instruction Speed Units property.
Example:
|
|
hwtoolclock.units Determines the units of the Target run-time instruction speed property entered directly above this one. Example:
|
mips or kips |
memories.configurationmemory If
Example:
|
true or false |
memories.configurationmemory2 If
true , the configuration memory partition 2 will be
programmed; if false , it will not (always programmed in
debug mode).Example:
|
true or false |
memories.dataflash This is an area of
flash that is also used to store data. Conceptually, this is the
same a flashdat, but is different in that the firmware must know the
difference between the two types of memory so they have different
designations. If the database returns Example:
|
true or false |
memories.flashdata This is an area of
flash that is used to store data. If the database returns
Example:
|
true or false |
memories.instruction.ram
If Example:
|
true or false |
memories.instruction.ram.ranges
Instruction ram Range(s). Each range must be two hex numbers, representing the start and end addresses of the range, separated by a dash. Ranges must be separated by a comma (e.g. 0-ff, 200-2ff). Example:
|
Hex value |
programoptions.preserveprogramrange
If Example:
|
true or false |
programoptions.preserveprogram.ranges
Define preserve program range(s). Areas are reserved by reading them into MPLAB and then programming them back down when a program operation occurs. Thus the preserved areas must lie within a memory range that will be programmed. Ranges must be aligned on a program memory address boundary. Each range must be two hex numbers, representing the start and end addresses of the range, separated by a dash. Ranges must be separated by a comma (e.g. 0-ff, 200-2ff). Example:
|
Hex value |
memories.programmemory If
Example:
|
true or false |
memories.programmemory.ranges Program Memory Range(s). Enter ranges in hex (e.g. 0-ff, 200-2ff). Example:
|
Hex value |
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 |
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 |
memories.eeprom If
Example:
|
true or false |
memories.id If Example:
|
true or false |
memories.bootflash If
Example:
|
true or false |
memories.aux If
Example:
|
true or false |
networktool.connection.type |
ethernet, usb, ethernetstaticip, wifista,
wifiap (default is usb ). |
programoptions.donoteraseauxmem If
Example:
|
|
programoptions.eraseb4program If
Example:
|
true or false |
programoptions.ledbrightness Sets the
brightness of the LEDs on the hardware tool. Setting
Example:
|
1 to 10 |
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 |
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 |
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 |
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 |
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 |
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 |
programoptions.preservedataflash
If Example:
|
true or false |
programoptions.preservedataflash.ranges Define preserve program range(s). Areas are reserved by reading them into MPLAB and then programming them back down when a program operation occurs. Thus EEPROM must be selected for programming. Ranges must be aligned on a program memory address boundary. Each range must be two hex numbers, representing the start and end addresses of the range, separated by a dash. Ranges must be separated by a comma (e.g. 0-ff, 200-2ff). Example:
|
Hex value |
programoptions.preserveeeprom If
Example:
|
true or false |
programoptions.preserveuserid If
true , preserve ID memory; if
false , it will not.Example:
|
true or false |
programoptions.programcalmem If
Example:
|
true or false |
Program
programoptions.programuserotp If Example:
|
true or false |
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 |
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 |
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 |
system.disableoutput If
Example:
|
true or false |
system.yestoalldialog If
Example:
|
true or false |
toolpack.updateoptions Select to use the latest tool pack or a different version to support the project device. |
|
xccodecoverage.reporttype Sets the xc
code coverage report type. The report type can be
Example:
set
xccodecoverage.reporttype all |
a string representing the xc report type |
xccodecoverage.htmlreportpath Sets the html report path to generate report. If report path is not defined or null, then report will be generated in project location. Example: set
xccodecoverage.htmlreportpath d:\report |
a string representing the xc report path |
xccodecoverage.replacehtmlreport Sets the property to true for overwriting the html report files, if already exists in the specified location. Example: set
xccodecoverage.replacehtmlreport true |
true or false |