IP Library Granted Patent US 9,348,723
Granted Patent B2
US 9,348,723 · App. 13/977,076 · Granted May 24, 2016

Method, system, and computer program product

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,348,723
App. No.
13/977,076
Granted
May 24, 2016
Kind
B2
Abstract

A method for retrieving trace data from a target device is proposed. The target device comprises a program memory, a processor, a trace unit, and a trace buffer. The processor is operable to retrieve instructions from the program memory and to execute them. The trace buffer may contain trace data generated by the trace unit in response to the processor retrieving or executing instructions from the program memory. One or more patch instructions are written to the program memory. The processor executes said one or more patch instructions. The target device, in response to the processor executing said one or more patch instructions, performs a data transfer operation for copying the trace data from the trace buffer to a second memory outside the target device.

Claims (56)

1. A method of retrieving trace data from a target device, the target device comprising:

a program memory,

a processor for retrieving instructions from the program memory and executing them,

a trace unit, and

a trace buffer including trace data generated by the trace unit in response to the processor retrieving or executing instructions from the program memory;

wherein the method comprises:

writing one or more patch instructions to the program memory, the patch instructions comprising at least a first patch instruction;

operating the processor to execute said one or more patch instructions; and

the target device performing a data transfer operation for copying the trace data from the trace buffer to a second memory outside the target device, in response to the processor executing said patch instructions, wherein said operating the processor to execute said one or more patch instructions comprises:

the processor retrieving or executing a triggering instruction;

the trace unit advancing a Trace Write Pointer by a defined increment in response to said retrieving or executing the triggering instruction;

the Trace Write Pointer thus hitting a Trace Event Request address of the trace buffer; and

the trace unit triggering the data transfer operation in response to the Trace Write Pointer hitting the Trace Event Request address.

2. The method as set forth in claim 1 , wherein the processor enters a stop mode prior to said writing.

3. The method as set forth in claim 2 , wherein a debugging interface is used to read data from and write data to the target device while the processor is in the stop mode.

4. The method as set forth in claim 1 , wherein the target device has a program counter indicating a current location in the program memory and the method further comprises

reading the program counter;

and said writing comprises

writing the first patch instruction to a location according to the indicated location.

5. The method as set forth in claim 1 , wherein the target device has a program counter indicating a current location in the program memory and said writing comprises

writing the first patch instruction to a selected location in the program memory;

and the method further comprises

setting the program counter according to the selected location.

6. The method as set forth in claim 1 , wherein triggering the data transfer operation comprises

the trace unit generating an interrupt; and

the processor executing an interrupt service routine in response to the interrupt, the interrupt service routine comprising instructions for performing the data transfer operation.

7. The method as set forth in claim 1 , further comprising, prior to said operating,

setting the trace unit into a Trace Event Request mode; and

setting the Trace Event Request address according to a trace buffer address indicated by the Trace Write Pointer.

8. The method as set forth in claim 1 , wherein the triggering instruction is either the first patch instruction or an instruction referenced by the first patch instruction.

9. The method as set forth in claim 1 , wherein the triggering instruction is a jump to a second instruction or a call of a subroutine.

10. The method as set forth in claim 9 , wherein the second instruction or the subroutine comprises a stop instruction.

11. The method as set forth in claim 1 , wherein said operating comprises

setting the processor into a run mode or into a single-step mode.

12. The method as set forth in claim 1 , further comprising

restoring original instructions in the program memory, wherein the original instructions resided in the program memory prior to the writing the one or more patch instructions to the program memory.

13. A system comprising a host device and a target device, wherein the system is arranged to perform the method as set forth in claim 1 .

14. A non-transitory machine-readable storage medium for enabling a host device to perform the method as set forth in claim 1 .

15. A method of retrieving trace data from a target device, the target device comprising a program memory, a processor for retrieving instructions from the program memory and executing the instructions, a trace unit, and a trace buffer including trace data generated by the trace unit in response to the processor retrieving or executing instructions from the program memory, wherein the method comprises:

writing one or more patch instructions to the program memory, the patch instructions comprising at least a first patch instruction;

operating the processor to execute said one or more patch instructions; and

the target device performing a data transfer operation for copying the trace data from the trace buffer to a second memory outside the target device in response to a trace write pointer hitting a trace event request address, wherein said operating comprises:

the processor retrieving or executing a triggering instruction;

the trace unit advancing a Trace Write Pointer by a defined increment in response to said retrieving or executing the triggering instruction;

the Trace Write Pointer thus hitting a Trace Event Request address of the trace buffer; and

the trace unit triggering the data transfer operation in response to the Trace Write Pointer hitting the Trace Event Request address.

16. The method as set forth in claim 15 , wherein the processor enters a stop mode prior to said writing.

17. The method as set forth in claim 16 , wherein a debugging interface is used to read data from and write data to the target device while the processor is in the stop mode.

18. The method as set forth in claim 15 , wherein the target device has a program counter indicating a current location in the program memory and the method further comprises

reading the program counter;

and said writing comprises

writing the first patch instruction to a location according to the indicated location.

19. The method as set forth in claim 15 , wherein the target device has a program counter indicating a current location in the program memory and said writing comprises

writing the first patch instruction to a selected location in the program memory;

and the method further comprises

setting the program counter according to the selected location.

Assignments (30)
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 11759915 AND REPLACE IT WITH APPLICATION 11759935 PREVIOUSLY RECORDED ON REEL 040925 FRAME 0001. ASSIGNOR(S) HEREBY CONFIRMS THE RELEASE OF SECURITY INTEREST. Recorded Feb 17, 2020
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP, B.V. F/K/A FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 052917/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 11759915 AND REPLACE IT WITH APPLICATION 11759935 PREVIOUSLY RECORDED ON REEL 040928 FRAME 0001. ASSIGNOR(S) HEREBY CONFIRMS THE RELEASE OF SECURITY INTEREST. Recorded Jan 17, 2020
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP B.V.
Reel/Frame 052915/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12298143 PREVIOUSLY RECORDED ON REEL 042985 FRAME 0001. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Recorded Oct 22, 2019
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 051029/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12298143 PREVIOUSLY RECORDED ON REEL 039361 FRAME 0212. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Recorded Oct 22, 2019
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 051029/0387 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12298143 PREVIOUSLY RECORDED ON REEL 038017 FRAME 0058. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Recorded Oct 22, 2019
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 051030/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12298143 PREVIOUSLY RECORDED ON REEL 042762 FRAME 0145. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Recorded Oct 22, 2019
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 051145/0184 →
RELEASE OF SECURITY INTEREST Recorded Sep 10, 2019
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP B.V.
Reel/Frame 050745/0001 →
RELEASE OF SECURITY INTEREST Recorded Sep 10, 2019
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP B.V.
Reel/Frame 050744/0097 →
CORRECTIVE ASSIGNMENT TO CORRECT THE TO CORRECT THE APPLICATION NO. FROM 13,883,290 TO 13,833,290 PREVIOUSLY RECORDED ON REEL 041703 FRAME 0536. ASSIGNOR(S) HEREBY CONFIRMS THE THE ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS.. Recorded Feb 20, 2019
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: SHENZHEN XINGUODU TECHNOLOGY CO., LTD.
Reel/Frame 048734/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12681366 PREVIOUSLY RECORDED ON REEL 038017 FRAME 0058. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Recorded May 9, 2017
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 042985/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12681366 PREVIOUSLY RECORDED ON REEL 039361 FRAME 0212. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Recorded May 9, 2017
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 042762/0145 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE PATENTS 8108266 AND 8062324 AND REPLACE THEM WITH 6108266 AND 8060324 PREVIOUSLY RECORDED ON REEL 037518 FRAME 0292. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS. Recorded Feb 1, 2017
From: CITIBANK, N.A.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 041703/0536 →
CORRECTIVE ASSIGNMENT TO CORRECT THE NATURE OF CONVEYANCE PREVIOUSLY RECORDED AT REEL: 040652 FRAME: 0241. ASSIGNOR(S) HEREBY CONFIRMS THE MERGER AND CHANGE OF NAME. Recorded Jan 5, 2017
From: FREESCALE SEMICONDUCTOR, INC.
To: NXP USA, INC.
Reel/Frame 041260/0850 →
MERGER Recorded Nov 8, 2016
From: FREESCALE SEMICONDUCTOR, INC.
To: NXP USA, INC.
Reel/Frame 040652/0241 →
RELEASE OF SECURITY INTEREST Recorded Nov 7, 2016
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP B.V.
Reel/Frame 040928/0001 →
RELEASE OF SECURITY INTEREST Recorded Sep 21, 2016
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP, B.V., F/K/A FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 040925/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12092129 PREVIOUSLY RECORDED ON REEL 038017 FRAME 0058. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Recorded Jul 14, 2016
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 039361/0212 →
SUPPLEMENT TO THE SECURITY AGREEMENT Recorded Jun 16, 2016
From: FREESCALE SEMICONDUCTOR, INC.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 039138/0001 →
SECURITY AGREEMENT SUPPLEMENT Recorded Mar 7, 2016
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 038017/0058 →
ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS Recorded Jan 13, 2016
From: CITIBANK, N.A.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 037518/0292 →
ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS Recorded Jan 6, 2016
From: CITIBANK, N.A.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 037445/0592 →
PATENT RELEASE Recorded Dec 21, 2015
From: CITIBANK, N.A., AS COLLATERAL AGENT
To: FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 037357/0804 →
PATENT RELEASE Recorded Dec 21, 2015
From: CITIBANK, N.A., AS COLLATERAL AGENT
To: FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 037357/0819 →
PATENT RELEASE Recorded Dec 21, 2015
From: CITIBANK, N.A., AS COLLATERAL AGENT
To: FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 037357/0844 →
SECURITY AGREEMENT Recorded Nov 6, 2013
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A., AS NOTES COLLATERAL AGENT
Reel/Frame 031591/0266 →
SUPPLEMENT TO IP SECURITY AGREEMENT Recorded Sep 20, 2013
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A., AS NOTES COLLATERAL AGENT
Reel/Frame 031248/0510 →
SUPPLEMENT TO IP SECURITY AGREEMENT Recorded Sep 20, 2013
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A., AS NOTES COLLATERAL AGENT
Reel/Frame 031248/0627 →
SUPPLEMENT TO IP SECURITY AGREEMENT Recorded Sep 20, 2013
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A., AS NOTES COLLATERAL AGENT
Reel/Frame 031248/0698 →
SUPPLEMENT TO IP SECURITY AGREEMENT Recorded Sep 20, 2013
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A., AS COLLATERAL AGENT
Reel/Frame 031248/0750 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 28, 2013
From: IONESCU, RAZVAN; VICOVAN, IONUT-VALENTIN
To: FREESCALE SEMICONDUCTOR INC.
Reel/Frame 030705/0970 →