Associate III
December 19, 2017
Question
Error while sending data on UART continuously
- December 19, 2017
- 3 replies
- 1161 views
Posted on December 19, 2017 at 06:43
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.
#stm32l072 #stm32 #stm32l0-uart