__hwReset
Syntax
__hwReset(halt_delay)
Parameters
halt_delayThe 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 |
|
Successful. The delay feature is not supported by the emulator |
|
Unsuccessful. Hardware reset is not supported by the emulator |
|
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.