I am Using Atollic and cubemx on ubuntu.
Asked
Active
Viewed 60 times
-1
-
Ask the question on your native language SO site or ask someone to translate. I do not understand what you mean. Before you ask read : [ask] and [mcve] – 0___________ Nov 15 '19 at 13:21
-
Please listen to P__J__ this is not a minimal reproducible example, ALSO transmit to receive. – Tarick Welling Nov 15 '19 at 14:14
1 Answers
0
Your question deserves a tutorial by its own, but in short you need to
- Define the pins for both RX and TX
- Define your protocol options [ baud rate, parity, crc..]
- Calculate the prescaleers (USARTDIV) according to you src clock and baudrate
- define whether or not you need interrupts for reception or transmission
Please take a look to the book Mastering STM32 by Carmine Noviello. Also read the section of STM32 user manual Page 785 chapter 27

owl
- 56
- 4