This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28069: : Steps to stop the USB-Stack then re-initialize it

Part Number: TMS320F28069
Other Parts Discussed in Thread: C2000WARE

Hello,

TMS320F28069 Processor,  USB Library from the C2000 Ware software suite.

In the USB stack (usbhcdpiperead and usbhcdpipewrite) for external reasons it gets stuck in the infinite while loop in these functions and I need to manually break out of these loops or it is stuck forever.  (Using time based method I recognize when inside the functions for too long then ungracefully break out of them).

After this happens, I should stop the USB-STACK and re-initialize it.

 

What is the proper sequence(i.e. function calls) to stop/terminate/close the USB-Stack then re-initialize it?