blob: 02188fe98d39af0190b250a815418e7c52ba20f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
-------------------------------------------------------------------------------
ARM ETM/ITM Tracing
-------------------------------------------------------------------------------
This is an example capture from ARM Cortex-M3 ETM/ITM trace stream.
The trace was captured from LPC1769 microcontroller while running
this software (revision bffb804):
https://github.com/PetteriAimonen/Smoothieware/tree/bffb804
The data has been captured with the CPU running at 4 MHz at 12 MHz samplerate,
to capture all the data. It has then been cut to a smaller fragment and
samplerate set to 300MHz so that times correspond to realtime speeds.
Configuration for decoding:
- UART signal 0, baudrate 100000000
- TPIU stream 2
- ARM_ETMv3, elffile=smoothieware.elf
The ETM capture has been configured without direct branch reporting,
so the .elf file is needed for proper decoding.
Note that the source code is not visible in the GUI (and not in objdump output
either), because it is not included in this repo. You can download it from the
above github link. Due to how gcc stores debug info, you have to put it in this
path if you want it to show: /home/petteri/projects/Smoothieware.
Logic analyzer setup
--------------------
The logic analyzer used was an FX2 based device (at 12MHz, but see above):
Probe LPC1769
-------------------
0 SWO
3 ?
5 ?
|