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-06 07:13 AM
We will check that.
How we can enable debug message from USB lib and where we can see these messages?
2024-05-06 07:44 AM
You need SWO /swd , then if enable the debug msg in Cube setup, see it.
+ in Cube set debug ->
(search/read here in forum, how to do - i wrote it > 2 times. )
2024-05-07 05:41 AM
I have followed the previous recommendation and enabled debug message in cube ide setup and enabled SWO in debug configuration. But, when I tried to print a sample string "Hello" I got some junk values. Could you please confirm if there is any other configuration?
2024-05-07 05:41 AM
Just few updates
1) Tried USB mass storage, it came up on windows and mac but not working in Android
2) CDC driver same behavior , works in windows and mac but not in android
3) Use the external clk so crs_sync is no longer used
4) USB D- and D+ are correct. Its just a connector naming issue ( otherwise as u said it wouldnt work in windows or mac)
In all combinations, so far it works in windows/mac but not in android. We are basically stuck with this issue.
Currently looking at pulling log information via SWD, even though message comes out, its all scrambled , why would it be? clk issue ?
2024-05-07 05:45 AM
for clarity, we are not setup for 48M for USB from HSE/PLL.
What else we can try?
1) Try another android tab ? ( we are using galaxy A8 and A2, same behaviour)
2) Heard there is an Android sim software that can run on PC? may be try that and see?
Any other suggestions?
2024-05-07 07:05 AM
SWO output looks like wrong speed setting.
Did you set the real cpu core clk frequency in debug ?
->
+
>for clarity, we are not setup for 48M for USB from HSE/PLL.
eh ? not 48M or just using HSI ?
2024-05-07 07:14 AM
Core frequency we set to 80MHz, which is the frequency the controller running
2024-05-07 07:35 AM
for clarity, we are setup for 48M for USB from HSE/PLL. (sorry about typo, it is 48M for USB from HSE/PLL)
2024-05-07 07:51 AM
Ok, and also correct clock in debug -> swo settings ->
(here on H563 at 250M )
2024-05-07 08:41 AM
Below are the settings we done