2022-03-07 05:51 PM
Hi everyone,
I am using stm32mp157f-dk2 with ecosystem 3.1.
I want to configure the usb type C port(CN7) as serial port, and communicate with the host PC.
This article helps me a lot. https://wiki.st.com/stm32mpu/wiki/USB_overview#How_to_configure_USB_Gadget_through_configfs
I modified the usbotg-gadget-config.bb, the stm32_usbotg_eth_config.sh and create my own service, as attached.
After that, I can successfully set up the device. I can see ttyGS0 show up in my device.
However, when I connect it to the host, although the host is able to detect my device, it can't recognize my device.
What am I missing?
I suspect that it is the stlink causing the issue, as it occupy the ttyACM0 already and the host cannot create another tty corresponding to the GS0. I am not sure how will the host OS deal with this situation.
Regards,
Leung
10/3 update: I found that my PC can't boot up when the device is connected. It scared me. I am still investigating why it is failing, but I think the stlink is not the root cause.
Solved! Go to Solution.
2022-03-21 12:51 AM
Hi @Kevin HUBER ,
I have already fixed it. Setting USB_G_SERIAL=Y in kernel config solve my problem.
Anyway, thanks for your reply.
Regards,
Leung
2022-03-17 11:01 PM
Do anyone have experience with the serial usb?
2022-03-18 06:35 AM
Hello @WLeun.3,
I will try to help you
Please can I have:
Regards,
Kevin
2022-03-21 12:51 AM
Hi @Kevin HUBER ,
I have already fixed it. Setting USB_G_SERIAL=Y in kernel config solve my problem.
Anyway, thanks for your reply.
Regards,
Leung