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
setcommand, 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
setcommand must be selected before using theHwtoolcommand.
| Tool Property Name | Value |
|---|---|
AutoSelectMemRangesDetermines whether the debugger will automatically select the areas of memory and program memory ranges to program. If set to
Example:
| auto or manual |
communication.interfaceSet the
communication interface to Example:
| jtag, swd, updi, dw, isp, pdi,
tpi |
communication.interface.jtagSelect the JTAG method. Example:
| 2wire or 4wire |
communication.speedSet 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 |
freezeperiphsCheck 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.configurationmemoryIf
Example:
| true or false |
memories.configurationmemory2If
true, the configuration memory partition 2 will be
programmed; if false, it will not (always programmed in
debug mode).Example:
| true or false |
memories.dataflashThis 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.flashdataThis 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.programmemoryIf
Example:
| true or false |
memories.programmemory.rangesProgram Memory Range(s). Enter ranges in hex (e.g. 0-ff, 200-2ff). Example:
| Hex value |
memories.programmemory.startThe value represents the starting program memory address that the debug tool will begin programming. Example:
| a string representing a long value |
memories.programmemory.endThe value represents the ending program memory address that the debug tool will end programming. Example:
| a string representing a long value |
memories.eepromIf
Example:
| true or false |
memories.idIf Example:
| true or false |
memories.bootflashIf
Example:
| true or false |
memories.auxIf
Example:
| true or false |
networktool.connection.type | ethernet, usb, ethernetstaticip, wifista,
wifiap(default is usb). |
programoptions.donoteraseauxmemIf
Example:
| |
programoptions.eraseb4programIf
Example:
| true or false |
programoptions.ledbrightnessSets the
brightness of the LEDs on the hardware tool. Setting
Example:
| 1 to 10 |
programoptions.pgcconfigSets the
type of resistance to be applied to the PGC line. The default is
Example:
| none or pull up or
pull down |
programoptions.pgcresistor.valueSets 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.pgdconfigSets the
type of resistance to be applied to the PGD line. The default is
Example:
| none or pull up or
pull down |
programoptions.pgdresistor.valueSets 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.voltageSets 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.pgmspeedSets 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.rangesDefine 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.preserveeepromIf
Example:
| true or false |
programoptions.preserveuserid If
true, preserve ID memory; if
false, it will not.Example:
| true or false |
programoptions.programcalmemIf
Example:
| true or false |
Program
programoptions.programuserotpIf Example:
| true or false |
poweroptions.powerenableIf
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
SegmentProgrammingAllIf 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.disableerrormsgThis 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.disableoutputIf
Example:
| true or false |
system.yestoalldialogIf
Example:
| true or false |
toolpack.updateoptions Select to use the latest tool pack or a different version to support the project device. | |
xccodecoverage.reporttypeSets the xc
code coverage report type. The report type can be
Example:
set
xccodecoverage.reporttype all | a string representing the xc report type |
xccodecoverage.htmlreportpathSets 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.replacehtmlreportSets 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 |
