cancel
Showing results for 
Search instead for 
Did you mean: 

VCP without ST LINK (STM32F303)

le-gal.guillaume
Associate II

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:

legalguillaume_0-1691082339965.png

The USB setting:

legalguillaume_1-1691082376996.png

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

1 ACCEPTED SOLUTION

Accepted Solutions

I found:

legalguillaume_0-1691149553412.png

Set PG6 (USB_PowerSwitchON) to High (Low by default) and it works:

legalguillaume_1-1691149606319.png

This part of the scematic gived me the clue:

legalguillaume_2-1691149682573.png

BR

 

 

View solution in original post

7 REPLIES 7
RhSilicon
Lead

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.

STM32_boards.png

Hello,

here is the schema:

BR

 

le-gal.guillaume
Associate II

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:

legalguillaume_0-1691139025280.png

It's maybe a step forward, but that adds some black magic..

BR


@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.

CAD Resources.png

RhSilicon
Lead

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

le-gal.guillaume
Associate II

Hello,

No unfortunately it doesn't help me.

By the way, is it normal that USB_DP is at 0 after MX_GPIO_Init()?

legalguillaume_0-1691148080569.png

The piece of code in MX_GPIO_Init() where  USB_DP switch to 0:

legalguillaume_1-1691148225223.png

BR

 

I found:

legalguillaume_0-1691149553412.png

Set PG6 (USB_PowerSwitchON) to High (Low by default) and it works:

legalguillaume_1-1691149606319.png

This part of the scematic gived me the clue:

legalguillaume_2-1691149682573.png

BR