<?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>low power mode and fatfs shutdown</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52259/low-power-mode-and-fatfs-shutdown</link><description>Hi, 
 
 We are trying to power optimise our device but in the sleep/powerdown mode we seem to be using much more power than expected. 
 I am seeing consumption of approx 330uA in this low power mode. 
 
 So I am now hunting for peripherals that have not</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Oct 2019 09:18:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52259/low-power-mode-and-fatfs-shutdown" /><item><title>RE: low power mode and fatfs shutdown</title><link>https://devzone.nordicsemi.com/thread/216097?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 09:18:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b113744-cfa4-4610-8c1d-6a1a6c90a162</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Sorry about the delayed answer.&lt;/p&gt;
&lt;p&gt;Valid sequence, which client should use:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;f_close()&lt;/b&gt; -&amp;gt;&amp;nbsp;&lt;b&gt;disk_uninitialize()&lt;/b&gt; -&amp;gt; optional SD supply shutdown.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: low power mode and fatfs shutdown</title><link>https://devzone.nordicsemi.com/thread/211174?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 09:44:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e042df3e-04e4-4325-9c17-425e751e51c7</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;I think you can ummount filesystems using the f_mount() call like....&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;//Ensure no mounted drives&lt;br /&gt; (void)f_mount(NULL, &amp;quot;0&amp;quot;, 1);&lt;br /&gt; (void)f_mount(NULL, &amp;quot;1&amp;quot;, 1);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We use this in our factory reset routine before partitioning with f_disk(), and making filesystems with f_mkfs() and finally labelling with f_setlabel().&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Its just I am used to using disks etc under an OS; where disk management is taking place in the background; you would sync/flush filesystems and unmount. On return from the unmount you know all housekeeping has been done in the background and the filesystems are intact.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: low power mode and fatfs shutdown</title><link>https://devzone.nordicsemi.com/thread/210967?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 13:47:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1fa70e1-e357-4e18-a475-bc26480c8bec</guid><dc:creator>Hakon</dc:creator><description>[quote user=""]But what is correct sequence to gracefully shutdown the filesystems and this sub-system?[/quote]
&lt;p&gt;&amp;nbsp;app_sdc_uninit() seems like a reasonable way to uninit the peripherals, and for unmounting the filesystems I think you can use the f_close() function in the fatfs API. I don&amp;#39;t think the filesystem is taken care of in app_sdc_uninit().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>