RVT FAQ: How do I configure RVD v3.1/RVI v3.1 to capture ETM Trace using RVT on the PB1176JZF-S platform?

The ARM1176JZF-S Development Chip integrated on the PB1176JZF-S can be configured as a traditional or a CoreSight JTAG system based design. To capture ETM trace on the PB1176JZF-S, the system must be configured as a Coresight system by placing a jumper on J1. Coresight components are accessed by specifying a DAPAP (Debug Access Port) and an address. This FAQ explains how to configure RealView Debugger v3.1 (RVD v3.1) and RealView ICE v3.1 (RVI v3.1) for external trace on the PB1176JZF-S using the Trace Port Interface Unit (TPIU). In this case, a RealView Trace (RVT) unit is required. The following software must be installed in order to perform trace on the PB1176JZF-S: RealView Development Suite (RVDS) v3.1 RVDS v3.1 Installer Patch RVDS v3.1 Patch RVI v3.1 To obtain the Installer Patch and the Patch for RVDS v3.1, please visit the ARM technical support web pages: http://www.arm.com/support/downloads/RVDS_31.html It is important to do this installation in the following order: 1. 2. 3. 4. RVDS v3.1 RVDS v3.1 Installer Patch RVDS v3.1 Patch RVI v3.1

The following steps are needed to configure the RVD v3.1/RVI v3.1 interface to the PB1176JZF-S: 1. Place a jumper link on J1 (DAP ENABLE) of the PB1176JZF-S board. 2. Connect the RVI unit to the JTAG port (J12 on the PB1176JZF-S) and the RVT probe to "Trace A" (J2 on the PB1176JZF-S). 3. Power up the PB1176JZF-S and the RVI unit. 4. Start RVD, this should bring up the RVD window. Click the "Target" tab and then click "Connect to target". This opens the RVD connection control window. 5. In RVD connection control window, right click on "RealView ICE" option to "Add Configuration". This opens the "RVConfig" window.

How do I configure RVD v3.1/RVI v3.1 to capture ETM Trace using RVT on the PB1176JZF-S platform?

1 to capture ETM Trace using RVT on the PB1176JZF-S platform? .Type=ARM1176JZF-JTAGAP.Core=ARM1176JZF-JTAGAP_1. expand the ARM11 (JTAG-AP) option. Every Coresight component present in the RVConfig window needs to be configured with the correct AP index and base address. Click "Auto Configure Scan Chain" to autodetect the Coresight system. For further information on writing and understanding Association Files you can visit ARM Technical Support web pages: http://www.2 these will have to be manually added as below. Now you will need to add the rest of Coresight components. The Coresight components have to be added in a specific order that matches the Association File. b.1 and 3. The debuggable devices connected to the DAP will not be found. 8. The Association File PB1176TraceTPIU_associations.TraceOutput1=ETB. The scan chain appears empty.arm. To How do I configure RVD v3. you will see an ICE unit with two ports. If the previous step has been successful it results in the ARMCS-DP (ARM CoreSight Debug Port) device being found. For RVI version 3. To add the "Association File".ETM=CSETM. in the "Add Device" window.1/RVI v3.txt file and click OK.Port0=CSETM.com/support/faqdev/18377. The CoreSight base address refers to the starting address of the debug registers for your component.txt contains the following text: Name=DAP. select the PB1176TraceTPIU_associations. To manually add the devices: a.html 11. Click the "Add Device" button. Add an Association File to link the devices.Port0=CSETM. From the "Registered Devices" list. Name=ARM1176JZF-JTAG-AP_1. This device represents the DAP in a CoreSight system. select ARM1176-JTAG-AP and click OK to add the device.6. Save this file in a local directory. 7. Follow the same procedure as in 9. The first component must be the core. The CoreSight AP index refers to the specific access port (inside the DAP) your component is connected to.1 but in this case. Name=CSETM.Type=ARMCS-DP. Name=ETB. 9.txt) is available from here. Name=TPIU. in "RVConfig" window click "Set Associations" button.TraceOutput0=TPIU.Type=CSETM. expand the "Coresight" option and select the devices in the following order: CSETB CSETM CSTPIU CSCTI CSCTI 10. The Association File association file (PB1176_associations. Test Data Input (TDI) and Test Data Output (TDO). This opens the Add Device window.Type=CSETB. If the connection to your RVI unit has been successful.Type=CSTPIU. In "RVConfig" window select your RVI unit from the list displayed and click the "Connect" button.

In the Registers window set the CS LOCKACCESS register to 0xC5ACCE55 and set the CS TRACE ID register to 0x1. The AP index default of 0x1 is correct for this system. Click View → Analysis Window.set up the AP index and the base address of each device: Right click on every Coresight device. The RVD connection control window will show all the devices you have configured. to 0x331 (Normal Mode) or 0x332 (Continuous Mode). Click the Edit tab and select the "Connect/Disconnect Analyzer" option. 14. Return to RVD.1 to capture ETM Trace using RVT on the PB1176JZF-S platform? . You should get trace output in the Analysis Window. Set the CS LOCKACCESS to 0xC5ACCE55. Note that to be able to see the trace output on the Analysis window you should stop the target. Now select the TPIU. except for the ARMCS-DP. Set the correct Coresight base address for each component as shown below: CSETB: CSETM: CSTPIU: CSCTI: CSCTI: 0x80001000 0x80002000 0x80005000 0x80003000 0x80004000 12. 16. How do I configure RVD v3. Load an image and run it. For the CSETM navigate to Target → Connections. You then need to set up the registers for the CSETM and TPIU. Right click on the ARM1176JZF-S-JATG-AP device. The Analysis window should open. Set the CSTPIU FFCR to 0x330 (Bypass Mode). Right click on ARM1176 and "Connect". Select CSETM and navigate to View → Registers. 17.0x80 for 8-bit Port Width for example.1/RVI v3. In the Registers window set the CSTPIU CURPORTSIZE to the required Port Width . Select Configuration option to edit the configurable parameters. 13. select "Properties" and select the "Embedded Trace Macrocell(ETM)". 15. In RVD window: Click Target → Connections and select the ARM1176 core. Do the same for the ETM and TPIU. In "RVConfig" window select the File tab. Save and Exit.