Hello ,
" After enter deep-sleep mode, the MCU and RAM remained powered, but flash and ROM are shut down. So the code in deep-sleep mode need to execute from RAM.
In our SDK demo, we used GPIO pin interrupt to wakeup from deep-sleep mode. And the GPIO interrupt is one of the wakeup sources of deep-sleep mode. So after triggering GPIO interrupt, the flash is powered first, and then execute handler from flash.
But the hardfault signal is not the wakeup source of deep-sleep mode, so we need to execute the hardfault handler from RAM and then reset the chip. "
BR
Alice