RTC capacitor settings bug?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

RTC capacitor settings bug?

跳至解决方案
1,560 次查看
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?

标记 (2)
0 项奖励
回复
1 解答
1,344 次查看
williamely
Contributor IV

Thanks Sol,

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

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,344 次查看
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 项奖励
回复
1,345 次查看
williamely
Contributor IV

Thanks Sol,

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

0 项奖励
回复
1,344 次查看
soledad
NXP Employee
NXP Employee

Hello William,

Thank you for sharing your solution.

Regards

Sol

0 项奖励
回复