2021-09-21 01:30 PM
Hi!
After starting custom board there are a lot of similar messages in dmesg (10 per second):
[ 200.480616] dwc2 49000000.usb-otg: Overcurrent change detected
....
[ 203.598775] dwc2 49000000.usb-otg: Overcurrent change detected
USB is not working. LED on USB2514B-AEZC hub blinking several times per sec.
What is the reason for this message and how to debug this?
USB_OTG circuit have no visible hardware problems.
Thank you in advance
Looking forward for your reply
Solved! Go to Solution.
2021-11-14 09:30 PM
There was no hardware issues. But there was a mix of two kind of problems - first wrong DT for USB. Second here:
Wrong value for USB bias resistor.
Thank you for your support :)
2021-09-21 11:38 PM
Hi,
strange behavior as USB2514 is an USB hub (so, connected to USBH) and the log message is for OTG. Maybe some mixed-up in the DT.
could you share your HW schematics around :
could you share also your uBoot device tree.
See also
Regards
2021-09-22 12:58 AM
Hi, Patrick!
Thank you very much for quick reply. There are nothing special in the schematic - mostly copy-pasted from ST's reference boards:
USB_HUB connected to USB_DM1 (USB1_N pin of MCU) and USB_DP1 (USB1_P pin of MCU) pins:
OTG connector connected just to USB2_P and USB2_N connector. And currently disconnected.
OTG_VBUS (OSBO_VBUS pin of MCU) currently not connected
VBUS pin of OTG connector connected directly to 5V system power input and used to power target board.
I also suspect problems with DT because I definitely remember, that there was no problems with USB recently
with less customized images on the same board.
Please find attached DT files for my project.
2021-09-22 05:22 AM
Hi,
If your 5V is directly connected to OTG_VBUS pin of STPMIC1, maybe there is some conflict if STPMIC1 OTG_VBUS supply is enabled simultaneously (can explain the over-current detection by STPMIC1).
As you supply your board from OTG connector VBUS, I assume you are in 'peripheral only' on OTG with MicroB connector (similar to STM32MP157F-EV1, i.e. no Type-C nor STUSB1600 as for STM32MP157F-DK2) .
Could you try to add in &usbotg_hs node the two following lines (not 100% sure it is valid for ecosystem v3.0)
dr_mode = "peripheral";
role-switch-default-mode = "peripheral";
Note that supplying an MPU board from the USB (without battery in the product, aka 'BUS powered') will likely never pass USB standard certification (many issues linked to power limits during connection, boot time, etc...).
Regards,
2021-09-22 05:48 AM
2021-09-22 10:50 PM
2021-11-14 09:21 PM
Would you pull high the reset-pin of USB2514B ?
2021-11-14 09:30 PM
There was no hardware issues. But there was a mix of two kind of problems - first wrong DT for USB. Second here:
Wrong value for USB bias resistor.
Thank you for your support :)