<?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>FatFs and SD-Card: Read Request not finishing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84391/fatfs-and-sd-card-read-request-not-finishing</link><description>Hi, we are using the nRF52 DK (nRF52832) to read data from the i2s bus and store it as a wave-file on the connected SD-Card. When pressing button 1 on the DK, recording starts. When button 1 is pressed again, recording stops and the file should be closed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Feb 2022 14:53:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84391/fatfs-and-sd-card-read-request-not-finishing" /><item><title>RE: FatFs and SD-Card: Read Request not finishing</title><link>https://devzone.nordicsemi.com/thread/352390?ContentTypeID=1</link><pubDate>Thu, 10 Feb 2022 14:53:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bb1221b-75ae-4738-b071-6b6b46607b6d</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;In my experience, it should be rather straight forward to transfer from 16.0.0. to 17.0.2. &lt;br /&gt;So I would try just copying first.&lt;/p&gt;
&lt;p&gt;However, if there are errors using this method, they could be quite hard to track down. &lt;br /&gt;In such a case, it would likely be faster to start from scratch in the newer SDK.&lt;br /&gt;So if facing errors, I would not spend too much time on the debugging and just start from scratch(or from an example).&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FatFs and SD-Card: Read Request not finishing</title><link>https://devzone.nordicsemi.com/thread/352364?ContentTypeID=1</link><pubDate>Thu, 10 Feb 2022 13:50:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af4db681-6811-4b3f-ac07-34b0aa610825</guid><dc:creator>Moritz_S</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;we also had the problem you mentioned above earlier, it might be of help in the future. However, we now found that our code (developed using SDK 17.0.0) is working when we compile it using SDK 16.0.0 and Segger emStudio 4.52. Other combinations (e.g. SDK 16.0.0 and emStudio 4.18 or SDK 17.0.2 and emStudio 4.52/ 5.42 etc.) do not work. Honetly, I have no clue why, my guess it that different versions of emStudio come with different toolchains (even though the GNU version is always 4.2.1).&amp;nbsp;&lt;br /&gt;&lt;br /&gt;For us, the problem is solved for now, but we might have to port our code to a newer SDK version later on. Do you have a best practise for that, like starting from scratch using an example project included in the newer SDK?&lt;br /&gt;&lt;br /&gt;Thank you and regards!&lt;br /&gt;Moritz&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FatFs and SD-Card: Read Request not finishing</title><link>https://devzone.nordicsemi.com/thread/351737?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 10:29:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abb191f9-12e7-44d4-a3ad-688137a8f169</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Good to hear you made it work for 17.0.0&lt;/p&gt;
&lt;p&gt;Could this be the same issue as in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/48318/multiple-definition-of-uarte0_uart0_irqhandler"&gt;this case&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FatFs and SD-Card: Read Request not finishing</title><link>https://devzone.nordicsemi.com/thread/351700?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 08:49:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09492ecf-5dde-470c-add5-f66d46e2b3d9</guid><dc:creator>Moritz_S</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;br /&gt;I was able to make the fatfs example work with SDK 17.0.0 - I only had to change &amp;quot;#define NRF_SPI_DRV_MISO_PULLUP_CFG 1&amp;quot; in my sdk_config.h to &amp;quot;#define NRF_SPI_DRV_MISO_PULLUP_CFG 3&amp;quot;. However, the same, updated sdk_config.h file does not work with SDK 17.1.0, it&amp;#39;s crashing during built with the error being: &amp;quot;&amp;#39;NRFX_UARTE0_INST_IDX&amp;#39; undeclared here (not in a function); did you mean &amp;#39;NRFX_UARTE_INSTANCE&amp;#39;?&amp;quot; occuring in nrfx_uarte.h, line 87.&lt;br /&gt;&lt;br /&gt;I will now try to run my own code now also with SDK 17.0.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FatFs and SD-Card: Read Request not finishing</title><link>https://devzone.nordicsemi.com/thread/351359?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 14:08:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe536bd4-cffa-416f-950b-a9bf48fb8bee</guid><dc:creator>Moritz_S</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;thanks for your suggestions.&lt;br /&gt;&lt;br /&gt;We are powering the SD-Card via the DK&amp;#39;s VDD as described &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v13.0.0%2Fapp_sdcard_example.html" rel="noopener noreferrer" target="_blank"&gt;here&lt;/a&gt;. Since I can write a txt-file from within my application, I guess powering the sd-card is not the issue (or could the size of the data written change that?)&lt;/p&gt;
&lt;p&gt;I&amp;#39;m working on the SD-Card example right now. However, I&amp;#39;m suddenly getting a hard fault error (see screenshot). I will continue working on it and get back to you.&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/4774.hardFault.png" /&gt;&lt;br /&gt;&lt;br /&gt;The link you shared provided some good info, I call&amp;nbsp;f_sync(&amp;amp;file) before closing the file now (before running nrf_drv_i2s_stop() in the code above). This keeps fatfs from freezing however, f_lseek(&amp;amp;file, 4) now returns&amp;nbsp;&lt;span&gt;FR_DISK_ERR.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FatFs and SD-Card: Read Request not finishing</title><link>https://devzone.nordicsemi.com/thread/351319?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 12:19:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:908330c1-b74c-4f11-886d-2e94d261bf64</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Here are a few suggestions to start:&lt;/p&gt;
&lt;p&gt;I know the sample is SPI, but are you able to make our &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/app_sdcard_example.html?cp=5_1_4_6_34"&gt;FatFS/SD Card example&lt;/a&gt; work with your SD card?&lt;br /&gt;Evt are you able to reproduce the issue by modifying this sample?&lt;/p&gt;
&lt;p&gt;How are you powering the SD Card? If you are not using external power, I would suggest to try this. &lt;br /&gt;I guess this is not the issue, but it is worth a shot.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/47660/sdcard-busy-after-several-writes/189708#189708"&gt;This case&lt;/a&gt; seems a bit similar to yours. Does it help you?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>