FRDMK64F PE project with fsl_rtc peripheral driver

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

FRDMK64F PE project with fsl_rtc peripheral driver

跳至解决方案
1,261 次查看
therealfreegeek
Contributor IV

The project is created with an entry in events.c for the RTC_seconds_IRQHandler, but it does not get triggered.

 

The "Enable seconds interrupt" checkbox is ticked.

 

Can you help with what needs to be changed in the component inspector to make this work?

 

 

From my events.c

 

/*

 

** ===================================================================

 

**     Interrupt handler : RTC_Seconds_IRQHandler

 

**

 

**     Description :

 

**         User interrupt service routine.

 

**     Parameters  : None

 

**     Returns     : Nothing

 

** ===================================================================

 

*/

 

 

void RTC_Seconds_IRQHandler(void)

 

/* Write your code here ... */


标签 (1)
0 项奖励
回复
1 解答
1,051 次查看
DavidS
NXP Employee
NXP Employee

Hi therealfreegeek,

I am testing with FRDM-K64F Rev C and D1 board and both of the KDS_3.0+KSDK_1.3 RTC examples are working for me meaning I can set a breakpoint in ISR and hit it.

C:\Freescale\KSDK_1.3.0\examples\frdmk64f\demo_apps\rtc_func\kds    set breakpoint in RTC_Seconds_IRQHandler, run application, enter "3" in terminal

C:\Freescale\KSDK_1.3.0\examples\frdmk64f\driver_examples\rtc\kds   set breakpoint in RTC_IRQHandler, run application, enter "3" then "Enter"

Are you using a terminal to control and select correct portion of application to run?

Regards,

David

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,051 次查看
therealfreegeek
Contributor IV

I also just had a look at the rtc_function_FRDMK64F demo example supplied in KSDK and found that the isr for the "RTC_Seconds_IRQHandler" is also never triggered?

Please advise.

0 项奖励
回复
1,052 次查看
DavidS
NXP Employee
NXP Employee

Hi therealfreegeek,

I am testing with FRDM-K64F Rev C and D1 board and both of the KDS_3.0+KSDK_1.3 RTC examples are working for me meaning I can set a breakpoint in ISR and hit it.

C:\Freescale\KSDK_1.3.0\examples\frdmk64f\demo_apps\rtc_func\kds    set breakpoint in RTC_Seconds_IRQHandler, run application, enter "3" in terminal

C:\Freescale\KSDK_1.3.0\examples\frdmk64f\driver_examples\rtc\kds   set breakpoint in RTC_IRQHandler, run application, enter "3" then "Enter"

Are you using a terminal to control and select correct portion of application to run?

Regards,

David

0 项奖励
回复
1,051 次查看
therealfreegeek
Contributor IV

Hi Dave, thanks for the tip, it turned out that option 4 on the demo version I have caused the interrupt to trigger. Inspecting the demo code indicated that I had missed a "method" needed to enable the interrupt, I had assumed that it was enabled during initialisation, my bad!

All is well after adding "RTC_DRV_SetSecsIntCmd(rtcTimer1_IDX, true);" to my code.

Just taking a bit of time to get used to the (all new to me) KDSK drivers after 8 years off from coding.

0 项奖励
回复