2024-04-30 10:13 AM
I have a board design based on stm32L452 , USB gets recognized on a windows PC and I can talk to the device over any software like putty and a Test software sees the com port and can to the device. However in Android (Iam using samsung GalaxyTab A8), usb is not even recognized. The Tab support OTG mode and I did change default USB mode in the tab (Tried all the combo, file transfer, teethering, media etc). Nothing helps. Any advice is greatly appreciated
2024-05-03 08:58 AM
Thanks, we are updating the code as per your suggestions and about to try. One other information is that USBCRS_SYNC (PA10 AF10 function) Is routed in the board to connector. But the USB cable do not have any pins for this? And datasheet doesnt explain what USBCRS_SYNC pin do? can anyone explain about this pin
2024-05-03 09:21 AM
Just from circuit nucleo-L4xx :
PA10 -> USB_ID , but not needed for device only.
2024-05-03 09:27 AM
Iam confused, as per data sheet PA10 is USB_CRS_SYNC,
2024-05-03 09:35 AM
Does this mean this pin is needed for working with Android Tablet? wondering why it has no issue with windows/Mac
2024-05-03 09:40 AM - edited 2024-05-03 09:51 AM
Me too :)
crs_sync seem needed for crystal less -> sync the HSI48
IF you select it as sync source :
from rm:
2024-05-03 09:58 AM - edited 2024-05-03 09:59 AM
No, nothing about "Samsung" here. :)
IF you select it as sync source (see my last post) you need it as sync input . (If you use crystal less.)
>wondering why it has no issue with windows/Mac
Just lucky. Connect it to 10 different PCs , maybe 8 work, 1 sometimes, 1 never . (Without sync used to adjust the HSI.)
Thats why i wrote : try with HSE ---> usb-clk. Just to exclude the clock problem.
IF using crystal less , use ->
2024-05-03 01:53 PM
Was using HSI crystal less , as you suggested changed to HSE ---> usb-clk ...
No impact, works in mac/windows but not in android. With this change, may be I saw unknown usb detect error from windows few times.
Also tried changing USB_CRS_SYNC to RESET_STATE in ioc. In our board even though this signal is routed to USB connected, usb cable doesnt take this anywhere. So still fighting the not able to talk to android issue.
What else can be tried? Should we try as a USB mass storage and see if android can detect that to isolate if its on android side or device side?
2024-05-03 02:13 PM
>Should we try as a USB mass storage and see if android can detect that
Why not ? --- easy to check .
Other way ---> check, whats coming from host (PC first, then Tab ) and what your device answers...
Might be some help, to see the debug messages from USB lib : do you have SWO usable ?
If debug enabled in HAL/usb lib, as host i get from swo :
2024-05-06 05:52 AM
Mass storage class showing same issue, detecting on Windows, but not detecting on Android.
The external clock (HSE) using now.
Below showing the schematic in which USB_DM and USB_SYNC is interchanged. Is there any possibility to work the USB in windows, if this pins are interchanged?
2024-05-06 06:18 AM - edited 2024-05-06 07:40 AM
>Is there any possibility to work the USB in windows, if this pins are interchanged?
No - hey, but everything is possible in certain reality. :)
If really mixed up - correct it. And try connection then...