2017-05-17 06:52 AM
Hi,
I'm using the STM32F446ZE.
I'm using PA11 and PA12 for USB FS DM and DP, but I don't need PA8 as SOF, I need it as a simple output.
USB is runing fine only if PA8 = 0 !
If I set PA8 output to 1, the USB disconnects.
It looks like the PA8 is in Alternate function mode, but after double-check, the PA8 mode is in Output mode ( MODER8 = 1, AFR8 = 0 ).
Did someone already faced this issue ?
Thanks and best regards,
Vincent.
#usb-fs #stm32f42017-06-08 08:02 AM
Hi
Waclawek.Jan
,Does that mean that SOF is not available on PA8 for OTG_FS and PA4 on OTG_HS?
And that they both are not available as optional input to TIM2_ITR1 ?
->The OTG_FS_SOF and OTG_HS_SOF are available as alternate functions respectively on PA8 and PA4 pins.
Or does this mean that SOF is available out from OTG_FS/OTG_HS at all times, regardless of how OTG_GCCFG bit 20 is set; and it is gated only at the GPIO/TIM2 level?
-> Correct.
Is this a 'F446-specific change, as compared to other 'F4 and 'L4 and 'F2 and 'F7?
->The modification is for devices where GCCFG configuration register is different from:
The register is defined differently, so a new configuration should be applied.
Khouloud.
2017-06-08 09:14 AM
Khouloud
Thanks for the explanation.
I am using STM32F407. In RM0090, the OTG_FS_GCCFG register is different from what you've shown above:
Does this mean that for OTG_FS in STM32F407 SOFOUTEN is not available?
---
Also, once mentioned, the I2CPADEN (which *is* present in the 'F407's OTG_HS_GCCFG) appears to enable some extra functionality which has no explanation in the RM, can you please go into further details? Onto which pins are the mentioned I2C pads connected?
Thanks,
Jan
2017-06-09 04:45 AM
Hi Jan,
I have given the OTG_HS_GCCFG figure by mistake.
For the F407, the SOFOUTEN bit is available in FS and HS modes.Khouloud.
2017-06-09 04:54 AM
Hi Khouloud,
Thanks for the clarification.
The USB OTG HS core embeds an I2C interface allowing to connect an external FS PHY.
The I2CPADEN is used to enable or disable the I2C bus connection for this interface.On which pins?
Can you please give an example of such FS PHY and its connection to the 'F407?
Thanks,
Jan
2017-06-09 05:10 AM
Hi Jan,
Could you please create a new thread regarding this.
Khouloud
2017-06-09 06:18 AM
Hi Vincent,
Using the ''CustomHID_Standalone'' example, I have:
-> I'm not able to reproduce the issue. The device is correctly enumerated as an HID compliant one.
So,again, I advise you to verify your hardware connection. Are you respecting the required connection showed below:
Khouloud.
2017-06-09 06:32 AM
2017-06-15 07:31 AM
Hi Khouloud,
Thank you for your answer.
I'm sure the hardware part is OK, since I can program my boards using DFU, and since I can make USB HID working fine as long as PA9 is set as OUTPUT and 1.So for me, there's only a software problem for disabling the VBUS sensing feature.
As I lack time to look deeper at STM32F4Cube, I will wait for the update of the SPL.Do you know when the VBUS sensing feature will be fixed in the SPL ?
Thanks.
Best regards,Vincent.