Peculiar behavior when running the TimeTeensy3 example

Cr2O7

Member
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
 
Sry, forgot to mention I am using Teensy 4.1 and pressing the button whatever you prefer to call it.
 
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.
 
Back
Top