You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to ask a question about how to modify Zephyr configuration so that the GPIO 14, 15 (TX and RX pins as indicated in [1]) on the Raspberry Pi 5 can be used as the primary UART. In other words, when running a program, I would like to have the same setup in this image [2] and use a serial terminal (minicom, gtkterm,...) for UART and display printf messages)
The example provided in the documentation [3] uses Raspberry Pi 5's primary UART, which is the debug headers, instead of the GPIO pins. I followed the example and the serial communication worked perfectly; however, I need to use the debug headers for SWD debugging with the Raspberry Debug Probe as instructed in [4].
Can anyone give me some suggestions about where to look for a potential solution ? I tried to look at the device tree at [5]; however, it seems to me that there is only one configuration for the primary UART without further information.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everyone,
I would like to ask a question about how to modify Zephyr configuration so that the GPIO 14, 15 (TX and RX pins as indicated in [1]) on the Raspberry Pi 5 can be used as the primary UART. In other words, when running a program, I would like to have the same setup in this image [2] and use a serial terminal (minicom, gtkterm,...) for UART and display printf messages)
The example provided in the documentation [3] uses Raspberry Pi 5's primary UART, which is the debug headers, instead of the GPIO pins. I followed the example and the serial communication worked perfectly; however, I need to use the debug headers for SWD debugging with the Raspberry Debug Probe as instructed in [4].
Can anyone give me some suggestions about where to look for a potential solution ? I tried to look at the device tree at [5]; however, it seems to me that there is only one configuration for the primary UART without further information.
[1] : https://vilros.com/pages/raspberry-pi-5-pinout
[2] : https://www.raspberrypi.com/documentation/microcontrollers/images/labelled-wiring.jpg
[3] : https://docs.zephyrproject.org/latest/boards/raspberrypi/rpi_5/doc/index.html#serial-communication
[4] : https://macoy.me/blog/programming/RaspberryPi5Debugging
[5] : https://github.com/zephyrproject-rtos/zephyr/blob/main/dts/arm64/broadcom/bcm2712.dtsi?plain=1
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions