Skip to main content
Explorer
April 30, 2024
Question

STM32F407: PLL is not working

  • April 30, 2024
  • 3 replies
  • 1887 views

I have build a code of Mcu driver for STM32F407 DISCOVERY board. During Flashing my HSE or HSI works fine but PLL doesn't works on. I will attach the the mcu.c and mai.c file for your reference.

Kindly have a look into this help me out.

    This topic has been closed for replies.

    3 replies

    Super User
    April 30, 2024

    Your coding style is quite hard to penetrate. 

    You may want to try setting up PLL using straightforward writes to RCC registers, first.

    Do you set FLASH waitstates?

    JW

    Explorer
    May 3, 2024

    Yes, I have set the Flash 

    Super User
    April 30, 2024
    Technical Moderator
    April 30, 2024

    Hi @rohitkumarkv07 

    To ensure that your clock configuration is correct and to isolate the issue with your controller,

    Create a new project with CubeMX then enable your oscillator and configure your clock tree. 

    After that enable an MCO pin to visualize your clock with analyzer/scope.