<?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>Zephyr and nrf52840 capabilities</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97861/zephyr-and-nrf52840-capabilities</link><description>Hello, 
 
 I am working on a project using the nrf52840 chip on the Xiao nr52840 MCU. This can be connected through the SD card through the 2nd pin and was wondering if zephyr supports checking for remaining space on an SD card. or possibly using files</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Mar 2023 14:07:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97861/zephyr-and-nrf52840-capabilities" /><item><title>RE: Zephyr and nrf52840 capabilities</title><link>https://devzone.nordicsemi.com/thread/416582?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2023 14:07:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4e280ed-5b97-44e9-b8d0-3a78ce26b36c</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When using an SD card you&amp;#39;ll be using a file system such as &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/fs/littlefs/README.html"&gt;LittleFS&lt;/a&gt; or &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/fs/fat_fs/README.html"&gt;FATFS&lt;/a&gt;. Zephyr provides the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/services/file_system/index.html#file-system-api"&gt;file system API&lt;/a&gt; as an abstraction for these. It includes the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/services/file_system/index.html#c.fs_statvfs"&gt;fs_statvfs&lt;/a&gt;() function, which &amp;quot;returns the total and available space in the file system volume&amp;quot;.&lt;/p&gt;
&lt;p&gt;Regarding the LSM6DS3, Zephyr doesn&amp;#39;t have a fully fledged driver for this sensor but it does have something you could build on. See &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/88549/lsm6ds33-to-work-with-lsm6dso-driver/370915"&gt;RE: LSM6DS33 to work with LSM6DSO driver&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Unfortunately the RTC is disabled when going into System Off. Just like with &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/63510/how-to-keep-rtc-running-while-in-system-off-mode/258943"&gt;other&lt;/a&gt; &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/80420/could-nrf53-wake-up-from-system-off-mode-with-a-timer"&gt;devices&lt;/a&gt;, the nRF52840&amp;#39;s clocks are powered down when going into system off, so running the RTC isn&amp;#39;t possible. However, the nRF52840 can wake from system off based on &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/power.html?cp=5_0_0_4_2_2#unique_220399309"&gt;a handful of signals&lt;/a&gt;, so you could equip your board with an external RTC and use that to wake the MCU, probably using the DETECT signal.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>