<?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>DISK READ FAILURE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96981/disk-read-failure</link><description>Hi, 
 I am working on a project where MP3 files from SD card are fetched and played when play button is pressed. 
 I am configuring buttons as interrupt mode and when the button is pressed the play flag is set in the interrupt handler. 
 Also, a timer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Feb 2023 11:17:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96981/disk-read-failure" /><item><title>RE: DISK READ FAILURE</title><link>https://devzone.nordicsemi.com/thread/411930?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2023 11:17:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00ab064e-3f7a-4801-9cef-360ddcae6e56</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;I think we are not on the same page somehow.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/main/samples/subsys/fs/fat_fs/src/main.c"&gt;Here &lt;/a&gt;in the fat_fs sample source code, I do not see any function call to disk_read().&lt;/p&gt;
&lt;p&gt;Neither I find this function in the header / include files.&lt;/p&gt;
&lt;p&gt;Can you explain more please or let me know how to produce the error/problem you are facing.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DISK READ FAILURE</title><link>https://devzone.nordicsemi.com/thread/411828?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2023 07:05:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:733bff6c-0b39-471c-8909-d838ac99bd0a</guid><dc:creator>Shariff</dc:creator><description>&lt;p&gt;Thanks for your reply,&amp;nbsp;&lt;/p&gt;
[quote userid="119245" url="~/f/nordic-q-a/96981/disk-read-failure/411638"]I can see that in the disk_read() function you are explicitly setting the busy flag as true, and then calling nrf_blk_dev_read_req() function.[/quote]
&lt;p&gt;I am not setting it by my side rather it is already given in the code in fatfs example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DISK READ FAILURE</title><link>https://devzone.nordicsemi.com/thread/411638?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 11:52:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9e91519-219f-4c89-a335-71d3ab8bc2de</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi Ajmal,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for contacting DevZone at NordicSemi.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I can see that in the disk_read() function you are explicitly setting the busy flag as true, and then calling nrf_blk_dev_read_req() function.&lt;/p&gt;
&lt;p&gt;This function is used for block read request.&amp;nbsp;In synchronous mode this function will execute the read operation and wait for its completion.&lt;/p&gt;
&lt;p&gt;However, in an asynchronous mode the function will only request the operation and return immediately.&lt;/p&gt;
&lt;p&gt;Then, the&lt;span&gt;&amp;nbsp;NRF_BLOCK_DEV_EVT_BLK_READ_DONE&amp;nbsp;&lt;/span&gt;event will signal that operation has been completed and the specified buffer contains valid data.&lt;/p&gt;
&lt;p&gt;You should be checking this event and then resetting the flag.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>