Skip to content
This repository has been archived by the owner on Jun 5, 2019. It is now read-only.

STM32F4 RTC support #359

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from
Open

STM32F4 RTC support #359

wants to merge 4 commits into from

Conversation

josesimoes
Copy link
Contributor

  • add support for hardware RTC of STM32F4
  • configuration follows available hardware options:
    • internal RC
    • external low power oscillator
    • external low power with oscillator bypass
  • the configuration is performed in platform_selector.h and tinybooter/tinyCLR proj files
  • one of the important changes is that (providing the RTC pin is properly powered) the mcu doesn't loose time between reboots (actually the boot code won't zero the RTC if there is a valid value in the RTC registers)
  • this was tested on a STM32F4 Discovery board fitted with a 32.768kHz crystal

@mbyamukama
Copy link

mbyamukama commented Jul 15, 2016

Thank you! Could you provide sample code for this? I am particularly interested in RTC interrupts as they are helpful in waking up the device from DeepSleep. Are they supported? Using the internal RC (native programming using C) sometimes causes the time to gradually drift off, sometimes upto 2s in a minute. Have you experienced this?

@josesimoes josesimoes mentioned this pull request Sep 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants