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. ![Smile :)]()
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).
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