Skip to main content

IAR Embedded Workbench for RX 5.20

Start debugging a running application

In this section:

Using an E1, E20, E2, or E2 Lite/EZ-CUBE2 emulator, you can start debugging a running application at its current location, without resetting the target system.

Start debugging from the middle of execution
  1. Make sure that your application is running on the target board and that the target board is powered by external power.

  2. Choose Project>Attach to Running Target. For information about this menu command, see under Project menuProject menu.

  3. When you are prompted, connect the emulator to the target board and click OK.

    ConnectTheEmulatorAlert_RX.png
  4. Enter the ID code of the target MCU in the ID Code Verification dialog box.

    IDCodeVerificationDialog_RX.png
  5. When the debug session starts, your application is still executing but now you can monitor RAM and look at variables in the Live Watch window.

  6. To stop execution, click Stop or set a breakpoint.

  7. You can now debug your application as usual.