Closed yukelab closed 1 month ago
do not remove usbd_cdc_ecm_start_write and recv_done
usbd_cdc_ecm_start_write is for eth without lwip and usbd_cdc_ecm_data_recv_done is for users to call with os.
for common, you should disable CONFIG_USBDEV_CDC_ECM_USING_LWIP, we do not use lwip for ecm. Eth rx data to usb tx and usb rx data to eth tx.
you can modify your changes in usbd_cdc_ecm_eth_rx.
1, remove g_cdc_ecm_tx_data_length = p->tot_len and change g_cdc_ecm_tx_data_length with p->tot_len in usbd_cdc_ecm_eth_tx 2, not mandatory 3, yes