RTC capacitor settings bug?

cancel
Showing results for 
Search instead for 
Did you mean: 

RTC capacitor settings bug?

Jump to solution
314 Views
williamely
Contributor IV

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?

Tags (2)
0 Kudos
1 Solution
98 Views
williamely
Contributor IV

Thanks Sol,

I figured it out. PEx takes care of it in CPU_Init.c.

View solution in original post

0 Kudos
3 Replies
98 Views
soledad
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
99 Views
williamely
Contributor IV

Thanks Sol,

I figured it out. PEx takes care of it in CPU_Init.c.

View solution in original post

0 Kudos
98 Views
soledad
NXP Employee
NXP Employee

Hello William,

Thank you for sharing your solution.

Regards

Sol

0 Kudos