Reputation: 1
Hy, i am working on STM32f401 Controller. I am facing an issue with the UART controller. I am sending Command from PC to STM32 board. Command Consists of 4 BYTES. like PCLI(which is PC Login). while testing the Code, after and around 15 mins or sometimes less.. the uart is stuck. I am debugging with KEIL, in this i saw the registers(RXNE,IDLE,ORE) these three registers are simultaneously high(when the data arrives). i am using rxcpltcallback function. when i get PCLI from UART i will do my event.uart_registers_img My Code Looks Like
i will get the command from rx Callback function.
Upvotes: 0
Views: 309
Reputation: 5510
Did you read the manual to see what ORE means? It is overrun error. You received another byte before your software had processed the previous one.
The simple solution is to either send the bytes more slowly, or else process them more quickly.
If you can't do either of these things then you need to read the bytes from the UART quickly and store them somewhere without processing them, and them process them later when you have time.
Upvotes: 1