<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>MQX Software Solutions中的主题 Re: MQX 4.2 Problem with finding a file on SDCard</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-2-Problem-with-finding-a-file-on-SDCard/m-p/425414#M14188</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Travis,&lt;/P&gt;&lt;P&gt;i am glad that it works now correctly.&lt;/P&gt;&lt;P&gt;Yes, it is possible that MFS in old version of MQX contained such bug and it was (unintentionally) fixed in reworked MFS code for MQX 4.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2015 12:16:53 GMT</pubDate>
    <dc:creator>RadekS</dc:creator>
    <dc:date>2015-05-21T12:16:53Z</dc:date>
    <item>
      <title>MQX 4.2 Problem with finding a file on SDCard</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-2-Problem-with-finding-a-file-on-SDCard/m-p/425411#M14185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was previously using MQX4.0 and my SDCard functions were all working fine. &lt;/P&gt;&lt;P&gt;We are trying to move to 4.2 and are finding a few issues we need to solve.&lt;/P&gt;&lt;P&gt;I need to be able to find a file on a SDCard, and the code used to work perfectly, but now it fails to find the file.&lt;/P&gt;&lt;P&gt;I'm able to create and write a separate file just fine after discovering not to flush the filesystem after writing.&lt;/P&gt;&lt;P&gt;Has the find file routine changed as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MQX_FILE_PTR fs_ptr = NULL;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; char filepath[] = "b:\\file*.s19";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MFS_SEARCH_DATA search_data;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MFS_SEARCH_PARAM search;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp; fs_ptr = _io_get_fs_by_name("b:");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; search.ATTRIBUTE = MFS_SEARCH_EXCLUSIVE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; search.WILDCARD =&amp;nbsp; (char_ptr)&amp;amp;filepath;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; search.SEARCH_DATA_PTR = &amp;amp;search_data;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if( ioctl( fs_ptr, IO_IOCTL_FIND_FIRST_FILE, (uint32_t *) &amp;amp; search ) == MFS_NO_ERROR )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBG_INFO( "Upgrade files found, waiting 30s for upgrade request" );&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBG_INFO( "No upgrade files found" );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 19:14:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-2-Problem-with-finding-a-file-on-SDCard/m-p/425411#M14185</guid>
      <dc:creator>t_k</dc:creator>
      <dc:date>2015-05-12T19:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.2 Problem with finding a file on SDCard</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-2-Problem-with-finding-a-file-on-SDCard/m-p/425412#M14186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Travis,&lt;/P&gt;&lt;P&gt;MFS in MQX4.2 was widely reworked in compare MFS in MQX 4.1.1&lt;/P&gt;&lt;P&gt;I tested your code at MQX 4.2 for file search at USB flash disk and it works correctly on my side.&lt;/P&gt;&lt;P&gt;Just be careful: You selected MFS_SEARCH_EXCLUSIVE, therefore result file has to be without any attributes.&lt;/P&gt;&lt;P&gt;When I created file in shell by command “write test1 500”, result file was with attribute ARCHIVE.&lt;/P&gt;&lt;P&gt;If you don’t care about attributes, please use MFS_SEARCH_ANY as parameter for search.ATTRIBUTE.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Archive.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/23620i5E2161711FD8B0EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Archive.png" alt="Archive.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Could you please specify closer your doubts about file search function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 13:13:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-2-Problem-with-finding-a-file-on-SDCard/m-p/425412#M14186</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2015-05-15T13:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.2 Problem with finding a file on SDCard</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-2-Problem-with-finding-a-file-on-SDCard/m-p/425413#M14187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you're right.&amp;nbsp; Changing from &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;MFS_SEARCH_EXCLUSIVE to MFS_SEARCH_ANY fixed the problem.&amp;nbsp; Since it had worked in 4.0 and 4.1, I never expected it to need to be changed for 4.2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Travis&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 15:39:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-2-Problem-with-finding-a-file-on-SDCard/m-p/425413#M14187</guid>
      <dc:creator>t_k</dc:creator>
      <dc:date>2015-05-19T15:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.2 Problem with finding a file on SDCard</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-2-Problem-with-finding-a-file-on-SDCard/m-p/425414#M14188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Travis,&lt;/P&gt;&lt;P&gt;i am glad that it works now correctly.&lt;/P&gt;&lt;P&gt;Yes, it is possible that MFS in old version of MQX contained such bug and it was (unintentionally) fixed in reworked MFS code for MQX 4.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 12:16:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-2-Problem-with-finding-a-file-on-SDCard/m-p/425414#M14188</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2015-05-21T12:16:53Z</dc:date>
    </item>
  </channel>
</rss>

