2.2.104. SETTINGS

The SETTINGS command enables you to define target settings.

Syntax

SETTINGS [{default | option_list}]

where:

default

Causes all settings to revert to their default values.

option_list

A list of option names and values. Each option-value pair consists of a setting name, an equals sign, and a value. The available option names and values are described in Description.

You can specify multiple options in the list by separating each option-value pair with a colon.

Description

The SETTINGS command enables you to define settings (properties) for target support. These options are also set using the project manager interface.

If the only parameter is the default qualifier, then all the settings revert to their default values. If you supply no parameters, the command displays the current values of settings for which a default value is defined.

Each setting is defined in the form of name=value, and multiple settings can be changed using a colon (:) as a separator.

The standard option names are:

loadact

Action on load. The possible values are:

default

Normal load image behavior. For ARM architecture-based processors, the processor is placed in ARM state and supervisor mode with interrupts disabled.

noimask

Do not change the processor status register. For example, on ARM architecture-based processors, the default modification of CPSR is not performed.

reset

Reset the processor after the load, to perform a start from reset.

pre_reset

Reset the processor before the load.

pcset

When to change the PC when loading an image. The possible values are:

auto

Normal behavior. The PC is modified if there is an entry point specified in the image file and:

  • an image file without symbols is loaded and the LOAD option /SP is used

  • an image file with symbols is loaded.

never

Do not set PC.

always

Always set the PC. If no entry point is specified in the image, the PC is set to the reset vector (normally to address 0).

user_default

Always set the PC to the value specified in the pcdefault setting.

pcdefault

User default PC value. This value is written to the target PC when a image file is LOADed or RELOADed and the pcset option is user_default.

regset

Set the values of registers before the image is loaded. Use the format @regname=value for each register, and separate multiple assignments with a semicolon.

See SETREG on SETREG for more information on possible register names.

restart

Defines the action of the RESTART command. The possible values are:

set_pc

Set the PC to the entry point of the image.

reload

Reload the image as for RELOAD. The options relating to RELOAD, loadact and pcset, also apply.

reload_data

Reload only the initialized data of the image. The options relating to RELOAD, for example loadact and pcset, also apply.

restart_reset

Reset on restart. The possible values are:

true

Reset the processor on RESTART, in addition to any other actions.

false

Do not reset the processor on RESTART.

verify

Verify the image LOADed or RELOADed. The possible values are:

none

Do not verify the image.

fast

Perform the normal image verify. The first and last words of every image file section written to the target are read and checked. For individual sections larger than about 2KB, then the first and last words of each 2KB block of the section is checked.

full

Read and check every byte of the image.

verify_warns

Determines what happens if an image file verification failure occurs. The possible values are:

true

The failure is treated as a warning and operation continues.

false

The failure is an error and the image load is aborted.

disasm

Set the disassembly mode. The possible values are:

default

Attempt to auto-detect the disassembly mode.

Select from ARM, Thumb or Java instructions, using information from the image file where available.

standard

Select the standard, normal instruction disassembly mode.

Select ARM state (32-bit) instructions.

alternate

Select the standard, normal instruction disassembly mode.

Select Thumb state (16-bit) instructions.

dsmvalue

Selects whether the instruction code is displayed in disassembly listings. The possible values are:

true

Disassembly listings include the instruction opcode, along with the instruction memory address and mnemonics.

false

Disassembly listings do not include the instruction opcode.

Additional options might be implemented for particular target interfaces. See the target interface documentation for more information.

Alias

PROPERTIES is an alias of SETTINGS.

Examples

The following examples show how to use SETTINGS:

settings regset=@r2=1;@spsr_svc=0xd0

Set the value of processor the ARM processor register R2 and SVC mode SPSR whenever an image is loaded or reloaded.

settings pcset=use:pcdefault=0x8000

When any image is loaded or reloaded, set the PC to 0x8000.

settings loadact=reset

After an image is loaded or reloaded, reset the processor (in hardware). This is useful when the image has been constructed to run from target reset.

settings verify=full:verify__warns=true

When an image is loaded, check every byte written to the target but do not consider a difference in the value read back to be an error.

See also

The following commands provide similar or related functionality:

Copyright © 2003, 2004 ARM Limited. All rights reserved.ARM DUI 0235B
Non-Confidential