Pular para o conteúdo principal
Knowledgebase
Home
Renesas Brasil - Knowledgebase

How can I view value stored at memory address in the watch window?

Latest Updated:03/19/2012

Question:

Sometimes the value stored at the memory address specified by the char-type variable pointer is not displayed in the watch window. (The specified location is, however, displayed in the memory window.) How can I view this in the watch window?

Answer:

The address specified by the char-type variable pointer will not be displayed in the watch window if it falls within the following descriptions.

  1. Address 0xFFFFFF81 or higher
  2. Within 128 bytes of the end address of any area in the memory map.

Ex:

Sample program

char* cp = (char*)0xFFFFFF80;
		
	void main(void)
	{ 	
		*cp = '0'; //Assign 0x30 to 0xFFFFFF80
		cp++;
		*cp = '1'; //Assign 0x31 to 0xFFFFFF81
		cp++;
		*cp = '2'; //Assign 0x32 to 0xFFFFFF82
	}

 

Areas within 128 bytes of the end address of the memory map
0x00000000 ~ 0x00007FFF // 0x00007F81 ~ 0x00007FFF
0xF0000000 ~ 0xF000FFFF // 0xF000FF81 ~ 0xF000FFFF
0xFFFF8000 ~ 0xFFFFFFFF // 0xFFFFFF81 ~ 0xFFFFFFFF

 

Watch window display
- "cp" 0x00007f80 { 00001400 } (char*)  
  - "*"   H'35 "5" { 00007F80 } (char) //Referable
- "cp" 0x00007f81 { 00001400 } (char*)  
  - "*"   Not available now. //Address corresponds to description 2
- "cp" 0xfffffff0 { 00001400 } (char*)  
  - "*"   Not available now. /Address corresponds to descriptions 1 and 2

 

Memory window display
  +0 +1 +2 +3 +4 +5 ... | ASCII
FFFFFF80 30 31 32 00 00 00 ... | 012..


To refer to the value in the watch window, add an expression that directly indicates the address specified by the pointer to the watch window.

Ex.:  
  Watch window
  - "*cp" H'32 "2" { FFFFFF82 } (char)

Suitable Products
High-performance Embedded Workshop
Simulator Debugger for SuperH Family [for High-performance Embedded Workshop]
Simulator Debugger for RX Family [for High-performance Embedded Workshop]
Simulator Debugger for H8SX, H8S, and H8 Families [for High-performance Embedded Workshop]
E1 [R0E000010KCE00]
E20 [R0E000200KCT00]
E10A-USB
E8a
E100
E200F
E6000H
E6000