Skip to main content
Visitor II
October 26, 2025
Question

Black Pill Clock configuration issues

  • October 26, 2025
  • 3 replies
  • 300 views

I was configuring USB as virtual com port for stm32f401ccu6 (Black Pill) using HAL. I am getting clock issues. I tried multiple times but can't resolve them. please help me.

 

 

Screenshot from 2025-10-26 22-16-59.png

3 replies

Issamos
Lead III
October 26, 2025

Hello @Clockarz 

Could you please give more details about the issue you have?

If you put the cursor on the red rectangle (on the PLL source Mux), what is the message you have?
Are you reproducing this issue using the STM32CubeMX V6.15.0 (or the plug-in integrated on the STM32CubeIDE V1.19.0?

If not try to update your SW to the last versions.

Also, have you tried the resolve clock issue button?

Best Regards.

II

AScha.3
Super User
October 26, 2025

For USB you have to use/select the HSE.

AScha3_1-1761501363509.png

 

Set in RCC HSE to crystal, to do this..

AScha3_0-1761501304198.png

...+ write the correct frequ. of the real mounted crystal (check!)  on your board here:

AScha3_2-1761501489077.png

Then adjust PLL/divider , to get 48M for "48M clocks" and the core clock you want.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Technical Moderator
October 29, 2025

Hi @Clockarz 

It is mentioned in the reference manual:

USB OTG FS require an external clock (HSE) multiple of 1 MHz (ranging from 4 to 26 MHz).

Also, the USB OTG FS clock (48 MHz) and the SDIO clock (≤ 48 MHz) which are coming from a specific output of PLL (PLL48CLK)

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.Best regards,FBL