<?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 Signature error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66618/dfu-signature-error</link><description>I have been struggling to get the DFU in our own application to work. When starting a DFU from the desktop nRF Connect 3.4.1 it reports an error: 
 
 According to the log from the secure bootloader it fails during Signature check. I have followed all</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Feb 2021 12:41:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66618/dfu-signature-error" /><item><title>RE: DFU Signature error</title><link>https://devzone.nordicsemi.com/thread/292212?ContentTypeID=1</link><pubDate>Mon, 01 Feb 2021 12:41:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f49ef03-7e2b-485f-8858-5aa23db02e61</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi RMV,&lt;/p&gt;
&lt;p&gt;I think we can continue this in the other tread thread here: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/71120/ecdsa-nrf52832-uecc-secure-bootloader"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/71120/ecdsa-nrf52832-uecc-secure-bootloader&lt;/a&gt;. We generally recommend building the uECC library externally using the existing Makefiles.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Signature error</title><link>https://devzone.nordicsemi.com/thread/292066?ContentTypeID=1</link><pubDate>Sat, 30 Jan 2021 18:17:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea5b15fb-0dd4-4144-a739-4f5339030184</guid><dc:creator>RVM</dc:creator><description>&lt;p&gt;Hi Vidar&lt;/p&gt;
&lt;p&gt;Thanks for the explanations so far.&lt;/p&gt;
&lt;p&gt;I have a few quick follow up questions:&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp; Are these extra defines for building the external uECC or do they also have to be included when building the bootloader.&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp; We are developing with the nRF52832 which I believe contains the hardware FP unit.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can/Should I use FLOAT_ABI_HARD or is the use of the FLOAT_ABI_SOFT mandatory for the uECC build?&lt;/p&gt;
&lt;p&gt;3.&amp;nbsp; What role does this definition &amp;quot;uECC_SUPPORT_COMPRESSED_POINT=0&amp;quot; play in the build?&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is it mandatory? If so, and it is not defined, will the validation fail?&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;RMV&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Signature error</title><link>https://devzone.nordicsemi.com/thread/272936?ContentTypeID=1</link><pubDate>Mon, 05 Oct 2020 10:52:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1876aa22-4a2e-4bd1-9ca5-3a3fb248dcf4</guid><dc:creator>navman</dc:creator><description>&lt;p&gt;Resolved using IAR Toolchain:&lt;/p&gt;
&lt;p&gt;I got it working also using the IAR Toolchain. I missed some of the defines, when I ported it from gcc make file. So&amp;nbsp; I put in these defines in the IAR project:&lt;/p&gt;
&lt;p&gt;FLOAT_ABI_SOFT&lt;br /&gt;uECC_ENABLE_VLI_API=0&lt;br /&gt;uECC_OPTIMIZATION_LEVEL=3&lt;br /&gt;uECC_SQUARE_FUNC=0&lt;br /&gt;uECC_SUPPORT_COMPRESSED_POINT=0&lt;br /&gt;uECC_VLI_NATIVE_LITTLE_ENDIAN=1&lt;/p&gt;
&lt;p&gt;and it works as expected.&lt;/p&gt;
&lt;p&gt;Thanks for your support Vidar Berg.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Signature error</title><link>https://devzone.nordicsemi.com/thread/272900?ContentTypeID=1</link><pubDate>Mon, 05 Oct 2020 08:56:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb9da85d-ce93-4066-92aa-cfacd5b0005c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the update! We have not tested or verified uECC with the IAR toolchain. But did you remember to build with uECC_VLI_NATIVE_LITTLE_ENDIAN=1? The bootloader expects it to be little endian.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Signature error</title><link>https://devzone.nordicsemi.com/thread/272788?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2020 16:16:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9531436c-5cf1-49e0-bdf9-82a1fdd16871</guid><dc:creator>navman</dc:creator><description>&lt;p&gt;Resolved:&lt;/p&gt;
&lt;p&gt;I rebuild the micro ecc library using the gcc compiler instead of IAR, but needed to add&amp;nbsp;-gdwarf-3 compile flag in the makefile in order to debug the application with c-spy in IAR ARM Workbench. Now it works :-). I will investigate what is missing in my micro ECC library project in IAR and update this thread in case other needs this information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Signature error</title><link>https://devzone.nordicsemi.com/thread/272733?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2020 12:42:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:053b35af-a317-44ac-8207-0ed1f7adb856</guid><dc:creator>navman</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;Yes I have rebuild the secure_bootload after replaced the public key with my own generated one.&lt;/p&gt;
&lt;p&gt;I have just tested the example uisng the precompiled hex file and that works also with the other secure_dfu_test_images avaialble in the SDK, so something is seems to be wrong with my secure_bootloader when building it uisng IAR Workbench.&lt;/p&gt;
&lt;p&gt;Can it be related to the micro-ecc library which I have to rebuild in IAR ARM workbench to make it work (IAR compalins about som debug.info when build the libarry using the build_all.bat)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Signature error</title><link>https://devzone.nordicsemi.com/thread/272722?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2020 12:09:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a8fca80-d26d-41b4-b400-4e8145fff3bd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It sounds like you have done everything correctly, so not sure why it&amp;#39;s failing. Just to make sure, earlier when you used your own key-pair, did you remember to re-build the bootloader with the new public key?&lt;/p&gt;
&lt;p&gt;Also, I tested DFU with the pre-compiled bootloader from SDK 15.0.0 just now, but did not get a signature verification error. Here&amp;#39;s how I tested it:&lt;/p&gt;
&lt;p&gt;1. Program bootloader hex in&amp;nbsp;&amp;quot;C:\vidar\workspace\nRF5_SDK_15.0.0_a53641a\examples\dfu\secure_bootloader\pca10040_ble_debug\hex\ &amp;nbsp; with nrfjprog: nrfjprog --program &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4426.secure_5F00_bootloader_5F00_ble_5F00_s132_5F00_pca10040_5F00_debug.hex"&gt;devzone.nordicsemi.com/.../4426.secure_5F00_bootloader_5F00_ble_5F00_s132_5F00_pca10040_5F00_debug.hex&lt;/a&gt; --chiperase -r&lt;/p&gt;
&lt;p&gt;2. Performed dfu with the &amp;quot; &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6153.ble_5F00_app_5F00_buttonless_5F00_dfu_5F00_without_5F00_bonds_5F00_s132.zip"&gt;devzone.nordicsemi.com/.../6153.ble_5F00_app_5F00_buttonless_5F00_dfu_5F00_without_5F00_bonds_5F00_s132.zip&lt;/a&gt;&amp;quot; package in \examples\dfu\secure_dfu_test_images\ble\nrf52832&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Signature error</title><link>https://devzone.nordicsemi.com/thread/272695?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2020 10:43:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60ba806f-47f4-412a-86ca-e9ed81ae7cc5</guid><dc:creator>navman</dc:creator><description>&lt;p&gt;Update:&lt;/p&gt;
&lt;p&gt;I have tested the example &amp;quot;secure_bootloader_ble_s132_pca10040_debug - nrf52832_xxaa_s132 from the SDK15, with same results. I think I am missing something basic here, since I assume the examples works &amp;quot;out of the box&amp;quot;. Here is the log from the SDK 15 example when performing a DFU with file &amp;quot;bootloader_secure_ble_debug_without_bonds_s132.zip&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0245.log.txt"&gt;devzone.nordicsemi.com/.../0245.log.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>