Getting started using interrupt logging
To set up for interrupt logging using the C-SPY hardware debugger driver, you must make settings in three different dialog boxes:
Choose Project>Options>C/C++ Compiler>Output and select the option Generate interrupt instrumentation code.
Choose Driver>Operating Frequency and specify the operating frequency that the MCU is running at.
Choose Driver>Trace Setup and set the option On trace buffer full. Choose between:
Overwrite oldest frames to display the last ~500 log entries before the break in execution, in the Interrupt Log window.
Break execution to display the first ~500 log entries from the start of execution, in the Interrupt Log window.
For the C-SPY simulator, no specific settings are required.
Choose Driver>Interrupt Log to open the Interrupt Log window. Optionally, you can also choose:
Driver>Interrupt Log Summary to open the Interrupt Log Summary window
Driver>Timeline to open the Timeline window and view the Interrupt graph
From the context menu in the Interrupt Log window, choose Enable to enable the logging.
Start executing your application program to collect the log information.
To view the interrupt log information, look in the Interrupt Log or Interrupt Log Summary window, or the Interrupt graph in the Timeline window.
If you want to save the log or summary to a file, choose Save to log file from the context menu in the window in question.
To disable interrupt logging, from the context menu in the Interrupt Log window, toggle Enable off.