Displaying a power profile and analyzing the result
Start the debugger.
Choose Driver>Power Log Setup. Enable power logging and make the required settings. If you are using an E2 emulator, you must also open the Hardware Setup dialog box and make sure that the target board is powered by the emulator.
Choose Driver>Timeline to open the Timeline window.
Right-click in the graph area and choose Enable from the context menu to enable the power graph you want to view.
Choose Driver>Power Log to open the Power Log window.
Optionally, before you start executing your application you can configure the viewing range of the Y-axis for the power graph. See Viewing Range dialog box.
Click Go on the toolbar to start executing your application. In the Power Log window, all power values are displayed. In the Timeline window, you will see a graphical representation of the power values. For information about how to navigate on the graph, see Navigating in the graphs.
To analyze power consumption (requires a J-Link debug probe):
Double-click on an interesting power value to highlight the corresponding source code in the editor window and in the Disassembly window. The corresponding log is highlighted in the Power Log window. For examples of when this can be useful, see Optimizing your source code for power consumption.
For a specific interrupt, you can see whether the power consumption is changed in an unexpected way after the interrupt exits, for example, if the interrupt enables a power-intensive unit and does not turn it off before exit.
For function profiling, see Selecting a time interval for profiling information.