<?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>Optimizing Power of sd card problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91157/optimizing-power-of-sd-card-problem</link><description>Hi, 
 In my project, I use SPIM4 to access sd card . It is worked well. Then ,I optimizing power of sd card. The power of my sd card is controlled by LDO.The LDO is enabled by P0.12. 
 When P0.12 output high level, LDO is enable.So SD card get the 3.3V</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 27 Aug 2022 08:22:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91157/optimizing-power-of-sd-card-problem" /><item><title>RE: Optimizing Power of sd card problem</title><link>https://devzone.nordicsemi.com/thread/383546?ContentTypeID=1</link><pubDate>Sat, 27 Aug 2022 08:22:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79669cb4-48e3-4f38-aa07-c284dcfdceb5</guid><dc:creator>zhangsenlin@micrstone.com</dc:creator><description>&lt;p&gt;Thanks ,It is work&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Optimizing Power of sd card problem</title><link>https://devzone.nordicsemi.com/thread/383444?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2022 10:46:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee7c34db-6970-4157-9df7-9378b9154f6e</guid><dc:creator>zhangsenlin@micrstone.com</dc:creator><description>&lt;p&gt;OK, I will try this using PM moudule,Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Optimizing Power of sd card problem</title><link>https://devzone.nordicsemi.com/thread/383416?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2022 08:53:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd9d6e86-5d49-4ff8-9baa-a4e36540e210</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;I don&amp;#39;t think this will be a problem as long as you make sure spi is initialized when you init fs again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Optimizing Power of sd card problem</title><link>https://devzone.nordicsemi.com/thread/383101?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2022 14:01:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:875180a5-2553-4a00-819b-5843b0a19d7c</guid><dc:creator>zhangsenlin@micrstone.com</dc:creator><description>&lt;p&gt;What I mean is, because of I am using the fs module of zephyr, and the fs module calls the disk_access module of zephyr, and disk_access calls the nrfx_spi driver, if I use the nrfx_spi underlying driver directly, will it affect the program logic of disk_access? I think it is dangerous to directly call the spi underlying driver.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Optimizing Power of sd card problem</title><link>https://devzone.nordicsemi.com/thread/383095?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2022 13:50:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a13d494e-550f-4fbc-9577-8432f338d7b4</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;It is still not clear to me exactly what your issue is.&lt;/p&gt;
&lt;p&gt;After you unmount and uninit spim4 you are unable to init it again?&lt;/p&gt;
&lt;p&gt;What is not working like you expect it to?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Optimizing Power of sd card problem</title><link>https://devzone.nordicsemi.com/thread/383088?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2022 13:36:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3202576a-9b2f-4d1c-8377-1983271cdfc3</guid><dc:creator>zhangsenlin@micrstone.com</dc:creator><description>&lt;p&gt;After I call fs_unmount(&amp;amp;mnt_pt), if I call spi4_unint directly, I can close spim4.&lt;/p&gt;
&lt;p&gt;But when I call fs_unmount(&amp;amp;mnt_pt) again, an error should be reported. Because the initial configuration of spim is performed at system startup.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Optimizing Power of sd card problem</title><link>https://devzone.nordicsemi.com/thread/383033?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2022 10:30:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71e14692-cc8e-49fb-9ae9-b497ac9e1b2c</guid><dc:creator>Einarh</dc:creator><description>[quote user="zhangsenlin@micrstone.com"]If I use directly spi dirver.I suppose that the sdmmc will not mount successfull again,beause the sdmmc finnally use spim4 dirver.[/quote]
&lt;p&gt;I&amp;#39;m not sure what you mean by this, could you please explain?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Optimizing Power of sd card problem</title><link>https://devzone.nordicsemi.com/thread/383016?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2022 08:54:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf89970e-48d1-4860-bce7-f14b6db549a6</guid><dc:creator>zhangsenlin@micrstone.com</dc:creator><description>&lt;p&gt;Yes, I am using nrfx SPIM driver. And you will see two figures below.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have used subsystem moudule &amp;quot;disk&amp;quot;, the zephyr dirver &amp;quot;disk&amp;quot; and the spi driver &amp;quot;spi_nrfx_spim&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1661328553353v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1661328587682v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;I disable the spim4 by to configure the spim4 register using vscode debug console.As shown below.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1661330857011v3.png" /&gt;&lt;/p&gt;
&lt;p&gt;If I use directly spi dirver.I suppose that the sdmmc will not mount successfull again,beause the sdmmc finnally use spim4 dirver.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Optimizing Power of sd card problem</title><link>https://devzone.nordicsemi.com/thread/382674?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2022 12:04:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:330d155f-e89e-4e3b-8de7-d3e58b03d5ae</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;Are you using the&amp;nbsp;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/hardware/peripherals/spi.html"&gt;Zephyr SPI driver&lt;/a&gt;&amp;nbsp;or the&amp;nbsp;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfx/drivers/spim/driver.html"&gt;nrfx SPIM driver&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;With the nrfx driver I believe you could use nrfx_spim_uninit()?&lt;/p&gt;
&lt;p&gt;You say you disabled SPIM4 and the problem was solved, what method did you use to disable SPIM4 in this case?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>