2020-02-18 02:47 PM
EDIT:
The main problem here is the initialization of the RTC clock.
Is there known problems with initializing the RTC clock within a TouchGFX project?
I'm having no luck with initializing the RTC in the context of TouchGFX.
ORIGINAL POST:
I'm working with the STM32F769I-DISCO board trying to get it to work with Standby Mode with RTC wake-up.
I downloaded an example project here which demonstrates the use of low power modes with this board.
I got it to do everything I want in this example program, but when I try to integrate it with my TouchGFX project, the RTC clock does not always initialize properly. The only way I can get the RTC to initialize properly is to first flash the working example project to the board, and then flash my ToughGFX project to the board. What might be the cause of this? Maybe the example project is changing some registers that I did not integrate into my TouchGFX project?
Any advice?
Thank you.
2020-02-19 10:42 PM
Updated the title with a more accurate representation of the problem.
2020-02-20 12:13 AM
So I found this piece of information in a driver file: stm32f7xx_hal_timebase_rtc_wakeup_template.c
HAL RTC alarm and HAL RTC wakeup drivers can’t be used with low power modes:
The wake up capability of the RTC may be intrusive in case of prior low power mode
configuration requiring different wake up sources.
Application/Example behavior is no more guaranteed
The stm32f7xx_hal_timebase_tim use is recommended for the Applications/Examples
requiring low power modes
So I guess that answers my ultimate question.
I'll try to find an alternate solution to using the RTC.