2021-12-05 09:31 PM
I am using an STM32G070RB nucleo 64 board with an ESP 8266, earlier I was using DMA to establish UART communication between the ESP and STM32, but now I have switched to UART interrupt mode to receive and transmit data. When I software reset the ESP the UART starts behaving unexpectedly, The commands in the RX_BUFFER are changing, however they are only part of the commands which I have sent from the ESP via UART as a result of which the device does not behave properly. Prior to software reset the device works fine. Can someone please explain the reason for this and how to solve this issue.
2021-12-06 06:28 AM
Related: https://community.st.com/s/question/0D53W00001DNL08SAH/identifying-and-solving-uart-error
2021-12-06 06:47 AM
>>Can someone please explain the reason for this and how to solve this issue.
This is not an ESP 8266 / Espressif forum, if it has quirky behaviour you'll need to discuss those with people familiar with it
Use a scope or logic analyzer, or Tee inputs to a USB-to-CMOS Serial dongle so you can observe signal traffic AS SENT.
Establish if the issue is with the STM32 or ESP8266
Check baud timings.
Check synchronization/recovery.
See if extra stop bits helps recovery/framing.