Skip to main content

IAR Embedded Workbench for Arm 9.70.x

__hwReset

In this section:
Syntax
__hwReset(halt_delay)
Parameters
halt_delay

The delay, in milliseconds, between the end of the reset pulse and the halt of the CPU. Use 0 (zero) to make the CPU halt immediately after reset.

Return value

Result

Value

Successful. The actual delay value implemented by the emulator

>=0

Successful. The delay feature is not supported by the emulator

-1

Unsuccessful. Hardware reset is not supported by the emulator

-2

Table 39. __hwReset return values 


For use with

This system macro is available for all JTAG interfaces.

Description

Performs a hardware reset and halt of the target CPU.

Example
__hwReset(0)

Resets the CPU and immediately halts it.

Note

User-defined millisecond timeouts and delays are generated using the host operating system clock ticks. Because the host operating system is not a real-time OS, the actual delay or timeout will vary each time with approximately 5–20 ms.