STM32H7 UART BAUD RATE ISSUE
Hello! I'm developing application using STM32H745 with uart interface. The problem is the behaviour of uart baudrate. I configure with hal driver uart on baudrate 115200 and try echo with terminal. The problem is that sometimes i recieve wrong data in some bits. The is always the same error for the same bit. For example, I send 85 (1010101) but around 2 times of 10 i recieve 170(10101010) and it seems, like uart take stop bit also as LSB bit. Than i watched with scope and measure frequence, that sends terminal and MCU uart and it's clear, baud rate is 115200 as it expected(BRR prescaller seems to be OK). Than I substract 5-10 from BRR prescaller (baudrate becomes to 115700-116000 on MCU, terminal still sends 115200, on scope frequence changes, and MCU start recieving correctly). There no such issue on baudrate like 512000, 900000 or smaller like 2400, 4800.
It seems, like there is different baudrate on recieving and transmiting (but i understant, that there is no way for this). When i configure MCU on 115200 and send 114000, all is clear. Or MCU 116400, terminal 115200.
I dont understand what is going wrong. I would be grateful for any ideas!