-1

I am Using Atollic and cubemx on ubuntu.


Nilesh Pal
  • 23
  • 7
  • 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 Answers1

0

Your question deserves a tutorial by its own, but in short you need to

  1. Define the pins for both RX and TX
  2. Define your protocol options [ baud rate, parity, crc..]
  3. Calculate the prescaleers (USARTDIV) according to you src clock and baudrate
  4. 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