STM32L475RC RTC Issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-11-27 07:31 AM
Are there any known issues with the RTC Wakeup on the STM32L475?
I cannot get it to work, I've copied the code exactly as it appears in the STOP2_PWR example, but no matter what I do the ISR does not get called.
If I check the registers I can see the the wakeup timer has elapsed, the interrupt is enabled.
I'm totally at a loss here.
I did ask about a week ago, but have had no response.
- Labels:
-
RTC
-
STM32L4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-11-27 09:52 AM
ST Staff would need to be contacted via the FAE supporting your project, or the Online Support Request.
Not an area I've had cause to dig into at this point.
https://community.st.com/s/question/0D50X0000A1k8fJSQQ/halrtcexsetwakeuptimerit-issue-stm32l475rc
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-11-27 09:55 AM
Hi,
we’ve contacted our supplier to get fae support, I really am lost as to why this isn’t working. I have used the RTC wake up on other STM32 series without any problems, but this just refuses to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-12-03 06:06 AM
Hello Adrian,
I got the request from online support, so I update here to share with all.
The issue as I've seen is related to a regression in latest HAL RTC driver. A specific update was done to introduce STM32F412, and one line of code was changed for some reason:
You can see this in the code of HAL_RTCEx_SetWakeUpTimer_IT function:
__HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_IT
was replaced by
__HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_EVENT
So, when calling the the function HAL_PWREx_EnterSTOP2Mode you should give
PWR_STOPENTRY_WFE instead of PWR_STOPENTRY_WFI
I raised this regression to the development teams.
I'm sorry for the inconvenience.
Best regards
Jocelyn