cancel
Showing results for 
Search instead for 
Did you mean: 

USB problems

Dani Prieto
Associate II
Posted on January 05, 2017 at 13:59

Hello,

I use a TUSB2046BVF to connect a host (tablet) to 2 USB connectors and 2 micros, one is STM32F103 and the otherSTM32F107, and I can only operate the 103 when I remove the pull-up resistor at 107.

The other ports do not work, nor the 107 when I remove the pull-up to 103.

I'm stuck with this problem.

Thanks in advance.

#stm32f103-
5 REPLIES 5
Imen.D
ST Employee
Posted on January 05, 2017 at 17:07

Dear

Prieto_Castillo.Dani

‌,

Have a look to the

http://www.st.com/content/ccc/resource/technical/document/application_note/b9/9b/16/3a/12/1e/40/0c/CD001675pdf/files/CD001675pdf/jcr:content/translations/en.CD001675pdf

and

http://www.st.com/content/ccc/resource/technical/document/errata_sheet/8d/85/aa/39/f4/58/40/e8/CD00238pdf/files/CD00238pdf/jcr:content/translations/en.CD00238pdf

to check known limitationwith STM32F107 configuration which could be your problem if you have the same conditions.

Maybe this note can help you:

'For STM32F107xx line devices, PA9 pin (USB_VBUS) is used to detect the USB host connection. The initialization of USB peripheral is performed only if PA9 is high at detection phase which means that a host is connected to the port and delivering 5 V on the USB bus. When PA9 level is high at detection phase, more time is required to initialize and shutdown the USB peripheral.

'

Refer to t

he STM32F107xx

http://www.st.com/content/ccc/resource/technical/document/datasheet/e4/f3/1a/89/5a/02/46/ae/CD00220pdf/files/CD00220pdf/jcr:content/translations/en.CD00220pdf

and

AN2606 to make sure that you've configured the right pins in the right mode.

Please, keep us informed about your progress on this issue.

Best Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on January 09, 2017 at 09:10

Thank you

DAHMEN.IMEN

for your answer.

I do not use the PA9 as VBUS on the USB, should I use it? I used CubeMX and it gave me the option of not using it.

The tablet gives me an error with this device: 'Device Descriptor Request Failed', while detects the STM32F103 as 'STMicroelectronics Virtual COM Port', as they are configured.

Thanks you for your help

Daniel Prieto

Posted on January 09, 2017 at 23:36

Hello

Prieto_Castillo.Dani

‌,

C

heck if you have switched D+ and D-.

So, t

ry to connect these component:

D- =PA11 and

D+ =PA

Hope this

https://community.st.com/0D50X00009XkeKwSAJ

helps you.

Please keep me informed about your progress.

Best Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on January 20, 2017 at 10:13

Hi

DAHMEN.IMEN

,

I discard problems with the HUB and the possible exchange of D + for D-, and the problem persists.

I've done captures with USBview to see what kind of problem I have.

STM32F103 working fine:

0690X00000605SkQAI.png

Now the STM32F107, with the communication problems.

0690X000006066GQAQ.png

I have tested by placing the pull-up resistor at 107, but that way it stops working the

I created the software with CubeMx in both micros, so I imagine the problem doesn't come from here.

Thank you in advance.

Daniel Prieto

Posted on January 23, 2017 at 13:50

Solved! 

Isolating the problematic micro, and redoing the code again the tablet is detecting the micro 107, I will continue working on it.

Thank you!