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
Solved! Go to Solution.
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!
-----------------------------------------------------------------------------------------------------------------------
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:
You can also use tools from SEGGER, IAR and Arm to do this.
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:
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!
-----------------------------------------------------------------------------------------------------------------------
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
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!
-----------------------------------------------------------------------------------------------------------------------