Hi,
If you have many peripheral working with usb, you would better use rtos to manage them. If you do not use rtos,here is my suggestions. Do not remove the code. Set the interrupt priority for every peripheral according to your peripheral importance. Make sure when the usb is enumerating , no interrupt will disturb it. line 639 is belong to token interrupt. Set a flag for usb token interrupt. When the flag isn't cleared, other operation won't be permitted.
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 days after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------