XMC4800 How enter in Hibernate mode?

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

cross mob
Not applicable
Hello, I have a XMC4800 Relax kit and I'd like to enter in hibernate mode in order to make power saving, but without success.
My goal is enter in hibernate mode and wakeup the XMC from the alarm of the internal RTC.
Bottom there is a part of my test, there is anything wrong because xmc4800 don't enter in hibernate mode..
can you help me?

Thank You


XMC_SCU_CLOCK_EnableLowPowerOscillator();
XMC_SCU_HIB_SetRtcClockSource(XMC_SCU_HIB_RTCCLKSRC_OSI);
XMC_RTC_Init(&rtc_config); // contains alarm settings
XMC_RTC_SetTime(&rtc_time);
XMC_RTC_EnableHibernationWakeUp(XMC_RTC_WAKEUP_EVENT_ON_ALARM);
XMC_SCU_HIB_ClearEventStatus(XMC_SCU_HIB_EVENT_WAKEUP_ON_RTC);
XMC_SCU_HIB_EnableEvent(XMC_SCU_HIB_EVENT_WAKEUP_ON_RTC);
XMC_SCU_RESET_ClearDeviceResetReason();
XMC_SCU_HIB_ClearWakeupEventDetectionStatus();

XMC_RTC_Start();

XMC_SCU_HIB_EnterHibernateState();

while(1);
0 Likes
3 Replies
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

The hibernate functionality (external control of regulator) is not supported by the board you are using.

Regards,
Jesus
0 Likes
Not applicable
Thank you for reply,
there is a way to put Xmc in Standby/Stop mode whith auto-wakeup (by RTC) without using external control of regulator?

Regards,
Luciano
0 Likes
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

Using the WFI/WFE you can put the system in SLEEP or DEEP_SLEEP modes.The interrupt generated by RTC will wake up the system.

Regards,
Jesus
0 Likes