I know this thread is a couple of months old, but I have found a way to get the RTC working properly without needing to swap crystals, etc. By default, there is no link between the internal 32K reference and the RTC clock input HOWEVER it is possible to route the internal 32K out to PTC3 and bring it back in on the RTC clock input on PTC1.
You can configure the required settings in Codewarrior/Processor Expert on the CPU component (in expert mode) as follows:
- set RTC Clock Input to "Enabled". This sets PTC1 as an input for a clock source.
- set MCGIRCLK source to "slow" in "Clock Source Settings" > "Clock Source Setting 0" > "Internal Reference Clock"
- set ERCLK32K Clock Source to "RTC Clock Input" in "Clock Source Settings" > "Clock Source Setting 0" > "External Reference Clock"
- Enable "CLKOUT pin control" in "Internal Peripherals" > "System Integration Module"
- set "CLKOUT pin" to "PTC3/LLWU_P7/..."
- Set "CLKOUT pin output" to "MCGIRCLK"
- This routes the internal 32K reference oscillator out to pin PTC3
On the RTC, set the "Clock Source" to "ERCLK32K".
And don't forget to put a wire link between PTC1 and PTC3 :smileyhappy:
Low and behold, you have an internally-sourced 32K signal to run the RTC on the Freedom board without needing any external devices or needing to change any crystals.