I am interfacing ESP8266 with my Murata LoRa board(though not using LoRa), so let us just say I am using STM32L072CZ with ESP8266 connected on UART1(Pin9,10). I am seeing a strange behavior from STM UART.
The code being used is as below,
This works well for the first few iterations and then fails as seen in attachment. Please help and pin point the problem and solution.