<?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>Facing errors related to sd card after a time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111792/facing-errors-related-to-sd-card-after-a-time</link><description>I integrated the sd card code into my main code in which the the wifi module (nrf5340 + nrf7002) receives uart data from a different device What I need to do is that whenever the wifi gets disconnected I need to write (save) the data into the sd card</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Jun 2024 10:52:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111792/facing-errors-related-to-sd-card-after-a-time" /><item><title>RE: Facing errors related to sd card after a time</title><link>https://devzone.nordicsemi.com/thread/488087?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 10:52:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f78f345d-a0b7-4d7d-9f0e-60733db235e8</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you check what IO voltages the sd card supports?&lt;/p&gt;
&lt;p&gt;The nRF7002DK supports 1.8V on the GPIOs, I guess and maybe the sd card uses 3.3V so this can be a problem.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing errors related to sd card after a time</title><link>https://devzone.nordicsemi.com/thread/487928?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 13:08:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3d23c35-c1d8-4aac-a936-9e2fa1fbf2e2</guid><dc:creator>Rakshita</dc:creator><description>&lt;p&gt;Yes I had 2 cards tried to use both of them&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing errors related to sd card after a time</title><link>https://devzone.nordicsemi.com/thread/487917?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 12:45:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99db0093-86d4-4b85-9fe7-75accc026c02</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Have you tried using a different sd card, just to rule out the sd card problem?&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing errors related to sd card after a time</title><link>https://devzone.nordicsemi.com/thread/487828?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 06:19:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce868338-b6ae-4ad9-aa43-ae9334e909cd</guid><dc:creator>Rakshita</dc:creator><description>&lt;p&gt;Actually what happens is sometimes it works very smoothly and sometimes after working for sometimes it suddenly starts giving this timeout related error and failed to open the file&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;[00:00:15.659,393] &amp;lt;inf&amp;gt; home_demo: Data is the same as the last written data. Skipping write.&lt;br /&gt;[00:00:15.659,423] &amp;lt;inf&amp;gt; home_demo: cloud value: 2&lt;br /&gt;[00:00:16.659,515] &amp;lt;inf&amp;gt; home_demo: data received: 1&lt;br /&gt;[00:00:16.669,860] &amp;lt;inf&amp;gt; home_demo: Read total 1919 bytes from file /SD:/testfile.txt&lt;/p&gt;
&lt;p&gt;[00:00:16.671,752] &amp;lt;inf&amp;gt; home_demo: Data is the same as the last written data. Skipping write.&lt;br /&gt;[00:00:16.671,783] &amp;lt;inf&amp;gt; home_demo: cloud value: 2&lt;br /&gt;[00:00:17.671,844] &amp;lt;inf&amp;gt; home_demo: data received: 1&lt;br /&gt;[00:00:17.682,067] &amp;lt;inf&amp;gt; home_demo: Read total 1919 bytes from file /SD:/testfile.txt&lt;/p&gt;
&lt;p&gt;[00:00:17.683,959] &amp;lt;inf&amp;gt; home_demo: Data is the same as the last written data. Skipping write.&lt;br /&gt;[00:00:17.683,990] &amp;lt;inf&amp;gt; home_demo: cloud value: 2&lt;br /&gt;[00:00:18.684,051] &amp;lt;inf&amp;gt; home_demo: data received: 1&lt;br /&gt;[00:00:18.694,213] &amp;lt;inf&amp;gt; home_demo: Read total 1919 bytes from file /SD:/testfile.txt&lt;/p&gt;
&lt;p&gt;[00:00:18.696,105] &amp;lt;inf&amp;gt; home_demo: Data is the same as the last written data. Skipping write.&lt;br /&gt;[00:00:18.696,136] &amp;lt;inf&amp;gt; home_demo: cloud value: 2&lt;br /&gt;[00:00:19.696,594] &amp;lt;inf&amp;gt; home_demo: data received: 1&lt;br /&gt;[00:00:21.289,855] &amp;lt;inf&amp;gt; home_demo: UART_RX_BUF_RELEASED&lt;br /&gt;[00:00:21.289,855] &amp;lt;inf&amp;gt; home_demo: UART_RX_BUF_RELEASED&lt;br /&gt;[00:00:21.289,886] &amp;lt;inf&amp;gt; home_demo: UART_RX_DISABLED&lt;br /&gt;[00:00:31.180,816] &amp;lt;inf&amp;gt; home_demo: UART_RX_BUF_RELEASED&lt;br /&gt;[00:00:31.180,847] &amp;lt;inf&amp;gt; home_demo: UART_RX_BUF_RELEASED&lt;br /&gt;[00:00:31.180,847] &amp;lt;inf&amp;gt; home_demo: UART_RX_DISABLED&lt;br /&gt;[00:00:41.073,211] &amp;lt;inf&amp;gt; home_demo: UART_RX_BUF_RELEASED&lt;br /&gt;[00:00:41.073,242] &amp;lt;inf&amp;gt; home_demo: UART_RX_BUF_RELEASED&lt;br /&gt;[00:00:41.073,272] &amp;lt;inf&amp;gt; home_demo: UART_RX_DISABLED&lt;br /&gt;[00:00:42.926,300] &amp;lt;err&amp;gt; sd: Failed to read from SDMMC -5&lt;br /&gt;[00:00:42.926,361] &amp;lt;err&amp;gt; sd: Card read failed&lt;br /&gt;[00:00:42.926,391] &amp;lt;err&amp;gt; fs: file read error (-5)&lt;br /&gt;Error reading from file /SD:/testfile.txt [-5]&lt;br /&gt;[00:00:50.965,911] &amp;lt;inf&amp;gt; home_demo: UART_RX_BUF_RELEASED&lt;br /&gt;[00:00:50.965,942] &amp;lt;inf&amp;gt; home_demo: UART_RX_BUF_RELEASED&lt;br /&gt;[00:00:50.965,972] &amp;lt;inf&amp;gt; home_demo: UART_RX_DISABLED&lt;br /&gt;[00:00:54.978,851] &amp;lt;err&amp;gt; sd: Failed to read from SDMMC -5&lt;br /&gt;[00:00:54.978,851] &amp;lt;err&amp;gt; sd: Card read failed&lt;br /&gt;[00:00:54.978,881] &amp;lt;err&amp;gt; fs: file open error (-5)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing errors related to sd card after a time</title><link>https://devzone.nordicsemi.com/thread/487669?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 09:13:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c5ec2f0-a5ce-435a-a2a5-f9a1946e848f</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Rakshita,&lt;/p&gt;
&lt;p&gt;Could you verify whether your sd card is formatted and working correctly? Maybe verify this by using the sd card in another device.&amp;nbsp;&lt;br /&gt;This is just because the error&amp;nbsp;&lt;span&gt;SDMMC -116 may suggest a sd card issue or that the sd card is not accessed properly.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Priyanka&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing errors related to sd card after a time</title><link>https://devzone.nordicsemi.com/thread/487378?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2024 18:16:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c42fe095-998b-49e9-9b2a-a65fb15d34de</guid><dc:creator>Rakshita</dc:creator><description>&lt;p&gt;Thanks for your reply&lt;br /&gt;But I am not using flash partition in my overlay file&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing errors related to sd card after a time</title><link>https://devzone.nordicsemi.com/thread/487321?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2024 12:33:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a850c2f-5fd3-46bf-ac9c-e2e09ea813fe</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please take a look at this ticket:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/96568/file-write-gives--5-after-file-size-reaches-cache-size?ReplyFilter=Answers&amp;amp;ReplySortBy=Answers&amp;amp;ReplySortOrder=Descending"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/96568/file-write-gives--5-after-file-size-reaches-cache-size?ReplyFilter=Answers&amp;amp;ReplySortBy=Answers&amp;amp;ReplySortOrder=Descending&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The issue could be due to the size as mentioned in the ticket.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>