11.6 Controlling ETM programming

When programming the ETM registers, you must enable all the changes at the same time. For example, if the counter is reprogrammed, it might start to count based on incorrect events, before the trigger condition has been correctly set up.

You program and read the ETM registers using the Debug APB interface. This provides a direct method of programming the Cortex®‑R8 processor ETM.

You must use the ETM main enable in the TRCPRGCTLR to disable all trace operations during programming. in the following figure shows the procedure to follow.

Figure 11-4 Programming Cortex‑R8 processor ETM registers
To view this graphic, your browser must support the SVG format. Either install a browser with native support, or install an appropriate plugin such as Adobe SVG Viewer.

The Cortex‑R8 processor does not have to be in the debug state while you program the ETM registers.

Non-ConfidentialPDF file icon PDF versionARM 100400_0001_03_en
Copyright © 2015–2017 ARM Limited or its affiliates. All rights reserved.