Also, when I log out, my question disappears. Is this normal forum behavior, or some kind of a bug?
On page#20 of RTC v2_0 datasheet ,it is mentioned about specific function which would be called at appropriate intervals based on the setting configured with RTC_WriteIntervalMask() function:
Every Second handler – RTC_EverySecondHandler()
Stub routines for these functions are provided in which you can add your own code. The routine stubs are generated in the RTC_INT.c file the first time the project is built. Your code must be added between the provided comment tags as follows:
static void RTC_EverySecondHandler( void )
/* Place your every second handler code here. */
/* `#START EVERY_SECOND_HANDLER_CODE` */
/* `#END` */
The interval mask register is a write-only register that allows you to control handling of interrupt stubs of the RTC component.When writing the interval mask register, you must use the bit-field definitions as defined in the header (.h) file. The definitions for the interval mask register are as follows:
RTC_INTERVAL_SEC_MASK – The second interval mask allows handling an interrupt stub every second.
Thank you for reply. I had not already tested this on device, but inside IDE this works well - my code is preserved, when I change design.