STM32H562: Immediate standby mode makes µP inaccessible
Hello,
I want to measure the power consumption of the rest of my circuit. For that, I’m putting the STM32H562 immediately to sleep. I generate a cube project and put the following in main():
int main(void)
{
HAL_PWR_EnterSTANDBYMode();
}
After flashing, the current consumption suggests that it is not running, but I’m not sure. I switch the power off and on again, the current drops by 2.2mA down to 0.5mA (including the rest of the circuit).
But now, it is not possible to connect to the processor with the cube programmer. I have to do a discover first, before being able to connect to it again. MY expectation would have been that I’m directly able to flash again.
My questions are now: Why does entering the standby (or stop) mode locks the access to the device. Is this a bug or a feature? Is is documented somewhere?
Best regards,
Peter
