2017-08-07 11:59 AM
I am testing out the USB HID (otg fs) feature of my board with stm32f407vet6 mcu. I used stm32cubemx to configure it and i didn't add anything to the while loop in main c, just seeing if the device can be detected or not. However, after I uploaded the code and resetted the board, no response was given and I could not find any relevant port in the device manager of my pc. The attached are the schematic for the usb_slave port and configuration in stm32cubemx.
null2017-08-07 12:00 PM
2017-08-08 04:55 AM
Hello
sirsargras
,Can you show us your clock configuration? Clock is in most cases main problem why USB does not work.
Best regards,
Tilen
2017-08-08 05:10 AM
Hello,
please share with us .ioc file from CubeMX.
Best regards,
Tilen
2017-08-08 07:06 AM
Hi
Majerle.Tilen
This is my clocking configuration; the clocking for usb is 48Mhz I think.
Best regards,
Yongan
2017-08-08 07:17 AM
Hi,
The .ioc file is updated in the original post. Thank you!
Best regards,
Yongan
________________ Attachments : usb_otg_device.ioc.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyWq&d=%2Fa%2F0X0000000b95%2F_hBHuK7A2OvGlDsCcidNGO58QM8XmqNbo.sSsRdkId4&asPdf=false2017-08-09 05:34 PM
Hi,
The problem is solved. It turns out that in the schematic I pulled up the PA12(D+) pin to make the host device recognize the board as a full speed device. However, it is not necessary and is wrong. I only need to connect PA12 directly to the D+ in usb connector and it works fine.
Best regards,
Yongan