ULINK2 User's Guide

Testing the Real-Time Agent

After the project has been configured to use the Real-Time Agent, it is easy to verify that it is working properly.

  1. Build the project, download it to the target hardware, start the debugger, and click the Run button.
  2. Enable View - Periodic Window Update.
  3. Open a Watch Window.
  4. Open the Symbols Window, and search for wr_idx. This variable is the write index (wr_idx) of the Real-Time Agent output buffer and changes its value often.
  5. Click on the wr_idx icon, then drag and drop it into the Watch Window.
  6. If the variable in the Watch Window is changing, then the Real-Time Agent has been integrated successfully into the application.

Note

  • If issues arise while integrating the Real-Time Agent, refer to the Keil MCB21XX boards examples, which are located in the folder ...\ARM\RT Agent\MCB21xx.
  • The I/O retargeting option must be enabled (see Configuring the Real-Time Agent) when using the RTA_printf() and RTA_scanf() macros.