2018-05-07 5:15 PM
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!
#stm32f02018-05-07 5:33 PM
>>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.
2018-05-07 9:05 PM
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.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.