Hi,
I do the test in the application, not in the function PWR_HandleDeepSleepMode_1(void). This function will go to sleep. then recover from the sleep. May be in some time, we can't access the variable in this function. I add code in function BleApp_AdvertisingCallback.
if(A == 3)
{
AppPrintString("yes");
}
Here is the result.
At first , print yes. Then mcu go to sleep. I press button to wake. Print yes again. It means the variable doesn't change.

Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 days after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------