I've been looking through the MQX RTC driver and I can not see where it sets any SC bits in the RTC_CR register.
The RTC_SR register is not modified in Processor Expert either, no matter what I set the capacitance to.
The TWR-K64 board does not have the capacitors placed and the BSP does not change the RTC_CR register.
Is this a bug or am I missing something?
Solved! Go to Solution.
Hello William,
I suppose this is missing because it is a generic driver, I mean, it is the same driver for all the kinetis boards.
However you can modify this driver according your needs. The krtc.c file (C:\Freescale\Freescale_MQX_4_1\mqx\source\io\rtc) contains the (re)initializes/clears/enables RTC module functions so you can add that you need.
I will suggest this modification, thank you for your contribution.
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks Sol,
I figured it out. PEx takes care of it in CPU_Init.c.
Hello William,
Thank you for sharing your solution.
Regards
Sol