2023-10-22 07:58 PM
I am using stm32u575zit6q.
I set Baud Rate 2500000bit/s.(my equipment is only support 2500000bits)
usart write is work successful, but read is not.
usart read work only 9600bit/s.
How do I use the read to work over 9600baud rate?
2023-10-22 08:13 PM
Should definitely do well over 9600 baud.
Clocking at 160 MHz, I'd expect to at least 10 Mbaud
Would want to be using DMA at higher rates. Check for framing / noise errors in status, and clear those.
Does HAL_UART_Init() return an error at higher speeds?
How exactly does the read fail? Show actual code, and system configuration.
2023-10-22 08:26 PM
Hi Dinggo,
This seneario happen only two condition,
2023-10-23 12:10 AM
I am using usart as polling in my project.
If you only apply from DMA, I am willing to use that.
HAL_UART_Init() does not any error. The basis for judgment works normally to go to the while statement in which the user code is put in the main statement. (When using write only)
my system is using MAX485CSA
MAX485CSA moudle is using this site.(https://www.navimro.com/g/440674)
And CSA Data(MAX485CSA pdf, MAX485CSA Download, MAX485CSA Description, MAX485CSA Datasheet, MAX485CSA view ::: ALLDATASHEET :::)
here is actual code.
2023-10-23 12:13 AM - edited 2023-10-23 12:14 AM
here is clock source setting.
Set to 150MHz to set the 2.5M Baud.
2023-10-23 01:48 AM
Hello @Dinggo
Would you try to enable the HW Automatic baud rate detection. For further details check STM32 USART automatic baud rate detection - Application note
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.