Hi Jun,
I can't seem to replicate this issue in a different environment. I guess what my question really is, is what are the prerequisites to safely enter deep sleep?
I can see that the fault occurs on the instruction "mov.w r12,#128", when r12 has a value of 0xffefbf7f (which sounds incorrect). Assuming the attached fsl_power_lib.c from the 2.3 SDK is still fairly representative of the 2.10 SDK, I imagine this corresponds to the line below based on the constant value:
SYSCON->AHBCLKCTRLSET[0] = SYSCON_AHBCLKCTRL_FLASH_MASK;
Not really sure why it would crash here to be honest, since it should just load a constant value into r12. I'm guessing the fault really occurs earlier but it's not clear what the problem would be.