AnsweredAssumed Answered

Error while sending data on UART continuously

Question asked by SARTHAK KELAPURE on Dec 19, 2017
Latest reply on Dec 20, 2017 by waclawek.jan

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,

 

//HEADERS

char cmd[]="AT+CWLAP\r\n";

 

...

int main()

{

//INIT

...

while(1)

{

HAL_UART_Transmit(&huart1,(uint8_t*)cmd,strlen(cmd),0xFFFF);

}

This works well for the first few iterations and then fails as seen in attachment. Please help and pin point the problem and solution.

Attachments

Outcomes