Oh, so *that's* what I was missing! Thanks for explaining! That's very good news.
I'm still slightly puzzled though, as I don't understand the mechanism of the wakeup. It isn't strictly necessary, but I would like to understand it better.
LPTMR peripheral documentation says:
The LPTMR interrupt is generated asynchronously to the system clock and can be used to generate a wakeup from any low-power mode, including the low-leakage modes, provided the LPTMR is enabled as a wakeup source.
It doesn't mention LLWU, but normally "wakeup source" means "LLWU wakeup source", how can I enable another wakeup source if not in the LLWU?
Also, the "Power Management" section says (for VLLS1):
NVIC is disabled; LLWU is used to wake up
I'm assuming it's the AWIC which does the processing and performs wakeup, then?
I'm guessing the relevant section is 7.4 "Entering and exiting power modes" (page 82), which says:
For VLLS modes, the wake-up sources are limited to LLWU generated wake- ups,LPTMR, CMP, SRTC,NMI_b pin, or RESET_b pin assertions.
But that doesn't list RTC as a wakeup source.
(and yes, I meant VLLS1 not VLLS0, I was hoping to use VLLS1 sleep and LPTMR or RTC wakeup for the sensor nodes)
In any case, many thanks for your explanations, Mark and Jingjing.