cancel
Showing results for 
Search instead for 
Did you mean: 

UART on CubeMX is too slow

Shivani Shah
Associate
Posted on May 08, 2018 at 02:15

Hi,

I am fairly new to stm32 boards and used the cubeMX program to speed up development for a project I am working on. However, I have found that when sending messages with UART it takes 50ms for each transmit. That seems very slow. Is there a good way to start writing an alternative UART driver for the STMF0RB72T6 or a good open source library I could be directed to? I appreciate any help!

#stm32f0
2 REPLIES 2
Posted on May 08, 2018 at 02:33

>>STMF0RB72T6

Going to assume you're super dyslexic.. STM32F072RBT6 ?

http://www.st.com/en/microcontrollers/stm32f072rb.html

 

What baud rate are you using? How much data are you sending?

The STM32F0 series has SPL, the simpler precursor to HAL/CUBE

http://www.st.com/en/embedded-software/stsw-stm32048.html

 

The USART registers are also described in the Reference Manual, and programing transfers directly isn't terribly hard.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
Posted on May 08, 2018 at 06:05

Are your characters being received correctly but slowly? Or are they being garbled as well?

If they are correct, I'd look at the non-cube code that is doing the sending. If they are being garbled, I'd look to see if the various clocks are set up properly.

Different symptoms, different solutions.