cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F407VET6 Black Pill V2

nagendra
Associate

I procured an STM32F4VE 2.0 board 
*Details of board here:*
https://stm32-base.org/boards/STM32F407VET6-STM32-F4VE-V2.0

I managed to create a Basic STM32 Cube Project for this controller. (STM32F407VET6)

From the Schematic on STM32base website, I see PA12, PA11 connected to the USB Connector...

nagendra_1-1764608023780.png

I have enabled USB_OTG_FS which corresponds to PA11, PA12 in hardware and schematic.

nagendra_2-1764608076266.png

And further, under "Middleware and Software Packs" I have selected "Communication Device Class (Virtual Port Com)"

nagendra_4-1764608204186.png


I am also able to successfully initiate two IO Line connected to LED on board as output and write a basic Blinky program too.

However the USB COM Port is giving hell of a lot of trouble, with Windows being unable to get even the Device Descriptor from the board!

nagendra_0-1764607947951.png

 

nagendra_5-1764608317692.png

What am I doing wrong? Any step I have missed or any configuration I have done wrongly? 

Thanks in advance:

Nagendra R Setty

nagendra.setty@ideas-unlimited.in 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Super User

If you short BOOT0 to 3.3V during reset, with the USB cable attached, does the device show up as a USB DFU device? That would validate the hardware.

CubeMX settings look okay. Ensure HSE_VALUE is set to 8000000 on the clock page.

 

R21 should not be present. May or may not be affecting things. The chip has an internal pullup for USB.

TDK_0-1764646883014.png

 

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

2 REPLIES 2
TDK
Super User

If you short BOOT0 to 3.3V during reset, with the USB cable attached, does the device show up as a USB DFU device? That would validate the hardware.

CubeMX settings look okay. Ensure HSE_VALUE is set to 8000000 on the clock page.

 

R21 should not be present. May or may not be affecting things. The chip has an internal pullup for USB.

TDK_0-1764646883014.png

 

If you feel a post has answered your question, please click "Accept as Solution".
nagendra
Associate

@TDK 

> If you short BOOT0 to 3.3V during reset, with the USB cable attached,

> does the device show up as a USB DFU device? That would validate the hardware.

No. It did not

> CubeMX settings look okay. Ensure HSE_VALUE is set to 8000000 on the clock page.

Yes, this was the issue! the board has a 8MHz crystal, whereas the expected default crystal for this controller is 25MHz and so the IOC file assumes 25MHz by default. Fixing this problem and resolving clock values, fixed USB and the port started mounting immediately! 

> R21 should not be present. May or may not be affecting things. The chip has an internal pullup for USB.

Yes, this I had noticed on STM32base website and removed it before starting

Thanks a lot for your suggestions! They helped me resolve the problem quickly! 

Kudos!