question

Patrick-6603 avatar image
0 Votes"
Patrick-6603 asked XiuwenCai-0780 commented

USBX with Asix AX88772B not working on an STM32H723

Hello,
I've seen, that the USBX host stack supports the ASIX AX88772B chip. Our goal is to connect an USB-to-LAN-converter to an STM32H7-Controller.

So I setup everything (ThreadX, NetXDuo and USBX) and the AX88772B gets initialized without any issues in the setup routine (_ux_host_class_asix_setup).
But as soon as I plug in the ethernet cable, the following is happening:
- I get an notification interrupt, that a cable was plugged in and the link state is set to UX_HOST_CLASS_ASIX_LINK_STATE_PENDING_UP (_ux_host_class_asix_interrupt_notification)
- A TX-Thread sets the state to UX_HOST_CLASS_ASIX_LINK_STATE_UP (_ux_host_class_asix_thread)
- But approximately 250ms after the UX_HOST_CLASS_ASIX_LINK_STATE_PENDING_UP was set, I receive another interrupt that says, that the link is down. And the link state goes to UX_HOST_CLASS_ASIX_LINK_STATE_PENDING_DOWN

I tried out some stuff but nothing seems to help. It seems, that this "link-down"-interrupt is independend from what is happening in _ux_host_class_asix_thread.

Must I poll the device in a certain way?

Is there also a detailled documentation how to use the ASIX on USBX in a good way?

Thanks for your help.
Patrick



azure-rtos
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Patrick, does your USB to LAN adapter have a LED that indicates the link state? If so, is that still on when you get link down interrupt?

1 Vote 1 ·

Yes, there is an LED and it is still on after the link down interrupt was received.

0 Votes 0 ·

Hi Patrick, we identified some issues in the USBX ASIX class. We are working on it.

2 Votes 2 ·

0 Answers