Tool/software: TI-RTOS
Hello,
I am working on MSP430F5659 based USB CDC protocol over TI RTOS.
Here i am getting some problem while handling both USB and UART.
I have 5 task, Comm Task, Data Manager Task, Watch Dog Task, Utility Task, Handle Task.
While Command is sent from PC Application - Comm Task will parse the command and send to Data Manager Task, DM Task will call the UART to handle the external board,
Now if i use the same task to(DM task to TX/Rx with UART device and then try to send back the response to USB through Comm Task , i am getting USB restart. (UART works fine)
If i use another task (Handler Task ) to Rx/Tx with UART after sending reply to PC (Data manager Task -> Comm Task -> PC )it works. (UART works fine)
Note - > I am using HART communication over UART with 19200 Baud and using TimreA2 in that data packet state machine handling.
I am able to achieve the result but i want to know whether Timer A2 has any effect/ USB and UART both combination has a problem? Or any other mistake i am doing while handling UART/USB?
Please any one can help in finding the correct answer why USB restarts, when UART is stopped.
Thanking in Advance
Nitesh