<?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>Secure bootloader upload failed: UNKNOWN (8202)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16869/secure-bootloader-upload-failed-unknown-8202</link><description>Hi, 
 I&amp;#39;ve been trying to integrate the secure bootloader witrh SDK12 into my device, which had been working fine with the old bootloader and SDK11. 
 I&amp;#39;ve swapped everything over, and finally got the bootloader to boot into my application. The only</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Jul 2017 13:10:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16869/secure-bootloader-upload-failed-unknown-8202" /><item><title>RE: Secure bootloader upload failed: UNKNOWN (8202)</title><link>https://devzone.nordicsemi.com/thread/64615?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2017 13:10:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5390b6d-62a0-4f73-bbb3-870b9c881ebf</guid><dc:creator>Luccas</dc:creator><description>&lt;p&gt;Sorry for delay. Have you solved? You could try to use an earlier softdevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader upload failed: UNKNOWN (8202)</title><link>https://devzone.nordicsemi.com/thread/64617?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2017 07:07:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40725d44-616a-4aaa-8842-7eaa4a0efc21</guid><dc:creator>Gordon</dc:creator><description>&lt;p&gt;I used 0x8C but then I&amp;#39;m on an earlier softdevice (3.0.0). All my code is Open Source if you need to check: &lt;a href="https://github.com/espruino/Espruino"&gt;github.com/.../Espruino&lt;/a&gt; but I can&amp;#39;t help you out further. Perhaps one of the Nordic Employees would be able to help if you posted a new question - as it looks like they may not get notified for comments?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader upload failed: UNKNOWN (8202)</title><link>https://devzone.nordicsemi.com/thread/64618?ContentTypeID=1</link><pubDate>Sat, 08 Jul 2017 09:41:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fedc0275-cfaf-4b85-a686-4f92252e2072</guid><dc:creator>khan_khan</dc:creator><description>&lt;p&gt;as i am using 132_nrf52_5.0.0-1.alpha_softdevice so sq-req 0x9D must be used for that .you CAN CHECK your sd-req by using this command:
nrfutil pkg generate --help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader upload failed: UNKNOWN (8202)</title><link>https://devzone.nordicsemi.com/thread/64616?ContentTypeID=1</link><pubDate>Fri, 07 Jul 2017 21:05:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88dfdd4a-466f-49b1-8ae4-8dd89df6cba1</guid><dc:creator>Luccas</dc:creator><description>&lt;p&gt;I used --sd-req 0x8C in my case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader upload failed: UNKNOWN (8202)</title><link>https://devzone.nordicsemi.com/thread/64614?ContentTypeID=1</link><pubDate>Fri, 07 Jul 2017 19:43:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cc2a5d3-0237-4c47-b339-6f8f4aa0f546</guid><dc:creator>khan_khan</dc:creator><description>&lt;p&gt;i did everything according to your instructions. i am using nRF5_SDK_13.0.0-1.alpha_055eef3 ands132_nrf52_5.0.0-1.alpha_softdevice and used nRF5_SDK_13.0.0-1.alpha_055eef3\examples\dfu\bootloader_secure\pca10040\arm5_no_packs_build example for secure DFU using OTA . but everytime i try i get the same 8202 error when i use nRF toolbox app and &amp;quot;[DFU] Remote DFU error: REMOTE DFU OPERATION FAILED&amp;quot; when I use Nrf connect app . I  used following command .&lt;/p&gt;
&lt;p&gt;nrfutil pkg generate --hw-version 52 --application-version 1 --application nrf52832_xxaa_s132.hex --sd-req 0x9D --key-file my_secret_private_key.pem app_dfu_package.zip .&lt;/p&gt;
&lt;p&gt;But this zip package created doesnt upload . when i use the following command&lt;/p&gt;
&lt;p&gt;nrfutil dfu ble -f -pkg app_dfu_package.zip -ic NRF52&lt;/p&gt;
&lt;p&gt;i got this error&lt;/p&gt;
&lt;p&gt;pc_ble_driver_py.exceptions.NordicSemiException: Timeout. Target device not found.&lt;/p&gt;
&lt;p&gt;what should i do now ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader upload failed: UNKNOWN (8202)</title><link>https://devzone.nordicsemi.com/thread/64613?ContentTypeID=1</link><pubDate>Thu, 17 Nov 2016 14:46:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f798f4c-d538-4293-a4c7-9b950be3ca9b</guid><dc:creator>Luccas</dc:creator><description>&lt;p&gt;I was getting the same errors, fix it with this answer!
Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader upload failed: UNKNOWN (8202)</title><link>https://devzone.nordicsemi.com/thread/64612?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2016 14:20:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03ed6302-5815-4bc9-b640-32b87c17c9e6</guid><dc:creator>Gordon</dc:creator><description>&lt;p&gt;Right, thanks to Bjørn&amp;#39;s help outside the forum we&amp;#39;ve sorted this.&lt;/p&gt;
&lt;p&gt;It looks like 8202 is the Nordic App&amp;#39;s error code for InvalidObject, which in turn means the package couldn&amp;#39;t be verified, because of some key problem.&lt;/p&gt;
&lt;p&gt;You get much more information by trying to upload from your PC with&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfutil dfu ble -f -pkg you_package.zip
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In my case, the keys were fine. The issue was actually the compilation of micro-ecc, which requires the following definitions:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;-DuECC_ENABLE_VLI_API -DuECC_VLI_NATIVE_LITTLE_ENDIAN=1 -DuECC_SQUARE_FUNC=1 -DuECC_SUPPORTS_secp256r1=1 -DuECC_SUPPORT_COMPRESSED_POINT=0 -DuECC_OPTIMIZATION_LEVEL=3
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you were using Nordic&amp;#39;s provided toolchain you wouldn&amp;#39;t have this, but I was building myself with GCC and Makefiles, so I didn&amp;#39;t spot this buried in &lt;code&gt;external/micro-ecc/nrf52_armgcc/armgcc/Makefile&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Now when that is done, I succeeded in uploading one of the example hex files with the example public key, but I got &lt;code&gt;OperationFailed&lt;/code&gt; when uploading my own file.&lt;/p&gt;
&lt;p&gt;It turns out that when making the package with &lt;code&gt;nrfutil pkg generate&lt;/code&gt; you need to provide the correct hardware version &lt;code&gt;--hw-version 52&lt;/code&gt;. I&amp;#39;d been using &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader upload failed: UNKNOWN (8202)</title><link>https://devzone.nordicsemi.com/thread/64611?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2016 14:25:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a66a621-932d-4d2f-9244-f7c650729363</guid><dc:creator>parco</dc:creator><description>&lt;p&gt;Hi Gordon, I&amp;#39;m not sure if this will help, but I had this exact issue until I removed the --debug-mode flag and specified actual version requirements during the creation of the init package.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader upload failed: UNKNOWN (8202)</title><link>https://devzone.nordicsemi.com/thread/64610?ContentTypeID=1</link><pubDate>Fri, 07 Oct 2016 12:19:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:863a07d7-e85f-4a0d-97cb-ae8a1e735fc2</guid><dc:creator>Gordon</dc:creator><description>&lt;p&gt;Ok, same error when using the pre-built DFU hex file. I don&amp;#39;t seem to have the Nordic private key so I can&amp;#39;t test uploading a properly signed ZIP, but I&amp;#39;d kind of hoped that if that were the problem there would have been a more helpful error message.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader upload failed: UNKNOWN (8202)</title><link>https://devzone.nordicsemi.com/thread/64609?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2016 12:23:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48b87bb7-59f6-4b03-86c8-6a9a64738007</guid><dc:creator>Gordon</dc:creator><description>&lt;p&gt;8202 = 0x200A, which is NRF_ERROR_SOC_BASE_NUM+10... However there isn&amp;#39;t one of those (only errors up to 9). Maybe it&amp;#39;s something internal?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader upload failed: UNKNOWN (8202)</title><link>https://devzone.nordicsemi.com/thread/64608?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2016 15:03:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbc82581-43d0-4549-865c-df487f6e8271</guid><dc:creator>Gordon</dc:creator><description>&lt;p&gt;No, the device is staying in bootloader mode(in fact you can reconnect). So the fact that &lt;code&gt;bank_code&lt;/code&gt; is currently 0 won&amp;#39;t be an issue, as all being well the bootloader should just upload the binary and then overwrite it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader upload failed: UNKNOWN (8202)</title><link>https://devzone.nordicsemi.com/thread/64607?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2016 14:44:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3c23614-8e0d-4f0b-8f7e-a2d75c834be8</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Is the device resetting to the application when it disconnects or is it still in bootloader mode? If you want the bootloader to start the application without having to perform DFU, then yes, &lt;code&gt;s_dfu_settings.bank_0.bank_code&lt;/code&gt; must be set to &lt;code&gt;NRF_DFU_BANK_VALID_APP&lt;/code&gt; (i.e. 0x01). Yes, the bank code will be overwritten when you update the application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader upload failed: UNKNOWN (8202)</title><link>https://devzone.nordicsemi.com/thread/64606?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2016 13:24:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72221767-fa7f-49c6-9b8e-497ccbd65c01</guid><dc:creator>Gordon</dc:creator><description>&lt;p&gt;I&amp;#39;m using nRF toolbox, 1.18.4. nRF connect 4.5.0 just connects and for a few seconds and then disconnects without any warning. I haven&amp;#39;t tried the test images, but I&amp;#39;d imagine that they would be ok. Is it vital that &lt;code&gt;bank_0.bank_code&lt;/code&gt; is 1? I&amp;#39;d sort of assumed that all that info would get overwritten after a successful DFU?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader upload failed: UNKNOWN (8202)</title><link>https://devzone.nordicsemi.com/thread/64605?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2016 13:18:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90a851ef-6945-4ba8-8751-94f3e32a8c44</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Do you see the same behavior with the test images that are provided in the SDK? Which Android app are you using ( nRF COnnect or nRF Toolbox) and which version is it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader upload failed: UNKNOWN (8202)</title><link>https://devzone.nordicsemi.com/thread/64604?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2016 13:15:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b697827-fe36-4464-b33f-69e3e5bc8e2b</guid><dc:creator>Gordon</dc:creator><description>&lt;p&gt;Yes, it&amp;#39;s all SDK12. I have a merged image with an application that works, an a self-compiled secure bootloader that runs when power is applied with a button pressed. The issue I&amp;#39;m having is when I try to use that bootloader to upload a new application binary over BLE (also SDK12 - in fact identical to the firmware that&amp;#39;s already on there and working).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader upload failed: UNKNOWN (8202)</title><link>https://devzone.nordicsemi.com/thread/64603?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2016 13:07:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe9a5670-6720-420c-9e9d-30f29ff5de50</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Just to clarify: You&amp;#39;re not trying to update from the legacy bootloader from SDK v11 to the Secure bootloader from SDK v12? Your only trying to flash the Secure bootloader and an application as a merged image with the valid app flag set right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>