Skip to main content
Explorer II
August 11, 2024
Solved

HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY) fails in HAL_MspInit.

  • August 11, 2024
  • 3 replies
  • 1581 views

Hello,

I am currently working with the STM32H7R7I8T6 and I am having issues configuring the Power. When HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY) is called in the HAL_MspInit function, it fails waiting for the PWR_SR1_ACTVOSRDY bit to set. I have measured the output of the internal LDO from the VCAP pins and it gives me a value of 1.187V which is within the acceptable voltage range for Vcore and so thePWR_SR1_ACTVOSRDY is supposed to set. I am starting to think that the registers can't be written or read. If this is the case how can I fix it and are there other reasons why this could be happening? 

 

Screenshot 2024-08-11 at 3.21.17 AM.png

    This topic has been closed for replies.
    Best answer by Kwame

    I just updated cubeIDE to the latest version and it worked. 

    3 replies

    Super User
    August 11, 2024

    Hi,

    what did you set in Cube/ioc ?

    KwameAuthor
    Explorer II
    August 11, 2024

    Screenshot 2024-08-11 at 9.49.08 AM.png

     

     

    Super User
    August 11, 2024

     I am starting to think that the registers can't be written or read.

    What is content of PWR->SR1 (other bits?)  Is this ST or custom board?

     

    KwameAuthorAnswer
    Explorer II
    August 22, 2024

    I just updated cubeIDE to the latest version and it worked.