2024-11-30 02:42 AM - last edited on 2024-12-05 04:53 AM by SofLit
The serial port 1 code generated by the latest STM32CubeMX 6.13.0 will print garbled characters, and using the serial port routine UART_Printf in STM32Cube_FW_H7_V1.12.0 will also print garbled characters.
It doesn't work when using the serial port routine UART_Printf in STM32Cube_FW_H7_V1.11.2. After comparison, there is a difference here. I can’t understand the function here. I will be careful whether changing it will affect other functions.
*This post has been translated from Chinese to comply with the ST Community guidelines.
2024-12-05 02:56 AM - edited 2024-12-05 05:02 AM
Hello @zhengjianxing,
Thank you for bringing this issue to our attention.
const uint8_t D1CorePrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9};
should be
const uint8_t D1CorePrescTable[16] = {0, 0, 0, 0, 1, 2, 3, 4, 1, 2, 3, 4, 6, 7, 8, 9}
I reported this issue internally.
Thank you for your contribution to the community.
Internal ticket number: 197431 (This is an internal tracking number and is not accessible or usable by customers).
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-12-05 05:50 AM
@zhengjianxing wrote:The serial port 1 code generated by the latest STM32CubeMX 6.13.0 will print garbled characters, and using the serial port routine UART_Printf in STM32Cube_FW_H7_V1.12.0 will also print garbled characters.
Which suggests that the baud rate is wrong: