usb-ncm
Posted: Tue Oct 03, 2023 11:35 am
Hi,
I know this USB networking feature is work in progress.
I found this example in the master branch https://github.com/espressif/esp-idf/tr ... e/tusb_ncm
I'm trying to run USB audio and this implementation of the USB NCM at the same time and I have it running and working, but at a random time it stops passing data between the network stack and tinyusb.
I get:
From this function:
My best guess is that there is a bug in the driver (I'm using the synopsis/dwc2 driver)
Do anyone have a suggestion as to how I can debug this issue that sometimes takes over an hour before it shows up, and also sometimes 2 minutes.
Thanks!
Kasper
I know this USB networking feature is work in progress.
I found this example in the master branch https://github.com/espressif/esp-idf/tr ... e/tusb_ncm
I'm trying to run USB audio and this implementation of the USB NCM at the same time and I have it running and working, but at a random time it stops passing data between the network stack and tinyusb.
I get:
Code: Select all
E (663508) tusb_ncm: Failed to send buffer to USB!
Code: Select all
static esp_err_t netif_transmit (void *h, void *buffer, size_t len)
{
if (usb_ncm_send(buffer, len, NULL) != ESP_OK) {
ESP_LOGE(TAG, "Failed to send buffer to USB!");
}
return ESP_OK;
}
Do anyone have a suggestion as to how I can debug this issue that sometimes takes over an hour before it shows up, and also sometimes 2 minutes.
Thanks!
Kasper