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

General • Re: ETM instruction tracing for RP2350

$
0
0
I am usually doing a mess when testing, sometimes hard to find, or hard to remember what I've tried, many things done live from debugger. :)

Yep, the most important is to select the functions for GPIO pins (1-5):
gpio_set_function (1, GPIO_FUNC_CORESIGHT_TRACE);

Then strictly for TPIU output:
*tpiu_cspsr = 0x08; # <<4 bit interface>> CORESIGHT_TPIU_BASE + 0x0004
*tpiu_ffcr = 0x00; # CORESIGHT_TPIU_BASE + 0x0304
*tpiu_fscr = 0x00; # CORESIGHT_TPIU_BASE + 0x0308

Though with Segger J-Trace Pro, it should be that the Ozone debugger do all the setup (similarly how czietz did).

Statistics: Posted by gmx — Fri Apr 25, 2025 8:32 pm



Viewing all articles
Browse latest Browse all 8013

Trending Articles