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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,060 Views
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 Solution
815 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
4 Replies
815 Views
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.

815 Views
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 Kudos
815 Views
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 Kudos
816 Views
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 Kudos