XMC_SCU_HIB_SetRtcClockSource function access to NULL pointer

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User10709
Level 1
Level 1
hi,
i have a project with a xmc4400 which don't use a hibernate section and rtx_xtall. At start-up the system stay infinite loop inside at function XMC_SCU_HIB_SetRtcClockSource. The register MCU_GENERAL->MIRRSTS is not real!!
My Personal patch is check bit fixed inside of this register for determinate if is real or not. This is my patch:
/* API to select fRTC */
void XMC_SCU_HIB_SetRtcClockSource(const XMC_SCU_HIB_RTCCLKSRC_t source)
{
/*PATCH */
if ((SCU_GENERAL->MIRRSTS & 0x00000010) != 0)
return;

/* Wait until the update of HDCR register in hibernate domain is completed */
while((SCU_GENERAL->MIRRSTS) & SCU_GENERAL_MIRRSTS_HDCR_Msk)
{
}

Why do I have to do this?
I made some mistakes in the initialization?

Dave Version: 4.2.2

I await comments thanks.
0 Likes
4 Replies
Not applicable
We had the same issue and it turned out to be that the VBAT pin wasn't tied to 3.3v. Hope that helps.
0 Likes
User10709
Level 1
Level 1
Thanks KDogII !
0 Likes
User16023
Level 1
Level 1
Thanks KDogll.
Your solution very helpful for me.
0 Likes
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

Check as reference the XMC4000 - PCB Design Guidelines.

Regards,
Jesus
0 Likes