2023-08-03 10:13 AM
Hello,
It's my first question i'm new to STM32.
I use Win 11 and a Nucleo F303ZE (and a Nucleo F303RE, same problem), and y i need to use the virtual com port on the STM32 F303.
So, I try to enable the Virtual com port on the Nucleo F303ZE on th 2nd USB port (CN13) which is connect to PA11 and PA12.
the USB_DEVICE config on STM32Cube IDE:
The USB setting:
Normally, it's ok. But, if i plug a (tested) USB cable on CN13 (which is plug to PA11 & PA12), or not, nothing happend on window. I see a Virtual Port COm, but it's the ST LINK. I do something wrong?
I see the video :https://www.youtube.com/watch?v=h9T0RTu9Muc&list=PLnMKNibPkDnFFRBVD206EfnnHhQZI4Hxa&index=11
But it doesn't help me.
Thanks in advance,
Guillaume
Solved! Go to Solution.
2023-08-04 04:49 AM
I found:
Set PG6 (USB_PowerSwitchON) to High (Low by default) and it works:
This part of the scematic gived me the clue:
BR
2023-08-03 02:06 PM
I tried to see the schematic of the board to try to understand how it works, but unfortunately the ST is going against the grain.
2023-08-03 11:59 PM
2023-08-04 01:53 AM
Another weird information...
I plug the AZ delivery logic analyzer (8 channels, 24MHz..)
When i plug the GND of the logic analyzer on the GND of the nucleo and the channel 1 (it works only with channel1) on PA11 or PA12, Win 11 see the device:
It's maybe a step forward, but that adds some black magic..
BR
2023-08-04 02:12 AM
@le-gal.guillaume wrote:Hello,
here is the schema:
BR
Thanks, I opened a question about the schematic, now the schematics are available in the CAD Resources tab.
2023-08-04 02:18 AM
I don't know if it can help in your case, but I found these videos about advanced debugging:
https://youtube.com/playlist?list=PLnMKNibPkDnEDEsV7IBXNvg7oNn3MfRd6
2023-08-04 04:24 AM
Hello,
No unfortunately it doesn't help me.
By the way, is it normal that USB_DP is at 0 after MX_GPIO_Init()?
The piece of code in MX_GPIO_Init() where USB_DP switch to 0:
BR
2023-08-04 04:49 AM
I found:
Set PG6 (USB_PowerSwitchON) to High (Low by default) and it works:
This part of the scematic gived me the clue:
BR