Jun 18, 2020
03:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 18, 2020
03:07 PM
Labels
1 Solution
Jun 18, 2020
05:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 18, 2020
05:42 PM
Please try to add an additional USBUART_IsConfigurationChanged() prior USBUART_CDC_Init() as follows.
for(;;) {
// Wait for initialization completed
while (USBUART_GetConfiguration() == 0);
USBUART_IsConfigurationChanged(); // Ensure to clear the CHANGE flag
USBUART_CDC_Init(); // Initialize the CDC feature
for (;;) {
// Re-initialize if the configuration is changed
if (USBUART_IsConfigurationChanged()) {
break;
}
This is required for me because Windows issues two SET_CONFIGURATION requests.
Regards,
Noriaki
4 Replies