Hello,
If you can access low-level registers or custom driver code (via S32 SDK or S32 Design Studio), then:
Read current RTC time from RTC_TSR.
Set RTC_TAR = RTC_TSR + desired_offset_in_seconds.
Ensure RTC_IER has the alarm interrupt enabled.
Make sure your RTC module clock is properly set.
Check boundary conditions if RTC_TAR overflows a minute or hour — handle it gracefully.
Best Regard,
Helen