Skip to main content

IAR Embedded Workbench for Arm 9.70.x

__emulatorStatusCheckOnRead

In this section:
Syntax
__emulatorStatusCheckOnRead(status)
Parameters
status

Use 0 to enable checks (default). Use 1 to disable checks.

Return value

int 0

For use with

The C-SPY J-Link/J-Trace driver.

Description

Enables or disables the driver verification of CPSR (current processor status register) after each read operation. Typically, this macro can be used for initiating JTAG connections on some CPUs, like Texas Instruments’ TMS470R1B1M.

Note

Enabling this verification can cause problems with some CPUs, for example if invalid CPSR values are returned. However, if this verification is disabled (SetCheckModeAfterRead = 0), the success of read operations cannot be verified and possible data aborts are not detected.

For the C-SPY I-jet/JTAG-jet driver, this macro is recognized, but has no effect.

Example
__emulatorStatusCheckOnRead(1)

Disables the checks for data aborts on memory reads.