I need help on how to do the routine to leave only the part of the RTC active.
I'm using NMI_Handler, see how I did it below
#define INTERRUPT_NMI NMI_Handler
void INTERRUPT_NMI (void)
// Turn everything off and leave the RTC power on the MKE15Z256 active
Which record should I change when the interrupt is active? I need to change the registry to only remain active on the RTC feed
Chip power modes = BAT (Backup Battery only)
As a general recommendation, you could disable the clock of unused peripherals and put GPIOs in default state to diminish battery wear. Additionally, implementing a low power mode to reduce or halt core and peripherals operation can be helpful.
Here you could find some useful resources.
If you need more specific advice on your application, please let me know.
Best regards, Diego.