Skip to main content
Matthew Lai
Associate II
April 17, 2017
Solved

Enabling over-drive on F7

  • April 17, 2017
  • 2 replies
  • 1875 views
Posted on April 18, 2017 at 01:00

Hello!

I am having trouble enabling regulator over-drive on a Nucleo-F767ZI.

I have now simplified my code down to just trying to enable OD right away after power up, which should be possible since system clock source is HSI by default, and no peripheral clocks are enabled?

After setting the ODEN bit in PWR_CR1 to 1, I still read back zero. Also, the ODRDY bit in PWR_CSR1 never gets set.

Am I missing something?

Thanks!

Matthew

    This topic has been closed for replies.
    Best answer by waclawek.jan
    Posted on April 18, 2017 at 01:26

    Am I missing something?

    RCC_APB1ENR.PWREN?

    JW

    2 replies

    waclawek.jan
    waclawek.janBest answer
    Super User
    April 17, 2017
    Posted on April 18, 2017 at 01:26

    Am I missing something?

    RCC_APB1ENR.PWREN?

    JW

    Tesla DeLorean
    Guru
    April 18, 2017
    Posted on April 18, 2017 at 01:29

    I could see that as being helpful...

    One should review the startup code examples for HAL and Cube, the older stuff for F4 parts might also provide context/insight

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Tesla DeLorean
    Guru
    April 17, 2017
    Posted on April 18, 2017 at 01:27

    Manual says to configure and turn PLL on immediately *prior* to enabling the overdrive bit.

    'Configure RCC_PLLCFGR register and set PLLON bit of RCC_CR register'

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Matthew Lai
    Associate II
    April 18, 2017
    Posted on April 18, 2017 at 01:32

    It was the peripheral clock not being enabled.

    The manual does say to set up PLL before enabling overdrive, but it also says that's done to save startup time.