<?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>How to correctly re-start the SD Card interface (SPI)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110897/how-to-correctly-re-start-the-sd-card-interface-spi</link><description>Hey all, 
 I&amp;#39;m working on a project where data gets written to an SD Card regularly. At reset, power to 3.3V to the SD card is activated and all runs relatively well. 
 I&amp;#39;d like to be able to turn off the SD card power when the system is not logging,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Dec 2024 01:39:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110897/how-to-correctly-re-start-the-sd-card-interface-spi" /><item><title>RE: How to correctly re-start the SD Card interface (SPI)</title><link>https://devzone.nordicsemi.com/thread/514822?ContentTypeID=1</link><pubDate>Fri, 13 Dec 2024 01:39:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c17533f-2f47-47e7-99d9-bc519fbc0111</guid><dc:creator>Albert_0</dc:creator><description>&lt;p&gt;Hi Julio,&lt;/p&gt;
&lt;p&gt;I went the lazy way and just reset and restart the board. Basically:&lt;/p&gt;
&lt;p&gt;- If the board has a BLE connection it logs data onto the SD Card.&lt;/p&gt;
&lt;p&gt;- If the board loses BLE connection while logging, everything still works&lt;/p&gt;
&lt;p&gt;- If data logging is turned off and BLE is connected, all peripherals are running waiting to re-start logging&lt;/p&gt;
&lt;p&gt;- If no logging or BLE connection is present, the board does a complete reset after 1 minute and waits for a new BLE connection.&lt;/p&gt;
&lt;p&gt;Not very elegant, but it works for us, and once the BLE connection is off and no logging is happening the board does consume very little after the reset.&lt;/p&gt;
&lt;p&gt;Sorry I could not be of more help.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Alberto&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly re-start the SD Card interface (SPI)</title><link>https://devzone.nordicsemi.com/thread/514795?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2024 15:49:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a7b59f9-2113-4b5f-bc95-39980b842753</guid><dc:creator>Juls</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;Alberto, I would like to know if it was possible for you to make it work?. I need to&amp;nbsp;do the same process but I can&amp;#39;t find&amp;nbsp;how&amp;nbsp;to reset the SD without restarting the complete board.&lt;br /&gt;If you have information I would appreciate it very much.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;Regards,&lt;br /&gt;Julio.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly re-start the SD Card interface (SPI)</title><link>https://devzone.nordicsemi.com/thread/482190?ContentTypeID=1</link><pubDate>Tue, 07 May 2024 07:56:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89649d1c-7f04-4431-9be0-aac4ff1499e1</guid><dc:creator>Albert_0</dc:creator><description>&lt;p&gt;Hi Kenneth, thanks for your answer.&lt;/p&gt;
&lt;p&gt;I will try both solutions in the next few days, from what I read it seems there isn&amp;#39;t a more elegant way in Zephyr to restart the SD card SPI interface from scratch during runtime.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Unfortunately I&amp;#39;m quite new to Zephyr, so trying to follow what happens between the firmware and the hardware is still a challenge for me.&lt;/p&gt;
&lt;p&gt;I will let you know how it goes.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Alberto&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly re-start the SD Card interface (SPI)</title><link>https://devzone.nordicsemi.com/thread/482000?ContentTypeID=1</link><pubDate>Mon, 06 May 2024 11:40:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff56dba8-5a1c-430e-9d3c-5f5a4cfea6ac</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Normally you use the power management api to put a device into suspend/resume state:&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/test_and_optimize/optimizing/power_general.html#put_the_external_flash_into_sleep_mode_in_inactivity_periods"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/test_and_optimize/optimizing/power_general.html#put_the_external_flash_into_sleep_mode_in_inactivity_periods&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If that does not achieve what you want, I can find someone did a &amp;quot;hack&amp;quot; here:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/91157/optimizing-power-of-sd-card-problem"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/91157/optimizing-power-of-sd-card-problem&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>