<a data-toggle="collapse" data-target="#rtc_time_lost" aria-hidden="true">
RTC time lost
</a>
<div id="rtc_time_lost" class="collapse">
<div class="panel panel-default">
<div class="panel-body" markdown="1">

##Problem description

After setting the hardware RTC with the command:

<pre class="terminal">
# <b>hwclock -w</b>
</pre>

after just few minutes the RTC already lost seconds with the command:

<pre class="terminal">
# <b>hwclock -r</b>
</pre>

##Solution

This problem is due to an error in the AT91Bootstrap configuration. We missing to set this flag 
during the <i>make menuconfig</i> setup (see [Compile AT91Bootstrap](/compile_at91bootstrap)).

The right configuration is this:

	Slow Clock Configuration Options  --->
		[*] Use external 32KHZ oscillator as source of slow clock
		[ ]   Use external 32kHz clock as source of slow clock

You can re-compile the AT91Bootstrap following this article:

* [Compile AT91Bootstrap](/compile_at91bootstrap)


<br>
or simply change <b>boot.bin</b> in the first partition of microSD with
the binaries file available on the [same page](./compile_at91bootstrap) 

</div>
</div>
</div>
