先使用uart.write("abcdefg")来测试。估计你stm32上不是按照字符串显示的。