RPI5 Debugging - oleksiimoisieiev/rpi5-knowledge-base GitHub Wiki
RPI5, unlike RPI4 uses Debug uart port to connect to the debugger The following article shows the connection schema:
https://macoy.me/blog/programming/RaspberryPi5Debugging
In this article openocd config and all necessary preparation was provided. To connect to RPI5 RP2040 debug probe was used.
Link to debug probe: https://evo.net.ua/prohramator-raspberry-pi-debug-probe/?gad_source=1&gclid=CjwKCAjwoPOwBhAeEiwAJuXRh1FC1FZZrIglMoDVq7XXyYNAuXBs_3iI4Mc4rza9pg3ib78F1sdkuBoCzoIQAvD_BwE
According to the documentation https://wiki.segger.com/Raspberry_Pi_RP2040 RP2040 is fully supported by jlink, but I was unable to start JlinkLite using openocd.
Important RPI5 uses debug interface for either Uart debug port or SWD debugger connection. So they can't be enabled by default.
Stopping work on this right now. Will continue if it will be necessary for debugging purposes.
Link to discussion: https://forums.raspberrypi.com/viewtopic.php?t=362067