Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => iMX233 => Topic started by: RazZziel on November 28, 2012, 11:39:22 AM

Title: Saving date and time between reboots
Post by: RazZziel on November 28, 2012, 11:39:22 AM
My OLinuxino with ArchLinux resets the date and time when I disconnect it from the power supply and re-connect it again.

For my application, I need it to keep date and time for weeks without external power. I don't need the board to boot on battery, just to keep date and time for long periods of time powered off.

What can I do? Can I plug a small button battery like in the Beagleboard XM?
Title: Re: Saving date and time between reboots
Post by: olimex on December 20, 2012, 03:07:31 PM
you can use MOD-RTC
Title: Re: Saving date and time between reboots
Post by: RazZziel on December 20, 2012, 03:26:25 PM
I plan to use the UEXT port for other peripherals (i.e. MOD-GPS)

Besides, the OLinuXino-MAXI already has an RTC according to the manual. Can't I attach a RTC backup battery somewhere?
Title: Re: Saving date and time between reboots
Post by: IWriteCode on February 15, 2013, 03:56:09 PM
The manual ( http://www.freescale.com/files/dsp/doc/ref_manual/IMX23RM.pdf ) states:

QuoteA 32-bit second counter has enough resolution to count up to 136 years with one-second increments. The
RTC can continue to count time as long as a voltage is applied to the BATT pin, irrespective of whether
the rest of the chip is powered up. The normal digital reset has no effect on the master RTC registers
located in the crystal power and clock domain. A special first-power-on reset establishes the default value
of the master RTC registers when a voltage is first applied to the BATT pin (battery insertion).

So attaching a battery to the LIPO_BAT should fire things up...