Keil Logo

SCOPE

Syntax Description
SCOPE \module\function Displays the address range of the specified program module or function.

The SCOPE command displays:

  • The address ranges of all functions in the target program (if no module and function names are entered),
  • The address ranges of all functions in a program module (if only a module name is specified),
  • The address range of a single function (if a module and function are specified).

When a program with debug information loads, the µVision3 debugger creates an internal table of address assignments and the associated symbol information. Non-qualified symbols can automatically be selected from this table.

Examples

In the following examples, indented lines reflect the layout of the source program for each module.

>scope \measure\main                  /* show scope range of main()      */
MAIN RANGE: 0xFF01EF-0xFF03B6
>
>scope \measure                       /* show scope for module 'measure' */
MEASURE
  {CvtB} RANGE: 0xFF03B7-0xFF07E5     /* µVision3 dummy scope block      */
  {CvtB} RANGE: 0xFF000B-0xFF000D
  SAVE_CURRENT_MEASUREMENTS RANGE: 0xFF000E-0xFF0069
  TIMER0 RANGE: 0xFF006A-0xFF0135
  _READ_INDEX RANGE: 0xFF0136-0xFF01BF
  CLEAR_RECORDS RANGE: 0xFF01C0-0xFF01EE
  MAIN RANGE: 0xFF01EF-0xFF03B6
>
>scope                                /* show all scope ranges           */
MEASURE
  {CvtB} RANGE: 0xFF03B7-0xFF07E5
  {CvtB} RANGE: 0xFF000B-0xFF000D
  SAVE_CURRENT_MEASUREMENTS RANGE: 0xFF000E-0xFF0069
  TIMER0 RANGE: 0xFF006A-0xFF0135
  _READ_INDEX RANGE: 0xFF0136-0xFF01BF
  CLEAR_RECORDS RANGE: 0xFF01C0-0xFF01EE
  MAIN RANGE: 0xFF01EF-0xFF03B6
MCOMMAND
  {CvtB} RANGE: 0xFF09A6-0xFF0A23
  MEASURE_DISPLAY RANGE: 0xFF07E7-0xFF084A
  _SET_TIME RANGE: 0xFF084B-0xFF08CA
  _SET_INTERVAL RANGE: 0xFF08CB-0xFF09A5
GETLINE
  _GETLINE RANGE: 0xFF0A24-0xFF0A87
?C_FPADD
?C_FPMUL
?C_FPDIV
?C_FPCMP
...

Notes

  • Blocks named {CvtB} are created by µVision3 and are the result of insufficient debug information. This is normal for library modules and assembly language modules without debug information and for blocks with a valid name but no scope range.
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.