2019-04-05 08:44 AM
We have been working on developing a USB dongle based on STM32F413/L476 which acts as a CDC-ACM serial device. We mostly have everything up and running expect for an issue with USB which shows up sporadically and details are as below:
Can anyone from the community please share inputs on the above issue. We have been debugging this for a while already and any help would be much appreciated.
2019-04-06 06:15 AM
it seems like synchronization issue between Tx and RX.
usually this hapens when transmit inside Rx callback.
2019-04-06 06:49 AM
Hi Vangelis,
Thanks for your inputs, much appreciated. I have below inputs from my side.
So, what can I do to overcome the issue, please share your inputs. As mentioned in my post, the issue is IN endpoint locks up waiting for XFRC interrupt to fire.
Again thanks for your inputs.
Regards,
Suhel
2019-04-08 03:24 AM
Guys, can anyone share there inputs?
2019-04-08 03:40 AM
Make some code and do not transmit inside RX callback (Handler Mode).
Tranmission must take place in Thread mode. (in some circumstances is possible).
Inside the callback take the data when receive something and set an RX_Flag that is continuously checked by a loop in thread mode. Inside this loop process the data and make the transmission.