Issues with Data Transfer Rates Exceeding 2 Mbit/s on STM32L476RG Using USART
Hello STM32 Community,
I am working with the STM32L476RG microcontroller and encountering difficulties in achieving the expected data transfer rates through USART. According to the datasheet, the device should support a "common programmable transmit and receive baud rate of up to 10 Mbit/s when the clock frequency is 80 MHz and oversampling is by 8". I have configured the clock frequency at 80 MHz and set oversampling to 8, anticipating data transfer rates up to 10 Mbit/s. However, I'm experiencing issues with rates over 2 Mbit/s.
Experiment Setup:
- Software: I am using the Pyserial Python library for data reception.
- Hardware Connection: The STM32 board is connected to both a laptop and a desktop computer via an ST-Link.
- Observation: Data is received without issues at baud rates up to 2 Mbit/s. Beyond this, data transfer fails.
This problem persists across both the laptop and desktop. I am curious if anyone else has faced similar challenges. Could the bottleneck be in my laptop and desktop's capacity to handle higher data rates? Any insights or suggestions would be greatly appreciated.
Thank you in advance for your assistance.
