cancel
Showing results for 
Search instead for 
Did you mean: 

Does STM32H7 (STM32H743) support usb gadget ethernet?

Dat Tran
Senior II

Anyone know  STM32H7 (STM32H743) support usb gadget ethernet?

I read somewhere STM32F7 does, but not sure about STM32H7

Many thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
FBL
ST Employee

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.


I'm out of offce with limited access to my emails.
Happy New Year!

View solution in original post

3 REPLIES 3
FBL
ST Employee

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.


I'm out of offce with limited access to my emails.
Happy New Year!
Dat Tran
Senior II

very nice, thank you so much.

mohamed.ayed
ST Employee

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.