<?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>MCUBoot private key on nrf5340dk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86668/mcuboot-private-key-on-nrf5340dk</link><description>Hi, 
 I work with win10 laptop, Toolchain nrf Connect SDK 1.6.1 on a nrf5340dk. I use peripheral_uart sample. 
 I follow the guide: 
 https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu 
 It&amp;#39;s work well. 
 
 But now,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Apr 2022 07:19:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86668/mcuboot-private-key-on-nrf5340dk" /><item><title>RE: MCUBoot private key on nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/365307?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2022 07:19:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fad27a68-f2b0-4189-ace2-2159a21a5c4f</guid><dc:creator>RHeine</dc:creator><description>&lt;p&gt;Hi &amp;Oslash;ivind,&lt;/p&gt;
&lt;p&gt;I was wrong everything work well on the nrf5340dk and on my custom board, I just forget to change the path into &amp;quot;mcuboot.conf&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for all your help.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot private key on nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/365203?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2022 12:54:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43d378cc-43ee-40bc-bf56-6b6f1ac73bc5</guid><dc:creator>RHeine</dc:creator><description>&lt;p&gt;Hi &amp;Oslash;ivind,&lt;/p&gt;
&lt;p&gt;everything work well with the sample project and the nrf5340dk.&lt;/p&gt;
&lt;p&gt;I tryed to verify that I can update a new version with device manager, it&amp;#39;s work too.&lt;/p&gt;
&lt;p&gt;Also, I tryed to change the private key and send a bad version&amp;nbsp; from device manager, and the state was:&amp;quot;invalid (3)&amp;quot;&lt;/p&gt;
&lt;p&gt;So it look like I need the right private key to upgrade new soft version with DFU.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After, I tryed the same thing with my custom board and my custom soft, everything work, except that I can upgrate with any private key... So I have a problem...&lt;/p&gt;
&lt;p&gt;I will make a private ticket to understand why it do not work.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Rob.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot private key on nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/365143?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2022 10:16:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89d95f1a-a23d-4ae7-8382-e41d638e0364</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Ah, I apologize, I saw that it was in an unusual place, but I just assumed it was allowed on the older version of the SDK.&lt;/p&gt;
&lt;p&gt;Great job figuring it out!&lt;/p&gt;
&lt;p&gt;So everything is working now?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot private key on nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/365086?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2022 06:48:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2d9182e-523a-4da1-aba3-62397cb424eb</guid><dc:creator>RHeine</dc:creator><description>&lt;p&gt;Hi &amp;Oslash;ivind,&lt;/p&gt;
&lt;p&gt;I find the problem, now it&amp;#39;s working.&lt;/p&gt;
&lt;p&gt;I change the place were I have put &amp;#39;&amp;#39;mcuboot.conf&amp;quot;, I put inside a folder called child_image and I deleate:&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;if (EXISTS &amp;quot;${CMAKE_CURRENT_SOURCE_DIR}/mcuboot.conf&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; list(APPEND mcuboot_OVERLAY_CONFIG&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;${CMAKE_CURRENT_SOURCE_DIR}/mcuboot.conf&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;br /&gt;endif()&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;from CmakeLists.txt file.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/6332.path.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Thanks you for your help.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot private key on nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/364847?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2022 08:02:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a356d504-80ec-4bf0-be21-5107b46f8245</guid><dc:creator>RHeine</dc:creator><description>&lt;p&gt;Hi &amp;Oslash;ivind,&lt;/p&gt;
&lt;p&gt;I tried to increase &amp;quot;BOOT_MAX_IMG_SECTORS&amp;quot; to 256 or 512 or 1024, I added &amp;quot;CONFIG_BOOT_MAX_IMG_SECTORS=1024&amp;quot; in mcuboot.conf file,&lt;/p&gt;
&lt;p&gt;but I still&amp;nbsp;have the same error:&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;*** Booting Zephyr OS build v2.6.0-rc1-ncs1&amp;nbsp; ***&lt;br /&gt;Attempting to boot slot 0.&lt;br /&gt;Attempting to boot from address 0x8200.&lt;br /&gt;Verifying signature against key 0.&lt;br /&gt;Hash: 0x2e...e0&lt;br /&gt;Firmware signature verified.&lt;br /&gt;Firmware version 1&lt;br /&gt;*** Booting Zephyr OS build v2.6.0-rc1-ncs1&amp;nbsp; ***&lt;br /&gt;I: Starting bootloader&lt;br /&gt;W: Failed reading sectors; BOOT_MAX_IMG_SECTORS=1024 - too small?&lt;br /&gt;E: Unable to find bootable image&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;How can I go further ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot private key on nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/364750?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2022 13:51:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5bea19c-0506-45b5-bde1-158cdf306540</guid><dc:creator>RHeine</dc:creator><description>&lt;p&gt;Thanks you very much for your reply.&lt;/p&gt;
&lt;p&gt;I had CONFIG_FW_INFO=y to mcuboot.conf,&lt;/p&gt;
&lt;p&gt;but now I have this message:&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;*** Booting Zephyr OS build v2.6.0-rc1-ncs1&amp;nbsp; ***&lt;br /&gt;Attempting to boot slot 0.&lt;br /&gt;Attempting to boot from address 0x8200.&lt;br /&gt;Verifying signature against key 0.&lt;br /&gt;Hash: 0x2e...e0&lt;br /&gt;Firmware signature verified.&lt;br /&gt;Firmware version 1&lt;br /&gt;Setting monotonic counter (version: 1, slot: 0)&lt;br /&gt;*** Booting Zephyr OS build v2.6.0-rc1-ncs1&amp;nbsp; ***&lt;br /&gt;I: Starting bootloader&lt;br /&gt;W: Failed reading sectors; BOOT_MAX_IMG_SECTORS=128 - too small?&lt;br /&gt;E: Unable to find bootable image&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;How can I increase the BOOT_MAX_IMG_SECTORS ?&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot private key on nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/364744?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2022 13:33:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a32a786-7b20-4fdc-a81e-ea96caf588a4</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply, it has been busy this last week.&lt;/p&gt;
&lt;p&gt;I am able to boot the image when I add CONFIG_FW_INFO=y to mcuboot.conf.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot private key on nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/364420?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 09:54:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a14cc813-7e69-41c7-8202-603cb20f4731</guid><dc:creator>RHeine</dc:creator><description>&lt;p&gt;Hi &amp;Oslash;ivind,&lt;/p&gt;
&lt;p&gt;Could you help me to make image bootable, please ?&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot private key on nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/363220?ContentTypeID=1</link><pubDate>Wed, 13 Apr 2022 14:19:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f950e83-f926-4661-a29e-aee90c6247bb</guid><dc:creator>RHeine</dc:creator><description>&lt;p&gt;Hi &amp;Oslash;ivind,&lt;/p&gt;
&lt;p&gt;Thank you for your answer.&lt;/p&gt;
&lt;p&gt;I tried to add to mcuboot.conf:&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;CONFIG_BOOT_SIGNATURE_TYPE_ECDSA_P256=y&lt;br /&gt;CONFIG_PCD=y&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;The build work, I had this message before flashing:&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;D:\elect\projets_nordic_D\dfu_peripheral_uart_private_key&amp;gt;west flash&lt;br /&gt;-- west flash: rebuilding&lt;br /&gt;[0/17] Performing build step for &amp;#39;mcuboot_subimage&amp;#39;&lt;br /&gt;ninja: no work to do.&lt;br /&gt;[1/11] Performing build step for &amp;#39;b0_subimage&amp;#39;&lt;br /&gt;ninja: no work to do.&lt;br /&gt;[2/7] Performing build step for &amp;#39;hci_rpmsg_subimage&amp;#39;&lt;br /&gt;[0/5] Performing build step for &amp;#39;b0n_subimage&amp;#39;&lt;br /&gt;ninja: no work to do.&lt;br /&gt;-- west flash: using runner nrfjprog&lt;br /&gt;Using board 960132679&lt;br /&gt;FATAL ERROR: The hex file contains data placed in the UICR, which needs a full erase before reprogramming. Run west flash again with --force, --erase, or --recover.&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;So I tried: &amp;quot;west flash recover&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and I had this message from the Uart:&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;*** Booting Zephyr OS build v2.6.0-rc1-ncs1&amp;nbsp; ***&lt;br /&gt;Attempting to boot slot 0.&lt;br /&gt;No fw_info struct found.&lt;br /&gt;Attempting to boot slot 1.&lt;br /&gt;No fw_info struct found.&lt;br /&gt;No bootable image found. Aborting boot.&lt;br /&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;It look like I miss something to make image bootable...&lt;/p&gt;
&lt;p&gt;Here is a zip of my project:&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/dfu_5F00_peripheral_5F00_uart_5F00_private_5F00_key.zip"&gt;devzone.nordicsemi.com/.../dfu_5F00_peripheral_5F00_uart_5F00_private_5F00_key.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot private key on nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/362347?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 12:37:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d1b3c7b-ca9d-46a9-a5b3-e3f777426581</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Try adding these configs to your mcuboot.conf&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BOOT_SIGNATURE_TYPE_ECDSA_P256=y
CONFIG_PCD=y&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>