How can I invoke UART_Receive_IT() automatically when I receive a data?
I am new to STM32 and CubeMX. I need to write a program to send and receive data from a module via UART port. I have to send(Transmit) a data to that module(for eg. M66). Then I would return to do some other tasks. once the M66 send a response to that, my seial-port-receive-function(HAL_UART_Receive_IT) has to be invoked and receive that response. How can I achieve this? or Shall I call HAL_UART_Receive in interrupt mode and let it check for the data from module?
I need to complete this ASAP...Thanks in Advance
