Monitoring and Manipulating
F²MC-16FX Family, Emulating and Debugging with Softune and MB2198-01, Doc. No. 002-04828 Rev. *B
15
4.4
Monitoring and Manipulating C Variables
To display C variables choose in the debugging mode:
View -> Watch -> Watch1
. A new window
Watch
will
occur. Click in this window on the right mouse button and select
Set…
A pop-up window
Setup watch
will appear.
Under
Variable name
option one can enter the variable name of the C program. The Mode must be
C language
or Automatic
in this case. The Watch window will then contain the variable name and value.
Note: You can change the radix of the value by right-clicking on the variable entry and choose via Radix: Binary,
Octal, Decimal, or Hexadecimal.
To manipulate the value just double-click on the entry and enter in the pop-up window
Edit variable
a new value.
The radix can be chosen via “D’”, “H’”, “B’”, or “O’”.
As explained in previous chapter to view memory content of Special Function Register, one should select
Assembler
under
Mode
option.
4.5
Monitoring and Manipulating Memory
To display the MCU memory choose in the debugging mode:
View -> Memory
. A pop-up window
Memory
will
occur and ask for the start ad
dress to be displayed. Type for instance H’2530 (or just 2530) for the RAM area.
Following window occur which is something like a “Hex-Editor”: