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-05-17 12:36 PM
Is this some know board such as a Nucleo or DIscovery? And the software is some of the examples?
JW
2017-05-18 12:19 AM
Hi,
No I'm not running a known board.
But I think the problem is within the silicon of the STM32. I checked the erratasheet, but they never mention anything about USB (which is quite surprising !).Software example :
Just setup the STM32 as USB FS device with PA11 and PA12.
Setup PA8 as outputSet PA8 output to 1, and your USB will disconnect.
2017-05-18 02:43 AM
Okay, and the USB portion of the software? Isn't it a port of some example or some 'library', which observes pin PA8 for any reason?
JW
2017-05-18 02:58 AM
I'm using the USB library from ST ( en.stm32_f105-07_f2_f4_usb-host-device_lib )
Initially, the library setups PA8 as OTG_FS_SOF. I removed this part.
But maybe somewhere the 'OTG_FS_SOF' feature is used, but I couldn't find anything related to SOF.
Searching for 'GPIO_Pin_8' didn't give anything.
2017-05-18 08:34 AM
Hi
Del_Medico.Vincent
,We have never encountered this strange behavior on the PA8 pin previously.
For further debug, could you please share your project or at least describe the steps leading to reproduce the issue.Khouloud.
2017-05-19 05:02 AM
Hi,
You will find the project here :
I was able to reproduce the issue, starting from scratch from ST's USB library.
I just removed from ST's library all the platform-related code ( LED, LCD, buttons ), and simplified the port A setup by just PA11 and PA12 as USB DP DM, and PA8 as output after USB init function.
Your feedback is welcome.
2017-05-19 07:03 AM
Hi,
You will find the project here :
I was able to reproduce the issue, starting from scratch from ST's USB library.
I just removed from ST's library all the platform-related code ( LED, LCD, buttons ), and simplified the port A setup by just PA11 and PA12 as USB DP DM, and PA8 as output after USB init function.
Your feedback is welcome.
2017-05-23 03:21 AM
Hi
garsi.khouloud
Did you give a try to my project ?
BR, Vincent.2017-05-23 03:31 AM
Hi @VDM,
Your project is under review. I will be back to you with an answer as soon as possible.
Thanks for your understanding.
Regards,
Khouloud.