Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: Peculiar behavior when running the TimeTeensy3 example

  1. #1
    Junior Member
    Join Date
    Jan 2021
    Posts
    9

    Peculiar behavior when running the TimeTeensy3 example

    Hi!

    When I run the TimeTeensy3 example by pressing the Reset button I get the output:

    RTC has set the system time
    15:09:25 22 11 2021
    15:09:26 22 11 2021
    15:09:27 22 11 2021
    15:09:28 22 11 2021
    15:09:29 22 11 2021
    15:09:30 22 11 2021

    However, when power is reconnected the output is:

    RTC has set the system time
    0:00:00 1 1 2019
    0:00:01 1 1 2019
    0:00:02 1 1 2019
    0:00:03 1 1 2019
    0:00:04 1 1 2019

    The TimeTeensy3 example is found under: arduino-1.8.16>hardware>teensy>avr>libraries>Time>examples

    Is it an easy way to fix the problem?

    //Göran

  2. #2
    Senior Member BriComp's Avatar
    Join Date
    Apr 2014
    Location
    Cheltenham, UK
    Posts
    464
    Teensy does not have a reset button, only program button.

  3. #3
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    9,421
    Quote Originally Posted by Cr2O7 View Post
    Is it an easy way to fix the problem?
    Yes, add a battery.

  4. #4
    Junior Member
    Join Date
    Jan 2021
    Posts
    9
    Sry, forgot to mention I am using Teensy 4.1 and pressing the button whatever you prefer to call it.

  5. #5
    Senior Member
    Join Date
    Jul 2020
    Posts
    1,365
    Repeat: Its not a reset button, it doesn't perform a reset. It forces the Teensy into programming mode.

    To quote from the T4.1 product page:
    Reset
    Teensy 4.1 does not have a hardware reset signal available. Reset can be accomplished under software control using the watchdog timers or SCB_AIRCR register.
    This is confusing if you are used to Arduinos, I know.

    The Vbat pin (on the right-angle row of 5 pads across the board - see pinout card) requires a coin cell for the real time clock to function.
    A separate 32.768 kHz crystal is used for the Real Time Clock (RTC). If a coin cell is added to VBAT, the 32.768 kHz oscillator continues keeping date/time while main power is off.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •