Skip to main content
Associate
June 17, 2026
Solved

STM32H757I-Eval Board demo progromming fails and PWR_CSR1_ACTVOSRDY issues

  • June 17, 2026
  • 3 replies
  • 39 views

Hi,

We recently bought a STM32H757I-Eval board and played around with it. This did overwrite the demo program it came with so I downloaded the stm32h757i-eval_demo.zip package to restore the demo.

I used STMCubeProgrammer for this, did a full chip erase and pointed it at the hex demo file. The programming failed with 

                      Error : failed to download Sector[0]

I tried the other hex demo files in the with the same result and on two different laptops and the latest CubeProgrammer.

The weird thing is that when I power the board the demo seems to work as when new so I don’t know if only part of it is working. It could even have arrived in this condition.

Anyone else have this problem? and perhaps a fix?

I did try to compile one of the examples from the x-cube-azrtos-h7-v3-5-0.zip package to see if the generated hex would program ok.

After a few issues I loaded the program with CubeIDE in debug mode and found the code would enter an infinite loop:

                        while ((PWR->CSR1 & PWR_CSR1_ACTVOSRDY) == 0U) {}

I did google this and tried the suggested BOOT0 power-on/power-off but it still stuck on this line, the LDO setting seem to be ok so it wasn’t a SMPS vs LDO issue I got google hits on. The PWR_CSR1_ACTVOSRDY bit in CSR1 would never go high so it loops forever.

The only way I got round this was to move the while loop to the first line in main() and when I checked it there the PWR_CSR1_ACTVOSRDY CSR1 bit was high so the code carried on. 

This was a surprise, you would expect the example code to work out of the box.

Is there some race condition in the Eval board software examples that cause this problem? am I missing a step?

 

Regards,

MH

 

 

Best answer by mƎALLEm

Hello,

Did you select the external Flash loader of the external QSPI Flash memory before uploading the demo?

 

3 replies

mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
June 17, 2026

Hello,

Did you select the external Flash loader of the external QSPI Flash memory before uploading the demo?

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
btrosUserAuthor
Associate
June 17, 2026

Thanks for that and the quick reply and no I didn’t use the external loader but now that I have it all works, thanks.

I overlooked the Howto section in the readme.txt, something to remember for the future.

mƎALLEm
ST Technical Moderator
June 17, 2026

Glad to hear that it worked.

So if my previous post answered your question please mark it as Best Answer.

Thank you

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
btrosUserAuthor
Associate
June 18, 2026

I did find a fix for the  PWR_CSR1_ACTVOSRDY problem by accident, after upgrading my CubeIDE to the latest the problem dissappeared.