NEC ELECTRONICS GLOBAL
nec electronics global
HOME
APPLICATIONS
PRODUCTS
TECHNOLOGY
SUPPORT
BUY ONLINE
NEWS & EVENTS
ABOUT US
header
GO
AdvancedParametric
SITE MAP CONTACT US

[ID78K0R-QB] Data Confirmation

Contents

    
FAQ-ID = ID_Data-nnnn
0696: Can data in a specified zone be traced?
0697: How are the contents of a pointer type variable and structure referenced?
0698: Does the ID78K0R support any function to display the contents of all RAMs in real time?
0385: What is displayed in the Memory window when memory is mapped?
0699: All the SFR values in the Memory window are displayed as "?".
0504: The value of variable WORK+10 is checked on the Watch window but it is not correct.
0704: I calculated the checksum value of the ROM area (0000h to 3FFDh) using the user program, but the value differed depending on whether I use the system simulator (SM+ for 78K0R) or the integrated debugger (ID78K0R-QB).
ID_Data
-0696
Can data in a specified zone be traced?
Q1
Can data in a specified zone be traced?
A1
Data can be traced only in a specified zone in two ways: section trace (zone trace) and qualify trace.

- Section trace (zone trace)

Executes zone trace between a start condition and an end condition

To collect section trace data,

  1. Confirm that [Option] menu -> [Tracer ON] is checked (only when simulator is used).
  2. Select [Run] menu -> [Cond. Trace ON].
  3. Click the button or select [Event] menu -> [Trace...] from the Main window in oreder to open the Trace dialog box.
  4. Set an event condition or an event link condition to start/stop trace to "Start:" area and "End:" area by dragging and dropping.
  5. Click [Set] button to register the trace event condition.
  6. Execute the program.

- Qualify trace

Executes trace when a condition is satisfied

To collect quality trace data,

  1. Confirm that [Option] menu -> [Tracer ON] is checked.
  2. Select [Run] menu -> [Cond. Trace ON].
  3. Click the button or select [Event] menu -> [Trace...] from the Main window in order to open the Trace dialog box.
  4. Set an event condition to execute trace to "Qualify:" area by dragging and dropping.
  5. Click [Set] button to register the trace event condition.
  6. Execute the program.
If two or more events are registered as a condition and if the events are satisfied more than once from the start to end of execution, only the trace information that is satisfied first is recorded for both section trace and qualify trace.

-78K0- -78K0S- -78K4- -78K0R-

Is this information useful for you ?
back to top  
(2008/02)

ID_Data
-0697
How are the contents of a pointer type variable and structure referenced?
Q1
How are the contents of a pointer type variable and structure referenced?
A1
Pointer type variables and structures are referenced in the Watch window or Quick Watch dialog box.

A simple method of referencing is described below.

  1. Open the Source window where the variable or structure to be referenced exists.
  2. Click the button to open the Watch window.
  3. Select the variable or structure to be referenced on the Source window (selected item will be highlighted) and drag & drop it to the Watch window.
    After the variable or structure is dragged onto the window as shown in the figure below, drop it when the cursor becomes an [OK] mark.

  4. Double-click "+" displayed at the beginning of the name of a pointer type variable or structure. The contents of the data or structure indicated by a pointer can be displayed.

-78K0- -78K0S- -78K4- -78K0R-

Is this information useful for you ?
back to top  
(2008/02)

ID_Data
-0698
Does the ID78K0R support any function to display the contents of all RAMs in real time?
Q1
Does the ID78K0R support any function to display the contents of all RAMs in real time?
A1
The contents of all internal RAMs can be displayed in real time.
The function to display memory contents in real time (the realtime RAM sampling function) can be used in the Memory window or Watch window.

-78K0- -78K0S- -78K4- -78K0R-

Is this information useful for you ?
back to top  
(2008/02)

ID_Data
-0385
What is displayed in the Memory window when memory is mapped?
Q1
When the memory is mapped, how is it displayed in the Memory window?
A1
It is displayed in the same manner as internal memory.

-78K0- -78K0S- -78K4- -78K0R-

Is this information useful for you ?
back to top  
(2008/02)

ID_Data
-0699
All the SFR values in the Memory window are displayed as "?".
Q1
All the SFR values in the Memory window are displayed as "?".
A1
SFR values cannot be displayed in the Memory window.
Use the SFR window or Local Variable window to check these values.

-78K0- -78K0S- -78K4- -78K0R-

Is this information useful for you ?
back to top  
(2008/02)

ID_Data
-0504
The value of variable WORK+10 is checked on the Watch window but it is not correct.
Q1
I checked the the value of variable WORK+10 (address incremented by 10 addresses in decimal numbers from WORK) on the Watch window, but it is not correct.

Value of program: 0xFEDA
Value on Watch window: 0xFEE0

A1
Hexadecimal numbers are used for input by default in the symbol specification area of the Add Watch dialog box or the Quick Watch dialog box.

To input decimal numbers, specify "t" indicating decimal numbers.
To input A to F, prefix "0".

[Example]
"WORK+10" -> "WORK+10t"
"WORK+A" -> "WORK+0A"
If a variable is used like an array as in the case above, the variables can be checked in an array form if the number of data to be displayed is specified in the display item number specification area of the Add Watch dialog box or the Quick Watch dialog box.

-78K0- -78K0S- -78K4- -78K0R-

Is this information useful for you ?
back to top  
(2008/02)

ID_Data
-0704
I calculated the checksum value of the ROM area (0000h to 3FFDh) using the user program, but the value differed depending on whether I use the system simulator (SM+ for 78K0R) or the integrated debugger (ID78K0R-QB).
Q1
I calculated the checksum value of the ROM area (0000h to 3FFDh) using the user program, but the value differed depending on whether I use the system simulator (SM+ for 78K0R) or the integrated debugger (ID78K0R-QB).
A1
When using the SM+ for 78K0R, the ROM area after startup is 00h. When using the ID78K0R-QB, however, the value of this area is undefined.
Moreover, if there is a software break set in the area to be calculated, the ROM value in that area will also be undefined.
This causes the free area of the user program to be undefined, leading to different checksum values.

This situation can be avoided in the following two ways.
  • Fill the area using the Object Fill setting under the Object Converter option.
  • Use a hardware break instead of a software break.

-78K0R-

Is this information useful for you ?
back to top  
(2008/02)









































 LEGAL  RSS Feeds       © 1995-2008  NEC Electronics Corporation