MIPI RFFE Debugging With QRCT: Confidential and Proprietary - Qualcomm Technologies, Inc

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 24

MIPI RFFE Debugging with QRCT

80-NE606-1 B

Confidential and Proprietary – Qualcomm Technologies, Inc.


Restricted Distribution: Not to be distributed to anyone who is not an employee of either Qualcomm or its subsidiaries without the express approval of Qualcomm’s Configuration Management.
Confidential and Proprietary – Qualcomm Technologies, Inc.

Confidential and Proprietary – Qualcomm Technologies, Inc.


NO PUBLIC DISCLOSURE PERMITTED: Please report postings of this document on public servers or websites to: DocCtrlAgent@qualcomm.com.
Restricted Distribution: Not to be distributed to anyone who is not an employee of either Qualcomm or its subsidiaries without the express approval of Qualcomm’s
Configuration Management.
Not to be used, copied, reproduced, or modified in whole or in part, nor its contents revealed in any manner to others without the express written permission of
Qualcomm Technologies, Inc.
Qualcomm reserves the right to make changes to the product(s) or information contained herein without notice. No liability is assumed for any damages arising directly
or indirectly by their use or application. The information provided in this document is provided on an “as is” basis.
This document contains confidential and proprietary information and must be shredded when discarded.
Qualcomm is a trademark of QUALCOMM Incorporated, registered in the United States and other countries. All QUALCOMM Incorporated trademarks are used with
permission. Other product and brand names may be trademarks or registered trademarks of their respective owners.
This technical data may be subject to U.S. and international export, re-export, or transfer (“export”) laws. Diversion contrary to U.S. and international law is strictly
prohibited.
Qualcomm Technologies, Inc.
5775 Morehouse Drive
San Diego, CA 92121
U.S.A.
© 2012-2013 Qualcomm Technologies, Inc.
All rights reserved.

PAGE 2 80-NE606-1 B Jun 2013 Confidential and Proprietary – Qualcomm Technologies, Inc. | MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
Revision History

Revision Date Description

A Dec 2012 Initial release

B Jun 2013 Updated user interface in QRCT, which uses hex format in SID

PAGE 3 80-NE606-1 B Jun 2013 Confidential and Proprietary – Qualcomm Technologies, Inc. | MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
Contents

 MIPI Architecture
 MIPI Driver Debugging with QRCT
 References
 Questions?

PAGE 4 80-NE606-1 B Jun 2013 Confidential and Proprietary – Qualcomm Technologies, Inc. | MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
MIPI Architecture

PAGE 5 80-NE606-1 B Jun 2013 Confidential and Proprietary – Qualcomm Technologies, Inc. | MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
MSM8974/MDM9x25+WTR1605L RF Frontend (MIPI) Architecture

Envelope Tracking + PB-MMPA


MIPI RFFE Control for Frontend Components
ET
FEMiD QFE1100
MIPI GSM PA MIPI
RFFE RFFE
SAW
ANT MIPI
SAW RFFE
Switch
DUP
3G/4G PA MSM8974
Tuner MDM9x25
DUP B5/B8
QFE15xx
MIPI DUP 3G/4G PA WTR1605/L
Multimode
RFFE DUP B1/B2/B4
Multiband
DUP B1/B2/B4/B5/B8
7x5 mm

DUP 3G/4G PA B17

MIPI RFFE Control


 PRx and DRx antenna switches
 PB-MMPA + FEM w/Duplexers provides
 Both Discrete and FEM
significant size savings (~ 70 mm^2)
 PB-MMPA
 Total WTR + RFFE Area = ~211 mm^2
 Antenna tuner, RF SMPS
 MIPI RFFE & Modules = Increased routing
 Working with all vendors on parts efficiency
PAGE 6 80-NE606-1 B Jun 2013 Confidential and Proprietary – Qualcomm Technologies, Inc. | MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
MIPI Driver Debugging with QRCT

PAGE 7 80-NE606-1 B Jun 2013 Confidential and Proprietary – Qualcomm Technologies, Inc. | MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
Software Tool Preparation

 QPST – Build 399 or later

 QXDM Professional™ – Ver 03.14.377 or later


 QDART – Ver 4808 or later

PAGE 8 80-NE606-1 B Jun 2013 Confidential and Proprietary – Qualcomm Technologies, Inc. | MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
FTM Command and QLIB API

 FTM_DO_RFFE_CMD request packet/response packet


 The following fields are packet header information:
Field Length (bytes) Description
CMD_CODE 1 Command ID, CMD_CODE is set to 75 for this message (0x4B)
SUB_SYS_ID 1 FTM ID is 11
Mode ID 2 MODE ID for FTM_COMMON is 20
FTM CMD 2 FTM_DO_RFFE_CMD is 623
cmd_data_len 2 Request pkt data length, excluding the diag and FTM headers
cmd_rsp_pkt_size 2 rsp pkt size
FTM_RFFE_CMD 2 0 – Normal operation
Extended 1  0 – Non-extended
 1 – Extended
Read/Write 1  0 – Write
 1 – Read
Channel 1 Channel (Bus)
SID 1 USID/Assigned SID
Address 2 Register address
Data 1 Data
CLK speed 1  0 – Full speed
 1 – Half speed

PAGE 9 80-NE606-1 B Jun 2013 Confidential and Proprietary – Qualcomm Technologies, Inc. | MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QRCT MIPI RFFE Debugging

1. Open QRCT.
2. Connect COM Port.

 [QRCT Debug Message]


 01:55:55 QLIB_SetLibraryMode(1)
 01:55:55 QLIB_GetAvailablePhonesPortList()
 Com Port List = COM37
 01:57:45 QLIB_ConnectServerWithWait(COM37,2000)
 01:57:45 QLIB_IsPhoneConnected()
 01:57:45 QLIB_DIAG_READ_ESN_F()
 ESN = 0X0
 01:57:45 QLIB_DIAG_EXT_BUILD_ID_F()
 Hw/Sw Version = 31490 4083 M8974A-AAAANAZM-0.0.103205
PAGE 10 80-NE606-1 B Jun 2013 Confidential and Proprietary – Qualcomm Technologies, Inc. | MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QRCT MIPI RFFE Debugging (cont.)

3. Set FTM mode.

 [QRCT Debug Message]


 02:02:49 QLIB_DIAG_CONTROL_F(MODE_FTM_F)

PAGE 11 80-NE606-1 B Jun 2013 Confidential and Proprietary – Qualcomm Technologies, Inc. | MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QRCT MIPI RFFE Debugging (cont.)

4. Enter the technology (CDMA/GSM/WCDMA/LTE).


 This step is needed to activate the MIPI driver.

 [QRCT Debug Message]


 02:05:09 QLIB_FTM_SET_MODE(PHONE_MODE_WCDMA_IMT)

PAGE 12 80-NE606-1 B Jun 2013 Confidential and Proprietary – Qualcomm Technologies, Inc. | MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QRCT MIPI RFFE Debugging (cont.)

5. Open Menu→FTM Command→Common→Main Controls.

PAGE 13 80-NE606-1 B Jun 2013 Confidential and Proprietary – Qualcomm Technologies, Inc. | MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QRCT MIPI RFFE Debugging (cont.)

 Mode (refer to [S1])


 Non-extended

Figure 1 Register Write Command Sequence (Figure 33 in [S1])

PAGE 14 80-NE606-1 B Jun 2013 Confidential and Proprietary – Qualcomm Technologies, Inc. | MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QRCT MIPI RFFE Debugging (cont.)

 Mode (refer to [S1])


 Extended

Figure 2 Extended Register Write Command Sequence (Figure 29 in [S1])

PAGE 15 80-NE606-1 B Jun 2013 Confidential and Proprietary – Qualcomm Technologies, Inc. | MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QRCT MIPI RFFE Debugging (cont.)

 R/W
 Read
 Access the register to read in the Address (hex)
 Data will be shown in Data (hex)
 Write
 Access the register to write in the Address (hex)
 Place data in Data (hex)
 Trigger should be sent to apply the changes
 For example, write 0x0F in Register 0x00
 Write 00 in Address field, write 0F in Data field and execute Read/Write
 Write 1C in Address field, write 01 in Data field and execute Read/Write

PAGE 16 80-NE606-1 B Jun 2013 Confidential and Proprietary – Qualcomm Technologies, Inc. | MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QRCT MIPI RFFE Debugging (cont.)

 Channel
 Channel (Bus) – 0
 If MIPI device is assigned to RFFE1
 Usually Tx (PA/QPOET)
 Channel (Bus) – 1
 If MIPI device is assigned to RFFE2
 Usually Rx (ASM/Qtune)

PAGE 17 80-NE606-1 B Jun 2013 Confidential and Proprietary – Qualcomm Technologies, Inc. | MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QRCT MIPI RFFE Debugging (cont.)

 Slave ID (USID)
 Find USID in the MIPI hardware datasheet
 Hex type (can be reassigned)
 PA – 0xF
 ASM(PRX) – 0xB
 ASM(DRX) – 0xA
 QFE110x – 0x4

PAGE 18 80-NE606-1 B Jun 2013 Confidential and Proprietary – Qualcomm Technologies, Inc. | MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QRCT MIPI RFFE Debugging (cont.)

 Address – Refer to [Q3]


 0x1D – PID (Product ID/Read only)
 0x1E – MID (Manufacture ID/Read only)
 0x1F – MID + USID
 All other registers are accessible, e.g., after
writing R0x00 to 0xF, read it back and confirm

PAGE 19 80-NE606-1 B Jun 2013 Confidential and Proprietary – Qualcomm Technologies, Inc. | MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QRCT MIPI RFFE Debugging (cont.)

 Speed – Refer to [Q3]


 Full speed – Write/Read operation
 Half speed – Read operation

QTI specifications

PAGE 20 80-NE606-1 B Jun 2013 Confidential and Proprietary – Qualcomm Technologies, Inc. | MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
QRCT MIPI RFFE Debugging (cont.)

 Read/Write execute
 QRCT log will be shown in the Debug Message
Window
 09:59:00 QLIB_FTM_RFFE_READWRITE_CMD
 (0,1,0,0x04,0x1E,0,0)
 txtData = 17

PAGE 21 80-NE606-1 B Jun 2013 Confidential and Proprietary – Qualcomm Technologies, Inc. | MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
Problem Area Code for RF Design Software Cases

 It is important to correctly file RF cases with the proper problem area


code.
 This will help ensure that the case assignment is sent to the correct
technology support team for a prompt response.
 For RF Design software case codes:

Initial problem type Software

Problem Area 1 RF

Problem Area 2 RF Driver Design


Problem Area 3  FTM
 RF Band Support
 RF Design Review
 RF Frontend
 RF Bringup – Antenna
 RF Bringup – Functional Test
 RF Bringup – GPIO/GRFC
 RF Bringup – PA
 RF Bringup – Verification

PAGE 22 80-NE606-1 B Jun 2013 Confidential and Proprietary – Qualcomm Technologies, Inc. | MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
References

Ref. Document

Qualcomm Technologies
Q1 Application Note: Software Glossary for Customers CL93-V3077-1

Q2 RF Calibration Training Topics – Select Chipsets 80-VP447-29

Q3 RFFE Vendor Specification 80-N7876-1

Q4 RFFE Vendor Test Suite for Verification 80-N7876-2

Q5 Presentation: MSM8974 WTR1605 RF Frontend Software 80-NA157-71

Q6 Presentation: MDM9x25 WTR RF Frontend Software Overview 80-NC254-28

Q7 Presentation: Third-Party MIPI ASM Customization on MSM8974/MDM9x25 80-NA157-95

Q8 Presentation: Third-Party MIPI PA Customization on MSM8974/MDM9x25 80-NE509-1

Standards
S1 MIPI Alliance Specification for RF Front-End Control Interface (RFFE) Version 1.10, Dec 2011

PAGE 23 80-NE606-1 B Jun 2013 Confidential and Proprietary – Qualcomm Technologies, Inc. | MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
Questions?
https://support.cdmatech.com

PAGE 24 80-NE606-1 B Jun 2013 Confidential and Proprietary – Qualcomm Technologies, Inc. | MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION

You might also like