Skip to main content
Visitor II
July 14, 2022
Solved

Does STM32U585 supports USB RNDIS ?

  • July 14, 2022
  • 3 replies
  • 1517 views

Hi All,

I am starting work on USB RNDIS support for STM32U5, and completely new to this.

I am looking for example/documentation on USB RNIDS support on STM32U5.

Can anyone please help here ?

    This topic has been closed for replies.
    Best answer by KHors.1

    The RNDIS class is provided with STM32Cube.

    You can find it under ...\STM32Cube\Repository\<Your library and version>\Middlewares\ST\STM32_USB_Device_Library\Class\CDC_RNDIS.

    A good starting point would be a CDC virtual serial port project, then modify it to the RNDIS structures und modules. The basic structure and calls are pretty similar.

    Documentation for the RNDIS class (and all others) is here wiki.st.com/stm32mcu/wiki/Introduction_to_USB_with_STM32#CDC_Remote_Network_Driver_Interface_Specification_-28RNDIS-29_Sublass.

    If the class is not provided for STM32U5 MCUs you can "steal" it from another models, like L4 or F4. Just install the Cube support for one of these, parallel to the U5 library.

    The effort on integrating the stuff, and making it work is however completely on your side.

    3 replies

    Technical Moderator
    July 15, 2022

    Hello @NM.1​ ,

    There is no RNDIS example within STM32CubeU5 MCU package.

    You may use examples provided on Microsoft Azure RTOS repo in order to develop your own RNDIS application.

    We are currently working on adding multiple USBX classes to our packages including RNDIS.

    Thank you for your understanding and your contribution.

    When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

    Thanks

    Imen

    KHors.1Answer
    Explorer
    July 19, 2022

    The RNDIS class is provided with STM32Cube.

    You can find it under ...\STM32Cube\Repository\<Your library and version>\Middlewares\ST\STM32_USB_Device_Library\Class\CDC_RNDIS.

    A good starting point would be a CDC virtual serial port project, then modify it to the RNDIS structures und modules. The basic structure and calls are pretty similar.

    Documentation for the RNDIS class (and all others) is here wiki.st.com/stm32mcu/wiki/Introduction_to_USB_with_STM32#CDC_Remote_Network_Driver_Interface_Specification_-28RNDIS-29_Sublass.

    If the class is not provided for STM32U5 MCUs you can "steal" it from another models, like L4 or F4. Just install the Cube support for one of these, parallel to the U5 library.

    The effort on integrating the stuff, and making it work is however completely on your side.

    NM.1Author
    Visitor II
    July 22, 2022

    Thank you so much @Imen DAHMEN​  and @KHors.1​  for your inputs.

    This will work for me.

    :grinning_face: