2024-05-01 12:23 PM
I have a STM32MP157f-dk2 board, the USB OTG port is configured by default to appear as network ethernet adapter when plugged into the PC. I would like to configure the USB OTG port to appear as a mass storage device when plugged into the PC. I am new to kernel and device tree and I wasn't able to find any specific instructions on how to do this. Would anyone be able to provide the steps to do this? Thank you.
2024-05-03 05:30 AM
HI @yhu
please have a look to
https://wiki.st.com/stm32mpu/wiki/USB_overview#How_to_configure_USB_Gadget_through_configfs
and maybe also to
https://community.st.com/t5/stm32-mpus-products/usb-composite-in-stm32mp157c/m-p/142734
Regards