Hi Mark
When my circuit is on, I have a OSCILATOR 50MHz Abracon - ASVMB-50.000MHZ-LY-T with +- 10 ppm (-40°C to +85°C), this consums 20 mA.
When my circuit is off, I have a CRYSTAL ABS25-32.768KHZ-T-Abracon with +- 180 ppm (-40°C to +85°C) this consums ~ 2 nA and I need to keep the watch several days. But I need to acuracy.
I already saw the "AN4949" but I don't like of this type of compensation. because I need more accuracy. My OSCILATOR typicaly stay about +-3ppm and if I measure the RTC_CLKOUT period signal about ~ 30seconds. I can compensate the "MK64FN1M0VLL12 internal RTC" through of CIR and TCR register having a feedback. see the figure 1:
If I configure the CIR register with 29, varying the TCR I compensate the Crystal erro about 1pp per TCR. see the figure 2:
Yesterday, I implement the algorithm with your suggestion:
"If you do absolutely need to do it via DMA you can generate a 1Hz RTC clock output signal and connect it to a GPIO pin DMA trigger."
It achived the target see the figure 3
But I don't want to use the pin, do you know another form?