Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3873

General • Re: Trace FIFO and TPIU with ITM

$
0
0
I think I found one more issue in my code from my previous posting:
It is important to initialize TPIU, Funnel and DMA first and enable ITM afterwards. Otherwise some important packages are missing in trace.

Modifying OpenCSD to work with ITM instead of STM seems to be some more work, but I found this little tool in OpenOCD:
https://github.com/openocd-org/openocd/ ... /itmdump.c

If I feed it with the data captured on Pico 2, I get something like this (writing 0x13050000+i in loop to ITM)

Code:

TIMESTAMP - +7SWIT 0 - 0x13050068TIMESTAMP - +7SWIT 0 - 0x13050069TIMESTAMP - +7BAD SYNCSWIT 0 - 0x1305006aTIMESTAMP - +8, packet delayedSWIT 0 - 0x1305006bTIMESTAMP - +6SWIT 0 - 0x1305006cTIMESTAMP - +7SWIT 0 - 0x1305006dTIMESTAMP - +7SWIT 0 - 0x1305006e
:D

Statistics: Posted by philip23 — Tue Nov 12, 2024 11:39 am



Viewing all articles
Browse latest Browse all 3873

Trending Articles