<?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: Copy a big file: Neither the shell command nor the custom code work</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Copy-a-big-file-Neither-the-shell-command-nor-the-custom-code/m-p/359298#M11733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please try disabling cache for avoid influence of this feature?&lt;/P&gt;&lt;P&gt;Please add _DCACHE_DISABLE(); command into task prior you call _io_nandflash_wl_install().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Mar 2015 13:17:12 GMT</pubDate>
    <dc:creator>RadekS</dc:creator>
    <dc:date>2015-03-06T13:17:12Z</dc:date>
    <item>
      <title>Copy a big file: Neither the shell command nor the custom code work</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Copy-a-big-file-Neither-the-shell-command-nor-the-custom-code/m-p/359293#M11728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on a Kinetis K70 and use MQX 4.1.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an external NandFlash and an USB key connected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mount the Nandflash and USB on a System file (like in exemple)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then with Shell command, I can read both disk (a: for NandFlash, c: for USB)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I copy file from one to the other without any problem (For small file)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I try with a big file (512Kbytes) the copy (take some time) and then the copied file is bad, size is "0".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try with the following custom code (which is an extract of Shell_Copy command) but the result is same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14234793173585933" jivemacro_uid="_14234793173585933" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; MQX_FILE_PTR in_fd&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; NULL;
 MQX_FILE_PTR out_fd &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; NULL;
 MFS_DATE_TIME_PARAM FileDate;&amp;nbsp; 
 int32_t ReadSize&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 8pt;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;
 int32_t WriteSize &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 8pt;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;
 int32_t copysize&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 8pt;"&gt;8192&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;
 uint16_t DateValue;
 uint16_t TimeValue;&amp;nbsp; 
 &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #000080; font-size: 8pt;"&gt;char&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; copybuffer &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; NULL;
 
 &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 8pt;"&gt;/* Open source file */&lt;/EM&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 in_fd &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;STRONG&gt;fopen&lt;/STRONG&gt;(SourcePtr, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"r"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; (in_fd &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;==&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; NULL)
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 &lt;STRONG&gt;printf&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"CT_USB_CopyFile, source file not found: %s\n"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, SourcePtr);
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;return&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 
 &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 8pt;"&gt;/* Open destination file */&lt;/EM&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 out_fd &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;STRONG&gt;fopen&lt;/STRONG&gt;(DestPtr, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"w"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; (in_fd &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;==&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; NULL)
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 &lt;STRONG&gt;printf&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"CT_USB_CopyFile, Dest file not found: %s\n"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, DestPtr);
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;return&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 8pt;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 
 &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 8pt;"&gt;/* Allocate Buffer */&lt;/EM&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;do&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 copybuffer &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;STRONG&gt;_mem_alloc&lt;/STRONG&gt;(copysize);
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; (copybuffer &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;!=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; NULL) &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;break&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;;
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;else&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; copysize &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&amp;gt;&amp;gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;while&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; (copysize &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&amp;gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 8pt;"&gt;512&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);
 
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; (copybuffer &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;==&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; NULL)
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 &lt;STRONG&gt;printf&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"CT_USB_CopyFile: Warning, unable to allocate copy buffer\n"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; );
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;return&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 8pt;"&gt;3&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);
 &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 8pt;"&gt;/* Shell code use a slower method in this case... */&lt;/EM&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;else&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; 
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;do&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; 
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 ReadSize &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;STRONG&gt;read&lt;/STRONG&gt;(in_fd, copybuffer, copysize);
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; (ReadSize &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 8pt;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) 
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 WriteSize &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;STRONG&gt;write&lt;/STRONG&gt;(out_fd, copybuffer, ReadSize);
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;else&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;break&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;;
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;while&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; (WriteSize &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;==&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; ReadSize);
 &lt;STRONG&gt;fflush&lt;/STRONG&gt;(out_fd);
 &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 8pt;"&gt;/* Set File Date/Time */&lt;/EM&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 FileDate&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;DATE_PTR &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp;DateValue;
 FileDate&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;TIME_PTR &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp;TimeValue;
 &lt;STRONG&gt;ioctl&lt;/STRONG&gt;(in_fd, IO_IOCTL_GET_DATE_TIME,(uint32_t &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;*&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;amp;FileDate);
 &lt;STRONG&gt;ioctl&lt;/STRONG&gt;(out_fd, IO_IOCTL_SET_DATE_TIME,(uint32_t &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;*&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;amp;FileDate);
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; (copybuffer) &lt;STRONG&gt;_mem_free&lt;/STRONG&gt;(copybuffer);
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; (in_fd) &lt;STRONG&gt;fclose&lt;/STRONG&gt;(in_fd); 
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; (out_fd) &lt;STRONG&gt;fclose&lt;/STRONG&gt;(out_fd); 
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;return&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 8pt;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);
&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know why this not work? May be I must flush other then File only (&lt;STRONG&gt;fflush&lt;/STRONG&gt;(out_fd);&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 10:56:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Copy-a-big-file-Neither-the-shell-command-nor-the-custom-code/m-p/359293#M11728</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2015-02-09T10:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a big file: Neither the shell command nor the custom code work</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Copy-a-big-file-Neither-the-shell-command-nor-the-custom-code/m-p/359294#M11729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody have some idea?:smileyblush:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 10:22:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Copy-a-big-file-Neither-the-shell-command-nor-the-custom-code/m-p/359294#M11729</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2015-02-17T10:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a big file: Neither the shell command nor the custom code work</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Copy-a-big-file-Neither-the-shell-command-nor-the-custom-code/m-p/359295#M11730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I havn't success with my problem:smileycry:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 15:53:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Copy-a-big-file-Neither-the-shell-command-nor-the-custom-code/m-p/359295#M11730</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2015-02-24T15:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a big file: Neither the shell command nor the custom code work</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Copy-a-big-file-Neither-the-shell-command-nor-the-custom-code/m-p/359296#M11731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Does&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;someone can do&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a test with&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the example&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Shell&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to copy a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;large&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;file&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to an USB stick&lt;/SPAN&gt;? (With a K70 and MQX 4.1.1):smileygrin:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 10:26:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Copy-a-big-file-Neither-the-shell-command-nor-the-custom-code/m-p/359296#M11731</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2015-03-02T10:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Copy a big file: Neither the shell command nor the custom code work</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Copy-a-big-file-Neither-the-shell-command-nor-the-custom-code/m-p/359297#M11732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried replicating your case however everything works correctly on my side.&lt;/P&gt;&lt;P&gt;I combined mfs_usb and mfs_nandflash examples and copy 1MB file several times between USB stick and NAND flash at TWR-K70F120M board.&lt;/P&gt;&lt;P&gt;I just copy mfs_nandflash example code into shell_task.c file in mfs_usb example and made some small modifications (just one shell_task function, nandflash as “c:”). Additionally I add ffs library into project.&lt;/P&gt;&lt;P&gt;After build I was able load it into MCU and run.&lt;/P&gt;&lt;P&gt;I used commands “ffs_open”, “format” and “write” to create 1MB file.&lt;/P&gt;&lt;P&gt;After that I copy this file between disks “c:” (NAND flash) and “a:” (USB disk) several times - always without any problem.&lt;/P&gt;&lt;P&gt;Also read works correctly.&lt;/P&gt;&lt;P&gt;Note: I used IAR compiler and Debug target&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached my project (modified mfs_usb example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I do not see any obvious issue in your code. Everything seems to be correct.&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, 05 Mar 2015 16:19:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Copy-a-big-file-Neither-the-shell-command-nor-the-custom-code/m-p/359297#M11732</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2015-03-05T16:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a big file: Neither the shell command nor the custom code work</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Copy-a-big-file-Neither-the-shell-command-nor-the-custom-code/m-p/359298#M11733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please try disabling cache for avoid influence of this feature?&lt;/P&gt;&lt;P&gt;Please add _DCACHE_DISABLE(); command into task prior you call _io_nandflash_wl_install().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 13:17:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Copy-a-big-file-Neither-the-shell-command-nor-the-custom-code/m-p/359298#M11733</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2015-03-06T13:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a big file: Neither the shell command nor the custom code work</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Copy-a-big-file-Neither-the-shell-command-nor-the-custom-code/m-p/359299#M11734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the Late, I fully occupied on another subject.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try I think the next week and keep you informed.&lt;/P&gt;&lt;P&gt;Many tnahk:smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 16:15:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Copy-a-big-file-Neither-the-shell-command-nor-the-custom-code/m-p/359299#M11734</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2015-03-13T16:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Copy a big file: Neither the shell command nor the custom code work</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Copy-a-big-file-Neither-the-shell-command-nor-the-custom-code/m-p/359300#M11735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;I finally got to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;test today.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;But in fact, When I try with exactly the same soft, all run correctly now, I don't touch the code since my last post!:smileyblush:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Than Test with/without DCASH_DISABLE now will not be a good test today!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So all work correctly now (I don't know why), but if problem resurface again, I will test to disable cash!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank:smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 14:01:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Copy-a-big-file-Neither-the-shell-command-nor-the-custom-code/m-p/359300#M11735</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2015-03-19T14:01:00Z</dc:date>
    </item>
  </channel>
</rss>

