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

    This topic has been closed for replies.

    3 replies

    Graduate II
    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

    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.

    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)