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-04-30 10:46 AM
Maybe you need a CDC host driver for Android ...?
see:
https://github.com/mik3y/usb-serial-for-android
2024-04-30 12:22 PM - edited 2024-04-30 12:23 PM
@anees wrote: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
So you've implemented CDC ?
Does that tablet recognise any other CDC devices ?
Does your STM32 see any attempt from the tablet to start enumerating ?
2024-05-02 12:38 PM
1.So my board with stm32 is detected in windows and apple. But not in android , CDC driver is implemented on device
2. Yes the tablet sees other device,
3. When you bring up android settings, and developer options enable and usb in setting, in transferring file mode...other modes are disabled or greyed out. So not ensure what enumeration stage it is...
4. https://github.com/mik3y/usb-serial-for-android , is this code available in c# equivalent, does this change needed in android to make it work?
2024-05-02 12:48 PM
typeA to MicroB connected, galaxy Tablet said "media device detected". But no communication or serial comm and no enumeration, same result in galaxy s2. Then test on ipadPro .. usbA to usbC dongle, its said usb accessory.. still have to check if comm port can communicate with ipad.
We want to user galaxy A8,
2024-05-02 01:03 PM
Just about : typeA to MicroB -- there are two types of adapter: to connect a device (usb stick, cdc..) or a host (PC) .
The micro usb has a pin for this , that is on gnd or not - depending on adapter type.
So check, you use the matching = phone-> device adapter . Try connect another usb-serial adapter to the usb-A , to test.
2024-05-02 07:14 PM
2024-05-02 11:28 PM - edited 2024-05-02 11:32 PM
Ok,
so we (you) have :
A: an U575 nucleo board, M33 core 160MHz, with USB otg , host, device ; :: working with CDC -> Tab8 .
B: an L452 board, M4 core 80MHz , with USB device (crystal less); :: not working with CDC -> Tab8 .
A + B : working with CDC -> PC -- right ?
First : what clock you use for B , USB ? 48M from HSE/PLL or 48M HSI (or HSI crystal less ) ?
Program generated with : stm-IDE , Cube/HAL , in C ? + optimizer setting for project ?
and : software for USB : from Cube/HAL ? same for A and B ? tried already other lib ?
2024-05-03 07:02 AM
Hi I'm Anees,
We are using HSI48 (crystal less) for L452 board.
Program generated with CubeMX for A and B.
There is only one library available, which is CDC ACM. Using same library for both boards
2024-05-03 07:31 AM
So can you try 48M for USB from HSE/PLL ?
+ wich optimizer setting for project you use?