Solved
Hello all. I am implementing a simple application that reads data using USART. I want to read 10 bytes of data and if carriage return or new line is detected it must print "String Received" otherwise it must print "Error". I am using STM32F205.
The problem that I am facing is that I implemented HAL_UART_Receive_IT function in a while(1) loop and then I check for the elements of buffer for \n or \r. After I type the first message it prints "String Received". But after that it continuously prints "Error". I read a few articles and i enabled the IRQ for the interrupt but i am confused about its implementation. I wish to know how exactly is it done.
