RTC capacitor settings bug?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RTC capacitor settings bug?

Jump to solution
976 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
Reply
1 Solution
760 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
Reply
3 Replies
760 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
Reply
761 Views
williamely
Contributor IV

Thanks Sol,

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

0 Kudos
Reply
760 Views
soledad
NXP Employee
NXP Employee

Hello William,

Thank you for sharing your solution.

Regards

Sol

0 Kudos
Reply