You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am learning the UAC2 class, and decided to write my own similar to the audio class one (uac2_speaker_fb) and skip all the descriptor parsing. On Linux everything is fine, but on Windows the device does not enumerate the first time it is plugged in - but it does if I keep the power and replug it. init, reset callbacks are called, descriptor is asked, and is read fine, but the interface is never set, the open callback is also never called. Again, after replugging everything works. What am I doing wrong? Here is init and reset code:
UPD: Just confirmed. The same behavior is with the included UAC2 in uac2_speaker_fb - first time it does not enumerate, second time it does.
Init code:
int main(void)
{
HAL_Init();
SystemClock_Config();
MX_GPIO_Init();
MX_USB_OTG_HS_PCD_Init();
tud_init(BOARD_TUD_RHPORT);
while (1)
{
/* USER CODE END WHILE */
tud_task();
/* USER CODE BEGIN 3 */
}
/* USER CODE END 3 */
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am learning the UAC2 class, and decided to write my own similar to the audio class one (uac2_speaker_fb) and skip all the descriptor parsing. On Linux everything is fine, but on Windows the device does not enumerate the first time it is plugged in - but it does if I keep the power and replug it. init, reset callbacks are called, descriptor is asked, and is read fine, but the interface is never set, the open callback is also never called. Again, after replugging everything works. What am I doing wrong? Here is init and reset code:
Whole source code here: https://github.com/sx107/stm32-tinyusb-uac2-examle
UPD: Just confirmed. The same behavior is with the included UAC2 in uac2_speaker_fb - first time it does not enumerate, second time it does.
Init code:
Beta Was this translation helpful? Give feedback.
All reactions