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.