ETM: Embedded Trace Macrocell, hardware unit responsible to generate hardware instruction trace.
ETM模块用于在硬件层面实现instruction trace,可用于辅助逆向分析。
使用教程:
https://mcuoneclipse.com/2016/11/05/tutorial-getting-etm-instruction-trace-with-nxp-kinetis-arm-cortex-m4f/
The Tower-K64F120M is a development board for the Kinetis® K24, K63 and K64 120 MHz 32-bit Arm® Cortex®-M4 MCUs.
TWR-K64F是一块开发板,如下图所示。他可以作为独立的调试工具运行,也可作为部件与塔式系统开发平台结合使用。
可以使用Hardware Trace Probe对TWR-K64F开发板进行trace。
下图中的黑色的东西就是一种Hardware Trace Probe:Segger J-Trace
参见:https://mcuoneclipse.com/2016/10/09/first-steps-with-ozone-and-the-segger-j-link-trace-pro/
J-Trace的USB口连接开发板,用于给开发板供电
J-Trace的排线连接开发板的SWO 引脚
J-Trace的LAN口连接PC
开发板上需要有Debug Header调试头:
ARM developer官方教程:
https://developer.arm.com/documentation/ihi0014/q/Introduction/About-Embedded-Trace-Macrocells
其他参考教程:
https://www.asset-intertech.com/wp-content/uploads/2020/09/debug-and-trace-using-arm-system-trace-macrocell-stm.pdf