Você está na página 1de 3

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?

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

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

set up the AP index and the base address of each device: Right click on every Coresight device. Select Configuration option to edit the configurable parameters. The AP index default of 0x1 is correct for this system. Set the correct Coresight base address for each component as shown below: CSETB: CSETM: CSTPIU: CSCTI: CSCTI: 0x80001000 0x80002000 0x80005000 0x80003000 0x80004000

12. Right click on the ARM1176JZF-S-JATG-AP device, select "Properties" and select the "Embedded Trace Macrocell(ETM)". 13. In "RVConfig" window select the File tab, Save and Exit. 14. Return to RVD. The RVD connection control window will show all the devices you have configured, except for the ARMCS-DP. 15. Right click on ARM1176 and "Connect". Do the same for the ETM and TPIU. 16. You then need to set up the registers for the CSETM and TPIU. For the CSETM navigate to Target Connections. Select CSETM and navigate to View Registers. In the Registers window set the CS LOCKACCESS register to 0xC5ACCE55 and set the CS TRACE ID register to 0x1. Now select the TPIU. In the Registers window set the CSTPIU CURPORTSIZE to the required Port Width - 0x80 for 8-bit Port Width for example. Set the CSTPIU FFCR to 0x330 (Bypass Mode), to 0x331 (Normal Mode) or 0x332 (Continuous Mode). Set the CS LOCKACCESS to 0xC5ACCE55. 17. In RVD window: Click Target Connections and select the ARM1176 core. Click View Analysis Window. The Analysis window should open. Click the Edit tab and select the "Connect/Disconnect Analyzer" option. Load an image and run it. You should get trace output in the Analysis Window. Note that to be able to see the trace output on the Analysis window you should stop the target.

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

Você também pode gostar