2022-09-13 06:27 AM
Anyone know STM32H7 (STM32H743) support usb gadget ethernet?
I read somewhere STM32F7 does, but not sure about STM32H7
Many thanks.
Solved! Go to Solution.
2022-09-14 09:59 AM
Hello @Community member
In ux_host_class_cdc_ecm.h file under
STM32Cube\Repository\Packs\STMicroelectronics\X-CUBE-AZRTOS H7\2.1.0\Middlewares\ST\usbx\common\usbx_host_classes\inc
we can find ethernet is supported as an USB host
#define UX_HOST_CLASS_CDC_ECM_ETHERNET_IP 0x0800
#define UX_HOST_CLASS_CDC_ECM_ETHERNET_ARP 0x0806
#define UX_HOST_CLASS_CDC_ECM_ETHERNET_RARP 0x8035
#define UX_HOST_CLASS_CDC_ECM_ETHERNET_PACKET_SIZE 1536
Also, in STM32Cube\Repository\STM32Cube_FW_H7_V1.10.0\Middlewares\ST\STM32_USB_Host_Library\Class\CDC\Inc Ethernet is among supported classes
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2022-09-14 09:59 AM
Hello @Community member
In ux_host_class_cdc_ecm.h file under
STM32Cube\Repository\Packs\STMicroelectronics\X-CUBE-AZRTOS H7\2.1.0\Middlewares\ST\usbx\common\usbx_host_classes\inc
we can find ethernet is supported as an USB host
#define UX_HOST_CLASS_CDC_ECM_ETHERNET_IP 0x0800
#define UX_HOST_CLASS_CDC_ECM_ETHERNET_ARP 0x0806
#define UX_HOST_CLASS_CDC_ECM_ETHERNET_RARP 0x8035
#define UX_HOST_CLASS_CDC_ECM_ETHERNET_PACKET_SIZE 1536
Also, in STM32Cube\Repository\STM32Cube_FW_H7_V1.10.0\Middlewares\ST\STM32_USB_Host_Library\Class\CDC\Inc Ethernet is among supported classes
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2022-09-18 05:08 PM
very nice, thank you so much.
2022-10-15 04:10 AM
Hi Dat Tran,
ST USB Host lib does not support CDC-ECM / RNDIS Class so as mentioned by @F.Belaid you can use USBX (Azure RTOS Middleware) it support CDC-ECM Host Class.
https://learn.microsoft.com/en-us/azure/rtos/usbx/usbx-host-stack-6
Note actually we don't have a Host CDC ECM sample application.