B-L072Z-LRWAN1 with sleep-on-exit feature
Hi there, I'm using a customized board based on B-L072Z-LRWAN1. I also use I-CUBE-LRWAN (v1.1.4), compiled on Keil uVision. Everything works fine. I can get about 2uA in Stop mode.
Now I'm doing a project requiring power consumption optimized so I enable Sleep-On-Exit feature. At first, the process of initialization -> sleep (3s) -> uplink first time (enable an interrupt here) -> sleep is fine. However, after the interrupt executed, I can see it isn't back to main function but the current consumption is about 3.5mA. I figured out somehow the uC cleared the SLEEPDEEP bit in SCR register. So inside the interrupt I've set it again. And it did partially works. The current consumption is down to less 900uA but not what I want which is about 2uA or so.
So far I've followed instructions in both programming manual PM0223 and reference manual RM0376 but no luck. Do you guys have any suggestion?
Thanks in advance.