Documentation: system: cu: document the cu serial terminal#19421
Merged
Conversation
The cu application page was an empty stub. Document the command: description, options, escape sequences, configuration dependencies and limitations. Also add an rs485 configuration to the linum-stm32h753bi board with the two on-board RS-485 transceivers (UART4 and USART6) and the cu terminal enabled, plus a board documentation section showing how to bridge the console to one of the RS-485 buses with cu. The RS-485 DE pins are handled automatically by the serial driver. Tested on hardware. Signed-off-by: Jorge Guzman <jorge.gzm@gmail.com>
xiaoxiang781216
approved these changes
Jul 13, 2026
linguini1
approved these changes
Jul 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The cu application had no documentation (the page was an empty stub).
This PR implements it:
dependencies and limitations, plus a "Bridging two serial ports"
section showing how to bind two ports to each other from the shell
(bidirectional or unidirectional, including ports at different
baud rates).
rs485configuration to the linum-stm32h753bi board (nsh +the two on-board RS-485 transceivers + cu), used to test the
documented commands on real hardware.
linum-stm32h753bi board documentation: bridging the console to an
RS-485 bus with cu, binding the two buses to each other, and a
loopback self-test between the two transceivers.
Impact
ready-to-use RS-485 configuration.
Testing
All commands tested on the linum-stm32h753bi board (RS-485 loopback
A-A/B-B between the two on-board transceivers):
tools/configure.sh linum-stm32h753bi:rs485from distclean + fullbuild (GCC with -Werror: no warnings).
tools/checkpatch.sh: all checks pass.