<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Why does SysTimeRtcSet not set the clock on a Pi 4</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c089e00106/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c089e00106/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/c089e00106/</id><updated>2025-06-27T14:12:36.787000Z</updated><subtitle>Recent posts to Why does SysTimeRtcSet not set the clock on a Pi 4</subtitle><entry><title>Why does SysTimeRtcSet not set the clock on a Pi 4</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c089e00106/?limit=25#1a0a" rel="alternate"/><published>2025-06-27T14:12:36.787000Z</published><updated>2025-06-27T14:12:36.787000Z</updated><author><name>DavidBo</name><uri>https://forge.codesys.com/u/davidbo/</uri></author><id>https://forge.codesys.coma233dc61d584fec92c41c9d517e525a33fb58d54</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="nt"&gt;temp&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;DT_TO_DWORD&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;newTD&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="nt"&gt;result&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;SysTimeRtcSet&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;ulTimestamp&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;DWORD_TO_WORD&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;temp&lt;/span&gt;&lt;span class="o"&gt;));&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;the result=0 which mean ok but the clock is not set&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>