2023-02-20 05:33 AM
2023-02-21 02:19 PM
Which hardware is transmitting and what is receiving? Which hardware is expecting an echo?
2023-02-22 12:06 AM
The hardware is the STM32F407 that is receiving a request from a RS485 USB converter connected to my pc and the STM32F407 too that is transmitting to the pc. We are using the peripheral USART3 to receive and to transmit. With an oscilloscope I see clearly the frame received, the frame transmitted and the echo of the frame transmitted on the RX channel. However, in the RX buffer I find only the received frame and not the echo of the transmitted frame.
2023-02-22 12:17 AM
Make sure that you are permanently receiving on the STM32 side. This is best done by DMA, see https://github.com/MaJerle/stm32-usart-uart-dma-rx-tx.
The echo seems to be a hardware echo, because, there is no visible delay. You cannot transmit and receive simultaneously by using blocking HAL functions for example. If the issue persists, show your code.
hth
KnarfB