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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
2,150件の閲覧回数
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,905件の閲覧回数
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,905件の閲覧回数
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,905件の閲覧回数
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,905件の閲覧回数
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,906件の閲覧回数
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 件の賞賛
返信