2022-07-14 06:11 AM
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 ?
Solved! Go to Solution.
2022-07-19 01:27 AM
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.
2022-07-15 06:59 AM
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
2022-07-19 01:27 AM
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.
2022-07-22 06:07 AM
Thank you so much @Imen DAHMEN and @KHors.1 for your inputs.
This will work for me.
:grinning_face: