There is a PCB track problem that makes MCU power tests impossible with the FRDM board.
However I have tested using a stand alone MCU and have obtained the following results by changing the Clock Set Up mode in the Mbed-SRC library file "system_MKL05Z4.c"
VDD = 3.3022v, Temp = 19'c
Clock Set Up 0 ... Wake 5.420mA, Sleep 3.573mA, Deep Sleep 2.6uA
Clock Set Up 1 ... Wake 5.995mA, Sleep 3.833mA, Deep Sleep 2.6uA (this is the default set up)
Clock Set Up 2 ... Wake 1.447mA, Sleep 1.270mA, Deep Sleep 2.6uA
Wake, Sleep and Deep Sleep timers remained accurate during power mode transitions.
Further checks on default clock set up 1 and the RTC is usable on this MCU.
RTC Clock source is generated in the MCU and not from an external source whereas the FRDM-KL25Z RTC is clocked from the SWD interface MCU. This results in loss of RTC timing on reset along with the inconvenience of feeding an external RTC clock source on stand alone MCU configurations.
The external 32kHz crystal remains in operation during Sleep and Deep Sleep modes.
RTC registers and timing continue on a hardware reset so time accuracy is not lost.
The only issue I have so far is the compiler appears not to be very well optimised, an identical program on the KL05Z used 23k compared with 16k on the LPC812 MCU.
Further tests and I have found the RTC to keep very good time, +3 seconds over 24 hours on my board where the crystal runs at 32.770kHz. This is much the same as the LPC1768 RTC module. Another observation and I find that the RTC registers doe not reset when SWD downloading, timing remains accurate only resetting when power is cycled.
There is a PCB track problem that makes MCU power tests impossible with the FRDM board.
However I have tested using a stand alone MCU and have obtained the following results by changing the Clock Set Up mode in the Mbed-SRC library file "system_MKL05Z4.c"
VDD = 3.3022v, Temp = 19'c
Clock Set Up 0 ... Wake 5.420mA, Sleep 3.573mA, Deep Sleep 2.6uA
Clock Set Up 1 ... Wake 5.995mA, Sleep 3.833mA, Deep Sleep 2.6uA (this is the default set up)
Clock Set Up 2 ... Wake 1.447mA, Sleep 1.270mA, Deep Sleep 2.6uA
Wake, Sleep and Deep Sleep timers remained accurate during power mode transitions.
Further checks on default clock set up 1 and the RTC is usable on this MCU. RTC Clock source is generated in the MCU and not from an external source whereas the FRDM-KL25Z RTC is clocked from the SWD interface MCU. This results in loss of RTC timing on reset along with the inconvenience of feeding an external RTC clock source on stand alone MCU configurations.
The external 32kHz crystal remains in operation during Sleep and Deep Sleep modes. RTC registers and timing continue on a hardware reset so time accuracy is not lost.
The only issue I have so far is the compiler appears not to be very well optimised, an identical program on the KL05Z used 23k compared with 16k on the LPC812 MCU.
Further tests and I have found the RTC to keep very good time, +3 seconds over 24 hours on my board where the crystal runs at 32.770kHz. This is much the same as the LPC1768 RTC module. Another observation and I find that the RTC registers doe not reset when SWD downloading, timing remains accurate only resetting when power is cycled.