
How To...
How to Work on Variables
208
Microcontrollers Debugger Manual
Modify a Variable Value
The Debugger allows you to change the value of a variable, as shown in
Figure 6.3
.
Figure 6.3 Modifying a Variable Value
Double-click on a variable. The current variable value is highlighted and can be edited.
1. Formats for the input value follow the rule from ANSI C constant values (prefixed by
0x for hexadecimal value, prefixed by 0 for octal values, otherwise considered as
decimal value). For example, if the data component is in decimal format and if a
variable input value is 0x20, the variable is initialized with 32. If a variable input value
is 020, the variable is initialized with 16.
2. To validate the input value you can either press the
Enter
or
Tab
key.
3. If an input value has been validated by the
Tab
key, the value of the next variable in
the component is automatically highlighted (this value can also be edited).
4. To restore the previous variable value, press the
Esc
key or select another variable.
A local variable can be modified when the application is stopped. Since these variables are
located on the stack, they do not exist as long as the function where they are defined is not
active.
Get the Address Where a Variable is
Allocated
The Debugger provides you with the start address and size of a variable if you do the
following:
1. Point to a variable name in a Data Component
2. Click the variable name
The start address and size of the selected variable is displayed in the Data info bar.
Summary of Contents for Microcontrollers
Page 1: ...Microcontrollers Debugger Manual Revised 22 October 2007 ...
Page 20: ...Table of Contents 20 Microcontrollers Debugger Manual ...
Page 24: ...Book I Contents 24 Microcontrollers Debugger Manual ...
Page 60: ...Debugger Interface Highlights of the User Interface 60 Microcontrollers Debugger Manual ...
Page 156: ...Debugger Components Visualization Utilities 156 Microcontrollers Debugger Manual ...
Page 198: ...Real Time Kernel Awareness OSEK Kernel Awareness 198 Microcontrollers Debugger Manual ...
Page 236: ...Synchronized Debugging Through DA C IDE Troubleshooting 236 Microcontrollers Debugger Manual ...
Page 238: ...Book II Contents 238 Microcontrollers Debugger Manual ...
Page 332: ...HC08 Full Chip Simulation Configuration Procedure 332 Microcontrollers Debugger Manual ...
Page 348: ...MON08 Interface Connection Device Class Description 348 Microcontrollers Debugger Manual ...
Page 364: ...ICS MON08 Interface Connection Device Class Description 364 Microcontrollers Debugger Manual ...
Page 428: ...HC08 FSICEBASE Emulator Bus State Analyzer BSA 428 Microcontrollers Debugger Manual ...
Page 430: ...Book III Contents 430 Microcontrollers Debugger Manual ...
Page 466: ...HCS08 Full Chip Simulation Peripheral Modules Commands 466 Microcontrollers Debugger Manual ...
Page 544: ...HCS08 On Chip DBG Module HCS08 DBG V3 New Features 544 Microcontrollers Debugger Manual ...
Page 546: ...Book IV Contents 546 Microcontrollers Debugger Manual ...
Page 576: ...Book V Contents 576 Microcontrollers Debugger Manual ...
Page 698: ...Book VI Contents 698 Microcontrollers Debugger Manual ...
Page 714: ...Flash Programming NVMC Commands 714 Microcontrollers Debugger Manual ...
Page 730: ...Book VII Contents 730 Microcontrollers Debugger Manual ...
Page 840: ...Book VIII Contents 840 Microcontrollers Debugger Manual ...
Page 864: ...Book IX Contents 864 Microcontrollers Debugger Manual ...
Page 868: ...Legacy Target Interfaces Removed 868 Microcontrollers Debugger Manual ...