Hi,
I have a question about the following 5 lines of Workarround in Errata USB10.
---Excerpt from Errata Guide---
USBIEPCNF_0 &= ~EPCNF_UBME; // Clear ME to gate off SETUPIFG clear event
USBOEPCNF_0 &= ~EPCNF_UBME; // Clear ME to gate off SETUPIFG clear event
USBIFG &= ~SETUPIFG; // clear the interrupt bit
USBIEPCNF_0 |= EPCNF_UBME; // Set ME to continue with normal operation
USBOEPCNF_0 |= EPCNF_UBME; // Set ME to continue with normal operation
-----------------------------------------------
In the above contents, I would like to confirm why SETUPIFG and UBME are cleared and set.
In other words, does clearing and setting SETUPIFG and UBME prevent the errata from occurring?
Thanks,
Astro