I have my one custom board that the cube sits on the DF17 connector.
I can communicate with serial 1 to 4, but I see not transmutation on serial 5 TX.
of course it is setup for mavlink 2 and boudrate of 115,200. like all other ports.
I’m seeing that on standard FMUv5 boards, the UART5 pins on the STM32 are shared with other peripherals so they are not enabled by default.
In order to turn it on for custom boards, you can edit the defconfig file - CONFIG_STM32F7_UART5=y
For peripheral with multiple pin options, pinmaps are in the board.h files, NuttX needs to know pins defined in the pinmap header, add correct pin mux definitions for UART5 TX/RX (RTS/CTS).
Once added, derive the ttySn mapping, sort your UART device number increments and rebuild.