Forums › Reference, Evaluation, and Development Boards › OSD32MP1-BRK › USB Connection
Hi Team,
We have developed a board based on OSD-BRK. But instead of DP2(J18) & DM2(J17) we used DP1(K17) and DM1(K18) for the USB connection. Is there anyway to change the usb otg function to these pins using CubeMX?
Regards,
Akshay
You will need to modify the device tree in order to update the hardware configuration. You can find the BRK device tree in our github repository:
The code around line 943 (i.e. the line referenced in the link) is the USB configuration that is set on the BRK. As you can see, the usbotg_hs device tree node is set to the USB1. You will need to modify the device tree and then recompile to update the software image. You can find information about that process:
https://github.com/octavosystems/BRK_Developer_Package_patches
Additionally, depending on when you need the USB functionality, you might need to also modify the u-boot device tree. See https://github.com/octavosystems/OSD32MP1-BRK-device-tree for all of the device trees used for the BRK. If you have questions on device tree, we would recommend reading: https://octavosystems.com/app_notes/osd335x-design-tutorial/osd335x-lesson-2-minimal-linux-boot/linux-device-tree/ as an introduction to device trees. Additionally, there are many documentation resources on the STM wiki for the MP1 on https://wiki.st.com/stm32mpu
Thanks Erik,
I’ll try it and give you the feedback. Also we have added a wifi driver (NINA-132) which communicates with the sip via UART. Do we need to write wifi driver code for initializing it?
Regards,
Akshay
Hi Erik,
We tried modifying the device tree using CubeMx but we are unable to set the otg function to the pin DP1 and DM1. If we manually change the device tree and build it will it work? Also in the block diagram for the usb connection those pins are specified as usb host. So I was wondering if it would work? I have attached the block diagram below.
Thanks,
Akshay
Akshay,
You are correct, unfortunately, USB1 port can only be set as USBH(Host). Please take a look at https://wiki.st.com/stm32mpu/wiki/USBPHYC_internal_peripheral for more information. You could use PA11 and PA12 for an additional USB OTG port that can be used to connect to a PC as a peripheral. Please see section 10.1.12 of the hardware getting started guide(https://www.st.com/resource/en/application_note/dm00389996-getting-started-with-stm32mp151-stm32mp153-and-stm32mp157-line-hardware-development-stmicroelectronics.pdf) for the configuration.
For the WiFi module, please take a look at the documentation provided by ublox on their website: https://www.u-blox.com/zh/product/nina-w13-series#tab-documentation-resources. You will have to contact ublox to see if they provide Linux driver support for the module.
Best,
Neeraj
Thanks Neeraj,
I will try that out. Thank you for your support.
Warm Regards,
Akshay
Octavo Systems LLC all rights reserved
OCTAVO is registered in the U.S. Patent and Trademark Office. OSD, C-SiP, and the Octavo Logo are trademarks of Octavo Systems LLC.
"*" indicates required fields
"*" indicates required fields
"*" indicates required fields
"*" indicates required fields