Erich,
After enabling the interrupts to every, it goes to the Cpu_ivINT_Hard_Fault. I read all your posts about tracking down a hard fault with no luck.
Yes, I am using the RTC module inside the chip. I am using the FRDM-KL25Z board. I don't see any power pins for the RTC. Am I missing something?
The clock gates are enabled.
It seems that the RTC is working because when I have a breakpoint set in the OnSecond event, I see it go there every second. When I add the printf to the code below is when I get the hard fault. Can you see what I am doing wrong?
LDD_TError Error;
LDD_TimeDate_TDateRec MyDate;
LDD_TimeDate_TTimeRec MyTime;
Error = TD1_GetTime(TD1_DeviceData, &MyTime); /* Get current time */
Error = TD1_GetDate(TD1_DeviceData, &MyDate); /* Get current date */
printf("Current hour is %d",MyTime.Hour);
Thanks,
Mike