What is the equivalent of the micro-trace buffer for K64F

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

What is the equivalent of the micro-trace buffer for K64F

跳至解决方案
2,116 次查看
germanrivera
Contributor III

Is there an equivalent in K64F for the micro-trace buffer present KL25Z?

The K64F documentation says that the K64F has the "Embedded Trace Buffer"  (ETB) and "Embedded Trace Macrocell"

(ETM) modules, but they don't seem as easy to use as the "Micro Trace Buffer" (MTB) of the KL25Z. It seems that you need a

a specialized debugger to be able to extract the tracing information from ETM/ETB. In contrast to use

the KL25Z MTB, you can  access the trace buffer easily from the application code.

Thanks,

German

1 解答
1,871 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi German Rivera,

      If you don't use the debugger, according to ARM's document Embedded trace buffer reference manual, page 60, software access to the ETB using the AHB interface.

    You can refer to that document, but I haven't use it before.


Have a great day,

Jingjing

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,871 次查看
brendonslade
NXP TechSupport
NXP TechSupport

MCUXpresso IDE supports instruction trace using ETB. You can use this with LPC-Link2, SEGGER or PE probes. You dont need to try and extract this yourself to use it.

See this tutorial video:

https://www.nxp.com/design/training/advanced-debugging-with-mcuxpresso-ide-part-4-instruction-trace:... 

You can also use tools from SEGGER, IAR and Arm to do this.

1,871 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi German Rivera,

      ETB module in K64F is like the MTB module in KL25Z.

    About the ETB usage, actually in ARM's web, there has a document named as Embedded trace buffer reference manual for the detail ETB information, the document link is:

http://infocenter.arm.com/help/topic/com.arm.doc.ddi0242b/DDI0242.pdf

    You can refer to the document for more ETB knowledge.

    But now, about the ETB usage, we mainly use the debugger tool associate with the IDE to trace the code, for example, JLINK+IAR:

pastedImage_2.png

Wish it helps you!

If you still have question, please contact with me!


Have a great day,
Jingjing

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,871 次查看
germanrivera
Contributor III

Hi Jingjing,

Thanks a lot for your response. If you don't have a debugger capable of extracting the ETB buffer.

Can you still extract it programmatically from your own code?

Thanks,

German

0 项奖励
回复
1,872 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi German Rivera,

      If you don't use the debugger, according to ARM's document Embedded trace buffer reference manual, page 60, software access to the ETB using the AHB interface.

    You can refer to that document, but I haven't use it before.


Have a great day,

Jingjing

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复