Hi everyone,
I am working on a new project with the Teensy 4.1 and will need to use the Real Time Clock (RTC). This is my first time working with the RTC on this board.
I am developing my code in the PlatformIO IDE, using the Arduino framework for the Teensy. To test the RTC features, I wrote a simple program that reads the RTC's hours, minutes, and seconds every second and sends these values to the serial port. The code works fine, and I can see the time values in the terminal.
However, the displayed values show that the RTC starts at 0. According to the Teensy 4.1 information page (https://www.pjrc.com/store/teensy41.html), it states:
"Teensy Loader automatically initializes the RTC to your PC's time while uploading."
I expected the RTC to be initialized to the same date and time as my PC.
Did I misunderstand the Teensy documentation? Or is there a specific configuration required in the Teensy Loader to initialize the RTC to the PC's date and time?
Any advice or clarification would be greatly appreciated!
Thanks in advance for your help!
Math
I am working on a new project with the Teensy 4.1 and will need to use the Real Time Clock (RTC). This is my first time working with the RTC on this board.
I am developing my code in the PlatformIO IDE, using the Arduino framework for the Teensy. To test the RTC features, I wrote a simple program that reads the RTC's hours, minutes, and seconds every second and sends these values to the serial port. The code works fine, and I can see the time values in the terminal.
However, the displayed values show that the RTC starts at 0. According to the Teensy 4.1 information page (https://www.pjrc.com/store/teensy41.html), it states:
"Teensy Loader automatically initializes the RTC to your PC's time while uploading."
I expected the RTC to be initialized to the same date and time as my PC.
Did I misunderstand the Teensy documentation? Or is there a specific configuration required in the Teensy Loader to initialize the RTC to the PC's date and time?
Any advice or clarification would be greatly appreciated!
Thanks in advance for your help!
Math