Changes

Jump to: navigation, search
History
|June 2021
|First public release
|-
|1.0.1
|June 2021
|Added webinar recording
|}
The webinar showed advanced techniques used to debug, trace, and energy profile the code executed by the NXP i.MX8M SoC powering the [[MITO_8M_SOM|Mito8M system-on-module (SoM)]] with the aid of Lauterbach tools.
Specifically, this article deals with JTAG debugging, which is a stop-mode technique. Unlike run/mode debuggers such as GDB, this means that the debugger stops the processor, for example, to execute the code step-by-step or when it hits a breakpoint. Another fundamental characteristic of this mode is that the processor cooperates with the debugger for controlling the execution of the code and for accessing internal resources (CPU registers, RAM/flash mempriesmemories, on-chip periperal peripheral registers, etc.). For more details on JTAG debugging, please refer to [https://www2.lauterbach.com/pdf/training_jtag.pdf this document].
Tracing is en an extremely powerful technique that comes to help not only to "enhance" the debugging. It is also an outstanding troubleshooting weapon and allows advanced measurements, profiling, and specific software-related testing like code coverage. You can think about it as a sort of "movie" that is shot in real-time and in a non-intrusive fashion while the processor is running. Later on, it allows engineers to scrutinize all the processor's activity around specific events that occurred in the past. For instance, this is astonishingly useful for analyzing errors, bugs, or other situations that do not allow to stop the processor. With respect to tracing, three different strategies are here illustrated:
* Onchip trace
* Offchip trace via Trace Port Interface Unit (TPIU)
=== Startup scripts ===
Reference scripts for startup and for configuring the Analog Probe are available for download: please refer to [[#Resources|''Resources'']] section below.
For more details about the PRACTICE batch language, please refer to https://www.lauterbach.com/manual.html:
* Training PRACTICE manual (training_practice.pdf)
==Resources==
The TRACE32 scripts used for this demonstration can be downloaded [[:File:Mito8M-TRACE32-debug-trace-energy-profiling.zip|here]].
 
Webinar recording is also avalaible. It is in Italian, but it is possible to enable English subtitles as well.
 
{{#ev:youtube|FGZ7jjzzelU|600|center|Webinar recording|frame}}
== References ==
4,650
edits

Navigation menu