Hi Kamil Allaf, Ryssus
This is a normal behavior in this demo; This flag is actually setting, but MCU will reset from VLLS mode, a LLWU interrupt will be pending, but it will no be trigger until you get to the line NVIC_EnableIRQ(LLWU_IRQn);
But as you can see, this line is after the LPTMR_Init() function. Inside this function you change the value of the register CSR, and this clears the flag, so when you arrive to NVIC_EnableIRQ(LLWU_IRQn); the flag is already cleared. This is why in this demo, when you get to the handler, it is not entering into if statement.
Hope this information could clarify your question.
Best Regards
Jorge Alcala
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------