<?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>[DFU] Opening file failed : Application file not found. On NRF connect smartphone, ZIP file is not found while it is present.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65895/dfu-opening-file-failed-application-file-not-found-on-nrf-connect-smartphone-zip-file-is-not-found-while-it-is-present</link><description>Hello, 
 A few weeks ago I created a bootloader project from the Nordic documentation: devzone.nordicsemi.com/.../getting-started-with-nordics-secure-dfu-bootloader I installed the NRF connect app on smartphone (android 7.0) and it worked fine. Using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Sep 2020 17:07:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65895/dfu-opening-file-failed-application-file-not-found-on-nrf-connect-smartphone-zip-file-is-not-found-while-it-is-present" /><item><title>RE: [DFU] Opening file failed : Application file not found. On NRF connect smartphone, ZIP file is not found while it is present.</title><link>https://devzone.nordicsemi.com/thread/269730?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2020 17:07:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e24de2ea-534a-45df-8ade-5ae1956ee95f</guid><dc:creator>Cedric M</dc:creator><description>&lt;p&gt;It&amp;#39;s all right. DFU works again.&lt;/p&gt;
&lt;p&gt;I tested on smartphone and desktop PC with nrf connect. It&amp;#39;s only space introduced by windows script that is not supported by python parameters, that corrupted zip file.&lt;/p&gt;
&lt;p&gt;Thanks for your quick support&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Cedric&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [DFU] Opening file failed : Application file not found. On NRF connect smartphone, ZIP file is not found while it is present.</title><link>https://devzone.nordicsemi.com/thread/269714?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2020 14:53:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49a2d32d-3366-4317-8865-787ef9fbb51d</guid><dc:creator>Cedric M</dc:creator><description>&lt;p&gt;I solve problem by adding :~0,-1 between %% of variable path&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [DFU] Opening file failed : Application file not found. On NRF connect smartphone, ZIP file is not found while it is present.</title><link>https://devzone.nordicsemi.com/thread/269700?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2020 14:28:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3765a4c-aaf6-4ddd-8a7c-a0c895648003</guid><dc:creator>Cedric M</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;For the &amp;quot;space&amp;quot; caracter added to file name, I think I find the reason.&lt;/p&gt;
&lt;p&gt;I run batch script on windows. I write batch with parameters like path of hex file (because I have several hex to manage). In my batch, I verify each command by an echo, and all is right.&lt;/p&gt;
&lt;p&gt;Then, these parameter have a native &amp;quot;invisible&amp;quot; space on variable (find in forum cmd / batch), but when use by windows, the &amp;quot;space&amp;quot; is automatically removed, then I not see it (ex with echo).&lt;/p&gt;
&lt;p&gt;However, if the variable is passed to nrf_util, the space is conserved because it is a python script and not a windows management. I supposed the file extension (hex) is replaced (into python script) by BIN and DAT extension and the extra space is keeped.&lt;/p&gt;
&lt;p&gt;So,&lt;/p&gt;
&lt;p&gt;- in .json file, there is space because it is generated by python script&lt;/p&gt;
&lt;p&gt;- in windows file system, the space is automatically removed ! (I test it by adding manually space, it is not possible, windows remove it immediately).&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Cedric&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [DFU] Opening file failed : Application file not found. On NRF connect smartphone, ZIP file is not found while it is present.</title><link>https://devzone.nordicsemi.com/thread/269566?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2020 08:26:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7c22d5b-7060-4614-8803-eb02ad16a468</guid><dc:creator>Cedric M</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span title=""&gt;Yes indeed there is a space after .bin and .dat in .json file &lt;span class="" title=""&gt;(I had indeed not seen it)&lt;/span&gt;, but the files do not have spaces, it is very surprising.&lt;/span&gt;&lt;br /&gt;&lt;span title=""&gt;I manually deleted the spaces and re-zip.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;br /&gt;&lt;span class="" title=""&gt;It doesn&amp;#39;t work any better, but the file opening error is gone.&lt;/span&gt;&lt;br /&gt;&lt;span title=""&gt;I therefore have 2 questions:&lt;/span&gt;&lt;br /&gt;&lt;span class="" title=""&gt;- where does this space come from because the script only has the .hex and the .zip as input (and there is no space), the .bin and .dat are not managed by me (but&lt;/span&gt; &lt;span class="" title=""&gt;directly by nrf_util)?&lt;/span&gt;&lt;br /&gt;&lt;span class="" title=""&gt;- even if I remove the space, the download does not start, what can happen? In the log, the message is &amp;quot;[DFU] wait(600)&amp;quot;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;Regards,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [DFU] Opening file failed : Application file not found. On NRF connect smartphone, ZIP file is not found while it is present.</title><link>https://devzone.nordicsemi.com/thread/269531?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2020 07:12:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57766e5d-c08a-466e-b72f-7643004daaa4</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;If you open the manifest.zip file inside, you can see that the file names contain a space at the end.&amp;nbsp; Check if your script does not contain any spaces there, you may also try to removing the spaces manually and replace the manifest.json file with the modified one.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="json"&gt;{
    &amp;quot;manifest&amp;quot;: {
        &amp;quot;application&amp;quot;: {
            &amp;quot;bin_file&amp;quot;: &amp;quot;Periphs_nrf51822_xxaa.bin &amp;quot;,
            &amp;quot;dat_file&amp;quot;: &amp;quot;Periphs_nrf51822_xxaa.dat &amp;quot;
        }
    }
}
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [DFU] Opening file failed : Application file not found. On NRF connect smartphone, ZIP file is not found while it is present.</title><link>https://devzone.nordicsemi.com/thread/269449?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2020 15:20:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:509cb40a-cbbb-40ae-8bc2-29c5a61f73b7</guid><dc:creator>Cedric M</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;- First, I start nrf connect (on android) and power on the board with SD and DFU&lt;/p&gt;
&lt;p&gt;- in scanner tab, my board appear and I connect to them&lt;/p&gt;
&lt;p&gt;- the DFU button appear&lt;/p&gt;
&lt;p&gt;- I push button and a menu appear to &amp;quot;select file type&amp;quot;, I choose &amp;quot;Distribution packet (zip)&amp;quot;&lt;/p&gt;
&lt;p&gt;- I select the zip file and click &amp;quot;open&amp;quot;&lt;/p&gt;
&lt;p&gt;- I have the log file that tell : &amp;quot;[DFU] Opening file failed.........&amp;quot;&lt;/p&gt;
&lt;p&gt;See attached zip file.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Cedric&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/app_5F00_dfu_5F00_package_5F00_Periphs.zip"&gt;devzone.nordicsemi.com/.../app_5F00_dfu_5F00_package_5F00_Periphs.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [DFU] Opening file failed : Application file not found. On NRF connect smartphone, ZIP file is not found while it is present.</title><link>https://devzone.nordicsemi.com/thread/269432?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2020 14:27:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2ac02a6-e369-4799-8fa1-063da5e9fa4a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Milleret,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you please clarify, can you open the .zip file you created using nRF Connect on Android or nRF Toolbox on Android ?&lt;/p&gt;
&lt;p&gt;Please attach the file you create here as well.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>