Skip to main content
8 votes

UART as RS485 with Linux

It's not "your job" to handle the line driver's "transmit enable" signal, that's for the driver and peripheral to deal with - hopefully even in hardware (i.e: driver configures ...
Attie's user avatar
  • 3,809
6 votes

UART as RS485 with Linux

The USART hardware of that STM32 supports Driver Enable (DE)- automating the switching at the correct instant for half-duplex RS485, complete with being able to fine tune the timing to accomodate time ...
ocelot's user avatar
  • 274
5 votes

UART as RS485 with Linux

From what I could find in the Linux kernel drivers source, there is RS485 support for the ST uarts. See drivers/tty/serial/stm-usart.c To configure the device, search for termios RS485. That should ...
Kartman's user avatar
  • 7,105
2 votes
Accepted

Why does the USART count in STM32 MCU differ between datasheet and IDE?

Refer to the table on page 12 of the datasheet. The STM32F303Kx only has 2 USARTs, while the 303Cx and 303Rx have 3. Also, the text at the top of page 2 reads: Up to 3 USARTs. in typical marketing-...
brhans's user avatar
  • 15.1k
1 vote

Why are pull-up resistors provided on the UART lines of the AM62L EVM?

There are many reasons. One most important reason is that digital inputs must never be left floating, and if there are no built-in pull resistors then external resistors are needed. The UART lines go ...
Justme's user avatar
  • 196k
1 vote

STM32 F302R8 UART RX reception error

Your IRQ handler for UART3 tries to handle UART1. Please check your code for errors.
Justme's user avatar
  • 196k

Only top scored, non community-wiki answers of a minimum length are eligible