Keil Logo

EventRecorder

The Event Recorder supports a set of debug commands that allow logging the Event Recorder items, storing Event Statistics data, as well saving and restoring the filter settings. 

Syntax Description
ER > path\filename Creates the file filename as a *.csv log file (if no other file extension is specified). Output from the Event Recorder window is written to this file. New events are continuously added to this log file.
ER >> path\filename Opens an existing log file, filename, for appending *.csv log information. If the filename does not exist, it is created. Output from the Event Recorder window is appended to this *.csv file.
ER Displays the status of the Event Recorder.
ER OFF Closes the log file.
ER SAVE path\filename Saves current Event Recorder filter setup to a binary file.
ER LOAD path\filename Loads Event Recorder filter setup from a previously saved binary file.
ER STAT path\filename Creates the file filename as a *.csv file (if no other file extension is specified). The actual data from the Event Statistics window gets stored once in this file.
ER RESET Clears the Event Statistics data. Records in the Event Recorder window stay unchanged.

The path can contain a drive letter and path specification. Relative path from the project location can be used as well.

Examples

Specify an Event Recorder log and check the current status:

ER >C:\TMP\erlog                      /* Create a new Event Recorder log file  */
ER                                    /* Interrogate Event Recorder status     */
 Event Recorder log file: C:\TMP\erlog.csv
 Event Buffer: 0x20000000 - 0x20001FFF  (512 records)
 Record Capturing: count=7600, first=4500, missed=76

When missed events are reported, the recording is incomplete. The following steps may help to resolve it:

  • Go to View – Periodic Window update or close some debug windows with live updates.
  • Increase the "Number of Records" in the EventRecorderConf.h configuration file.
  • Use Event Filters to reduce the number of recorded events.

Output in case there's no Event Recorder in the target application:

ER                                    /* Interrogate Event Recorder status     */
 Event Recorder log file: <none> 
 Event Buffer: <none>

Save/restore current filter settings to/from a binary file:

ER SAVE C:\TMP\MySetup.erfilt         /* Save current filter settings          */
ER LOAD C:\TMP\MySetup.erfilt         /* Restore previous filter settings      */

Save and reset the Event Statistics data:

ER STAT C:\TMP\erStat.csv             /* Save current event statistics data    */
ER RESET                              /* Reset the event statistics data       */
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.