STM32H757I-Eval Board demo progromming fails and PWR_CSR1_ACTVOSRDY issues
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


