Hi Lukas
Thank you for the reply.
The situation happens on more boards so it doesn't seem to problem of the board.
Most of the time wakeup works but I found out one weird thing. When I put zero into RTCVAL in RTCC register, interrupts stop comming (but RTCCNT keeps on incrementing) and when I put other value into RTCVAL interrups work fine.
I looked at other flags in RTCC when 0 is in RTCVAL but all are correctly set (CNTEN, RTCIE are set, CLKSEL is ok).
Is value 0 in RTCVAL somehow special? I didn't find anything about it in reference manual.
Thank you
Pavel