<?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 DFU (APP, SD, BL) from SDK 15.3.0 to SDK 17.0.2 with VALIDATE_ECDSA_P256_SHA256</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76022/secure-dfu-app-sd-bl-from-sdk-15-3-0-to-sdk-17-0-2-with-validate_ecdsa_p256_sha256</link><description>Hi, I&amp;#39;m running a custom board with a custom example on SDK 15.3.0 using the SDK 15.3.0 Secure Bootloader and SoftDevice S112 V 6.1.1. The used nRF52832 is flashed with a bootloader-settings file created by the following command: 
 nrfutil settings generate</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Jun 2021 14:48:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76022/secure-dfu-app-sd-bl-from-sdk-15-3-0-to-sdk-17-0-2-with-validate_ecdsa_p256_sha256" /><item><title>RE: Secure DFU (APP, SD, BL) from SDK 15.3.0 to SDK 17.0.2 with VALIDATE_ECDSA_P256_SHA256</title><link>https://devzone.nordicsemi.com/thread/317054?ContentTypeID=1</link><pubDate>Thu, 24 Jun 2021 14:48:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5af771a-c9cf-495b-afba-9ba7a4a89d1d</guid><dc:creator>hannes</dc:creator><description>&lt;p&gt;Hi Amanda&lt;br /&gt;&lt;br /&gt;thank you very much! So it works with the bootloader without the debug feature and&amp;nbsp;&lt;span&gt;removing --sd-boot-validation VALIDATE_ECDSA_P256_SHA256 when creating the update package.&lt;br /&gt;&lt;br /&gt;It works also when the &amp;quot;old&amp;quot; bootloader was compiled without&amp;nbsp;NRF_BL_APP_SIGNATURE_CHECK_REQUIRED enabled ;-)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU (APP, SD, BL) from SDK 15.3.0 to SDK 17.0.2 with VALIDATE_ECDSA_P256_SHA256</title><link>https://devzone.nordicsemi.com/thread/316903?ContentTypeID=1</link><pubDate>Thu, 24 Jun 2021 09:01:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2715167c-0ca9-4374-bd41-c1a5aa3c7323</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Hannes,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try the bootloader without the debug feature? I have the same issue with&amp;nbsp;&lt;span&gt;the debug version, but another one without debug can work. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU (APP, SD, BL) from SDK 15.3.0 to SDK 17.0.2 with VALIDATE_ECDSA_P256_SHA256</title><link>https://devzone.nordicsemi.com/thread/316710?ContentTypeID=1</link><pubDate>Wed, 23 Jun 2021 11:54:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0ebb645-4ee7-4ff1-9dfe-35a5bf21c851</guid><dc:creator>hannes</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve removed &amp;quot;&lt;span&gt;-sd-boot-validation VALIDATE_ECDSA_P256_SHA256&amp;quot; from the nrfutil command when generating the update package.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;No matter if the old SDK 15.3.0 Bootloader was compiled with or without&amp;nbsp;NRF_BL_APP_SIGNATURE_CHECK_REQUIRED enabled the DFU process failes with the error &amp;quot;Connect timed out.&amp;quot; In both cases the board remains in a dead state as it doesn&amp;#39;t resume to it&amp;#39;s normal activity or DFU mode. Also after repowering or pressing the hardware DFU-button the board stays dead. The only way is to erase the board using the programmer. Attached you can find the logs with and without&amp;nbsp;NRF_BL_APP_SIGNATURE_CHECK_REQUIRED enabled for the old SDK 15.3.0 Bootloader.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1-_2D00_-CHECK_5F00_REQUIRED-_3D00_-1.txt"&gt;devzone.nordicsemi.com/.../1-_2D00_-CHECK_5F00_REQUIRED-_3D00_-1.txt&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2-_2D00_-CHECK_5F00_REQUIRED-_3D00_-0.txt"&gt;devzone.nordicsemi.com/.../2-_2D00_-CHECK_5F00_REQUIRED-_3D00_-0.txt&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU (APP, SD, BL) from SDK 15.3.0 to SDK 17.0.2 with VALIDATE_ECDSA_P256_SHA256</title><link>https://devzone.nordicsemi.com/thread/316406?ContentTypeID=1</link><pubDate>Tue, 22 Jun 2021 08:26:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b1da1d9-18b0-4de6-9388-d6c89f36fdd8</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Hannes,&lt;/p&gt;
&lt;p&gt;Sorry for the delay.&amp;nbsp;&lt;/p&gt;
[quote user=""]nrfutil pkg generate --hw-version 52 --application-version 1 --application app17.0.2.hex --sd-req 0x00B8 --sd-id 0x0103 --softdevice s112_nrf52_7.2.0_softdevice.hex --bootloader-version 1 --bootloader secure_bootloader_ble_s112_pca10040.hex --key-file private.key --app-boot-validation VALIDATE_ECDSA_P256_SHA256 --sd-boot-validation VALIDATE_ECDSA_P256_SHA256 dfu_update_app_sd_bl_15to17.zip[/quote]
&lt;p&gt;&lt;span&gt;Created the package with&amp;nbsp;&lt;/span&gt;&lt;em&gt;--app-boot-validation&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span&gt;only (remove --sd-boot-validation VALIDATE_ECDSA_P256_SHA256), the update should work fine. In&amp;nbsp;&lt;a title="Creating a firmware package with nrfutil" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_bootloader_dfu_validation.html?cp=8_1_3_5_1_1_1#lib_dfu_image"&gt;Creating a firmware package with nrfutil&lt;/a&gt;&amp;nbsp;section,&amp;nbsp;&lt;/span&gt;If you include both a bootloader and a SoftDevice in your firmware package, those two images will be merged together.&amp;quot; I think the bootloader treats the SD+BL as an application image, so&amp;nbsp;&lt;span&gt;--sd-boot-validation VALIDATE_ECDSA_P256_SHA256 might cause the error.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user="hannes"]How can I modify the page-alignment? The DFU Packages are generated with nrfutil.[/quote]
&lt;p&gt;I guess that error comes with the&amp;nbsp;Signature failed. If the package is only generated with &lt;em&gt;--app-boot-validation &lt;/em&gt;and work, this error will also go out.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU (APP, SD, BL) from SDK 15.3.0 to SDK 17.0.2 with VALIDATE_ECDSA_P256_SHA256</title><link>https://devzone.nordicsemi.com/thread/315381?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 12:08:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ace3cb2-3740-41ed-abff-909dbf39b920</guid><dc:creator>hannes</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;br /&gt;&lt;br /&gt;no, the provided logs were taken when&amp;nbsp;&lt;span&gt;NRF_BL_APP_SIGNATURE_CHECK_REQUIRED was set to 0 in the sdk_config.h of the old SDK 15.3.0 bootloader while updating to SDK17.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The SDK 15.3.0 bootloader settings were generated by:&lt;br /&gt;nrfutil settings generate --family NRF52 --application app.hex --application-version 0 --bootloader-version 0 --bl-settings-version 1 bootloader_settings.hex&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;When I set&amp;nbsp;NRF_BL_APP_SIGNATURE_CHECK_REQUIRED to 1 in the&amp;nbsp;sdk_config.h of the old SDK 15.3.0 bootloader while updating to SDK17 I&amp;#39;m getting the same error (see attached logfile).&lt;br /&gt;&lt;br /&gt;The SDK 15.3.0 bootloader settings were generated by:&lt;br /&gt;nrfutil settings generate --family NRF52 --application app.hex --application-version 0 --bootloader-version 0 --bl-settings-version 2 --app-boot-validation VALIDATE_ECDSA_P256_SHA256 --sd-boot-validation VALIDATE_ECDSA_P256_SHA256 --softdevice s112_nrf52_6.1.1_softdevice.hex --key-file private.key bootloader_settings.hex&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And, yes, the same SDK 15.3.0 bootloader with&amp;nbsp;NRF_BL_APP_SIGNATURE_CHECK_REQUIRED set to 1 performs SDK 15.3.0 APP-Updates (without SD and BL) without any problems.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/DFU_5F00_Log_5F00_APP_5F00_SD_5F00_BL-with-Signaturecheck-required.txt"&gt;devzone.nordicsemi.com/.../DFU_5F00_Log_5F00_APP_5F00_SD_5F00_BL-with-Signaturecheck-required.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How can I modify the page-alignment? The DFU Packages are generated with nrfutil.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU (APP, SD, BL) from SDK 15.3.0 to SDK 17.0.2 with VALIDATE_ECDSA_P256_SHA256</title><link>https://devzone.nordicsemi.com/thread/315334?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 09:23:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6725f77c-fa6b-44d8-bcf8-e40e739ddbf8</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Hannes,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From both logs, I see:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;lt;error&amp;gt; nrf_dfu_validation: Signature failed (err_code: 0x8542).&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Do you enable the&amp;nbsp;&lt;span&gt;NRF_BL_APP_SIGNATURE_CHECK_REQUIRED to 1 in the sdk_config.h of the old and new bootloaders while updating from SDK15.3 to SDK17?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;lt;error&amp;gt; nrf_dfu_req_handler: Object size must be page aligned&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The object size must be page-aligned. Usually, the object size is 4kB. It&amp;#39;s mentioned&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_dfu_transport.html?cp=7_1_3_5_2"&gt;here&amp;nbsp;&lt;/a&gt;in the error code.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="hannes"]After flashing the SDK 15.3.0 example works fine but the (APP, SD, BL) DFU to the SDK 17.0.2 still fails with the same error...[/quote]
&lt;p&gt;Do you mean the same &lt;span&gt;old SDK 15.3.0 bootloader with SIGNATURE_CHECK can update with&amp;nbsp;SDK 15.3.0 examples?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU (APP, SD, BL) from SDK 15.3.0 to SDK 17.0.2 with VALIDATE_ECDSA_P256_SHA256</title><link>https://devzone.nordicsemi.com/thread/314967?ContentTypeID=1</link><pubDate>Fri, 11 Jun 2021 15:48:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb24bb84-5812-488a-a1ea-85a4be9afee1</guid><dc:creator>hannes</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;updating only SD and BL with&amp;nbsp;&lt;span&gt;NRF_BL_APP_SIGNATURE_CHECK_REQUIRED failes with the same error. Attached you can find the RTT output of the _debug version for both cases.&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/DFU_5F00_Log_5F00_APP_5F00_SD_5F00_BL.txt"&gt;devzone.nordicsemi.com/.../DFU_5F00_Log_5F00_APP_5F00_SD_5F00_BL.txt&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/DFU_5F00_Log_5F00_SD_5F00_BL.txt"&gt;devzone.nordicsemi.com/.../DFU_5F00_Log_5F00_SD_5F00_BL.txt&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU (APP, SD, BL) from SDK 15.3.0 to SDK 17.0.2 with VALIDATE_ECDSA_P256_SHA256</title><link>https://devzone.nordicsemi.com/thread/314862?ContentTypeID=1</link><pubDate>Fri, 11 Jun 2021 09:09:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93324e2c-dc3d-4822-98a8-bf4fc1eccaa9</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Hannes,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you provide the log of bootloader with _debug version?&lt;/p&gt;
&lt;p&gt;Are you able to update SD and bootloader with&amp;nbsp;&lt;span&gt;SIGNATURE CHECK? Do you get the same error message?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU (APP, SD, BL) from SDK 15.3.0 to SDK 17.0.2 with VALIDATE_ECDSA_P256_SHA256</title><link>https://devzone.nordicsemi.com/thread/314108?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 08:09:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34f40213-0c05-4f92-80db-8de1e270c000</guid><dc:creator>hannes</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;I changed&amp;nbsp;&lt;span&gt;NRF_BL_APP_SIGNATURE_CHECK_REQUIRED to 1 in the sdk_config.h of the old SDK 15.3.0 bootloader and used the following command to generate the bootloader_settings.hex of the old SDK 15.3.0 project:&lt;br /&gt;&lt;br /&gt;nrfutil settings generate --family NRF52 --application app.hex --application-version 0 --bootloader-version 0 --bl-settings-version 2 --app-boot-validation VALIDATE_ECDSA_P256_SHA256 --sd-boot-validation VALIDATE_ECDSA_P256_SHA256 --softdevice s112_nrf52_6.1.1_softdevice.hex --key-file private.key bootloader_settings.hex&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After flashing the SDK 15.3.0 example works fine but the (APP, SD, BL) DFU to the SDK 17.0.2 still fails with the same error...&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU (APP, SD, BL) from SDK 15.3.0 to SDK 17.0.2 with VALIDATE_ECDSA_P256_SHA256</title><link>https://devzone.nordicsemi.com/thread/314091?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 07:39:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae4f5cc3-c509-41f2-b339-1892b2f3faa1</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Hannes,&amp;nbsp;&lt;/p&gt;
[quote user=""]So I changed NRF_BL_APP_SIGNATURE_CHECK_REQUIRED to 1 in the sdk_config.h of the new bootloader.[/quote]
&lt;p&gt;Try to set&amp;nbsp;&lt;span&gt;NRF_BL_APP_SIGNATURE_CHECK_REQUIRED to 1 in the sdk_config.h of the &lt;strong&gt;old&lt;/strong&gt; bootloader, and use the same command with&amp;nbsp;VALIDATE_ECDSA_P256_SHA256.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>