<?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 EXECUTE code 4 failed . Result code 5</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51088/dfu-execute-code-4-failed-result-code-5</link><description>I&amp;#39;m trying to send a DFU file but i get en error: 
 2019-08-16T16:11:40.300Z DEBUG Destroying DFU transport. 2019-08-16T16:11:40.300Z ERROR DFU failed with error: When writing &amp;#39;EXECUTE&amp;#39; command to Control Point Characteristic of DFU Target: Operation</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Aug 2019 13:08:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51088/dfu-execute-code-4-failed-result-code-5" /><item><title>RE: DFU EXECUTE code 4 failed . Result code 5</title><link>https://devzone.nordicsemi.com/thread/205332?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 13:08:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10f9c344-4bea-4c2a-ad5f-6cf6237a2522</guid><dc:creator>HugMantas</dc:creator><description>&lt;p&gt;fixed by adding these flags to booloader Makefile&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CFLAGS&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;+=&lt;/span&gt;&lt;span&gt; -DuECC_ENABLE_VLI_API=0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CFLAGS&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;+=&lt;/span&gt;&lt;span&gt; -DuECC_OPTIMIZATION_LEVEL=3&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CFLAGS&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;+=&lt;/span&gt;&lt;span&gt; -DuECC_SQUARE_FUNC=0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CFLAGS&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;+=&lt;/span&gt;&lt;span&gt; -DuECC_SUPPORT_COMPRESSED_POINT=0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CFLAGS&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;+=&lt;/span&gt;&lt;span&gt; -DuECC_VLI_NATIVE_LITTLE_ENDIAN=1&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU EXECUTE code 4 failed . Result code 5</title><link>https://devzone.nordicsemi.com/thread/204925?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 07:49:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f07568a-a682-49b2-a6a5-5e23e764a7a1</guid><dc:creator>HugMantas</dc:creator><description>&lt;p&gt;Hi, Im using&amp;nbsp;nRF5_SDK_15.3.0_59ac345 (on NRF52840) with&amp;nbsp;s140_nrf52_6.1.1_softdevice.hex&lt;/p&gt;
&lt;p&gt;Im using the liker file&amp;nbsp; from&amp;nbsp;nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\ble_app_buttonless_dfu\pca10056\s140\armgcc&lt;/p&gt;
&lt;p&gt;i run the command&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nrfutil pkg generate --application _build/light_sense_LIGHT_SENSE_V2_release.hex --application-version 1 --hw-version 14 --sd-req 0xb6 --key-file ../../hug_c_libraries/nordic/components/dfu/hug_dfu_public_key.pem \&lt;/p&gt;
&lt;p&gt;and it compiles and creates the dfu zip.&lt;/p&gt;
&lt;p&gt;im using nrf connect tool to upload the dfu&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0511.Capture.PNG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;i have also attached bootloader linker file&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/secure_5F00_bootloader_5F00_gcc_5F00_nrf52_5F00_release.ld"&gt;devzone.nordicsemi.com/.../secure_5F00_bootloader_5F00_gcc_5F00_nrf52_5F00_release.ld&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;let me know if i can provide any more information&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU EXECUTE code 4 failed . Result code 5</title><link>https://devzone.nordicsemi.com/thread/204844?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2019 15:48:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:232504d4-6364-415c-a906-390a8feb3d04</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What version of the nRF5 SDK is the bootloader based off of?&lt;/p&gt;
&lt;p&gt;What tool are you using for generating the DFU update, and what exact steps do you perform to do so?&lt;/p&gt;
&lt;p&gt;What tool are you using for performing the DFU, and what exact steps do you perform to do so?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU EXECUTE code 4 failed . Result code 5</title><link>https://devzone.nordicsemi.com/thread/204826?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2019 14:38:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cd7f292-0cab-4b37-9995-fc5ba4134e6c</guid><dc:creator>HugMantas</dc:creator><description>&lt;p&gt;I have double checked that the memory maps are correct (compared to the SDK example)&lt;br /&gt;I have generated new public key and recompiled with the new keys and regenerated new DFU app using the same key.&lt;br /&gt;Still get the same error&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>