beautypg.com

14 detecting exception events, 1 detecting exception events, 2 detecting an access protect violation – Renesas R0E530640MCU00 User Manual

Page 196: Detecting exception events, Detecting an access protect violation

background image

R0E530640MCU00 User’s Manual

5. Debugging Functions

REJ10J1733-0100 Rev.1.00 Apr. 01, 2008
Page 196 of 229


5.14 Detecting

Exception

Events


5.14.1 Detecting Exception Events
The E100 emulator permits you to detect various exception events that have occurred during user program execution.
Exception events include an abnormal behavior of the user program, as well as an overflow of the measurement counter of any
function involved, etc. Detection of a specified exception event can be set as a condition of a breakpoint or trace point.

(1) Exception events

The E100 emulator detects the exception events listed below.

- Violation of access protection: An error is detected when an access other than a specified access attribute was attempted.
- Read from uninitialized memory: An error is detected when uninitialized area (not write accessed) was accessed for read.
- Stack access violation: It is detected that the value of the stack register exceeded the stack area.
- Performance overflow: It is detected that during time measurement in a specified section of the program, some section

exceeded the maximum measurement time or maximum measurement count.

- Realtime profile overflow: It is detected that during profile measurement, some function (or task) exceeded the maximum

measurement time or maximum measurement count.

- Trace memory overflow: It is detected that trace memory overflowed.
- Task stack access violation: It is detected that a write to the relevant task stack was attempted from another task.
- OS dispatch: It is detected that a task dispatch occurred.

5.14.2 Detecting an Access Protect Violation
This is the function to detect an access protect violation such as a data write to the ROM area or an access to an unused area
(for read, write or instruction execution) and outputs an error.

(1) Access attributes

Following attributes can be specified in word units for any area.

Read/Write: Accessible for both read/write
Read Only: Accessible for read only
Write Only: Accessible for write only
Disable: Access prohibited
Disable (OS): Any access except from OS is prohibited (this attribute is automatically assigned when a program including an

OS is downloaded).


(2) Protected areas

Any area in the entire memory space may be access protected.
At emulator startup, the whole area is by default assigned a Read/Write access attribute.

This manual is related to the following products: