Hi all,
I am currently debugging a prototype which uses the USB in CDC mode. The board is supposed to send data packets over the USB of maximun 400 bytes every 20ms.
Trouble is that the 5529 USB controllers hangs after one to a few packets have been correctly sent, depending of the data packet size.
A trace of the USB activity shows that the controller abruptly stops sending data. On the firmware side, the routine
cdcSendDataInBackground returns constantly the busy state. I also tried
USBCDC_sendData() wite the same results : the bCDCDataSent_event event is no longer generated.
Tryting to get more insight into the cause of this weird behavior, I tried example C6 of the USB developers package on a MSP-EXP430F5529LP, I was surprised to obtain the same result.
The demo is suppoded to send 500 packets of 2047bytes over the USB in CDC mode. The controller hangs after the 1st data packet is properly sent. The reception no longer works too, wich suggest that the USB controller might be disabled.
In both cases, the transmission seems reliable if data packets are sent much slower, e.g. a few packets per secondes.
I still have no clue about what cous cause such trouble. Any help would be much appreciated.