I am working with UART and I want to do something but could not achieve myself.
I want to enter an interrupt when the data receive stops, i.e when I unplug the cable, do something only once and then just continue. When I plug the cable again, it should will continue receiving values.
I am using UART in DMA mode.
I looked some about IDLE interrupt but I cannot use it as i want, where should its interrupt be placed exactly? When i use USART2_IRQHandler() func. it both enters when I un-plug Rx cable and also re-plug the rx.
So i am confused about how an IDLE interrupt can/should be used?
Thanks in advance.
The board is : STM32F4-DISC