Hi All,
Been working on a project for some time using bits and pieces of the USB examples from TI. I have set up my MSP430F5529 as a CDC + HID device. I have set up the microcontroller so that it takes in commands coming from a Windows 7 PC through a virtual COM port, and sends responses back to the PC, depending on which command the microcontroller has received. However, every now and then the microcontroller will stop sending back messages through the COM port. The odd thing is that it still receives commands from the PC because the microcontroller lights up certain LEDs when given certain commands.
One thing I have discovered is that the "cdcSendDataInBackground" returns the value 29804 as an integer, but when I look at the declaration of this function, that integer means nothing. As far as I can see, this function should only return the values 0, 1, 2, or 4.
The way this system is set up, there is the possibility of attempting to send something over the COM port from the PC while the microcontroller is attempting to send information to the PC. Not sure if the USB functions can handle this scenario...
Hoping someone on here has run into such an issue and has come up with a fix. Right now, I'm trying to replicate the problem and will try using USBCDC_abortSend operation to attempt to clear up the USB module, if that's the case...