<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Adding timestamp to data saved using littleFS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114491/adding-timestamp-to-data-saved-using-littlefs</link><description>Hello, 
 For context, I am using an EVK-ANNA-B112 development board which has an nRF52832 inside. The development board has an external 32.768KHz HW clock connected to the XL_1 and XL_2 pins. I use this external clock for timing UART and enable this using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Sep 2024 21:44:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114491/adding-timestamp-to-data-saved-using-littlefs" /><item><title>RE: Adding timestamp to data saved using littleFS</title><link>https://devzone.nordicsemi.com/thread/502199?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2024 21:44:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1a44a99-5d7e-4f78-b501-7ff758dd6e14</guid><dc:creator>Crisvin_K</dc:creator><description>&lt;p&gt;Hello Sigurd,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Based on this, for my board the best option was to do a time sync with the CTS service and count time from the sync with k_uptime_get().&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for the recommendation!&lt;/p&gt;
&lt;p&gt;Crisvin K.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding timestamp to data saved using littleFS</title><link>https://devzone.nordicsemi.com/thread/501330?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2024 10:54:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8641eb1-79c9-42e0-9038-74fa58129751</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I recommend having a look at Zephyrs docs about &lt;a href="https://docs.zephyrproject.org/latest/kernel/timeutil.html"&gt;Time Utilities&lt;/a&gt;. &lt;br /&gt;Also, searching through zephyr samples I find this:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1725533639319v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;(We got zephyr samples available in NCS too).&lt;/p&gt;
&lt;p&gt;Try this sample and see if it does what you need.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>