We are using FRDM-KL25Z evaluation board. I am using CW 10.3 with PE. I added a RTC component using PE. What I did is just kept RTC keep time counting on. My intension is to get the current RTC time at some instant. So I call the function RTC_GetTime(RTC1_DeviceData, rtc) which is suppose to return second, minute, hour, date, day, month, year values and stores into a rtc object. However, when I am running this code in debug mode(using OpenSDA USB), and at point where it executes the function RTC_GetTime(RTC1_DeviceData, rtc), the code stops at an unknown interrupt,
PE_ISR(Cpu_Interrupt)//code stops
{
/* This code can be changed using the CPU component property "Build Options / Unhandled int code" */
PE_DEBUGHALT();
}
I did automatic initialize rtc device, and called rtc_enable() function as well.
Can anyone provide a possible solution for this?
Thanks in advance.
已解决! 转到解答。
Hello,
by default, Processor Expert is creating one handler for all unassigned interrupts. I suggest that you use 'own handler for every' (see Oh my! An Interrupt… | MCU on Eclipse) so you know what is causing your interrupt.
Hi Anand,
were you able to solve your RTC problem?
i have encountered with a similar problem need to do what Erich told.
if you did solve your problem with RTC on FRDM-KL25 pls help me out
Hello,
by default, Processor Expert is creating one handler for all unassigned interrupts. I suggest that you use 'own handler for every' (see Oh my! An Interrupt… | MCU on Eclipse) so you know what is causing your interrupt.