<?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>How to update the MCUboot in nRF Connect on nRF52840DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68787/how-to-update-the-mcuboot-in-nrf-connect-on-nrf52840dk</link><description>Hi, 
 
 I press Button 1 and Reset to put the nRF52840 DK in to DFU mode that is programmed with a immutable bootloader (B0), mcuboot, and application. This works well to update the application (app_update.bin) using mcumgr over USB . However, during</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Dec 2020 21:59:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68787/how-to-update-the-mcuboot-in-nrf-connect-on-nrf52840dk" /><item><title>RE: How to update the MCUboot in nRF Connect on nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/285723?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 21:59:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdf1da8b-f7b8-41ce-beaf-f0bdeb6b199e</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi Ram,&lt;/p&gt;
&lt;p&gt;Try setting it to the EC key instead.&lt;/p&gt;
&lt;p&gt;For me it&amp;#39;s:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SB_SIGNING_KEY_FILE&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;C:/ncs/bootloader/mcuboot/root-ec-p256.pem&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I don&amp;#39;t think you need to set&amp;nbsp;CONFIG_SB_PUBLIC_KEY_FILES (I think it will be generated based on the private/signing key for you, but if you are setting it manually, it need to generated based on the private key).&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update the MCUboot in nRF Connect on nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/285503?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 06:09:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bfb7c7c-9464-4f79-8b46-c12394c32f02</guid><dc:creator>RAS_ID</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Sigurdon,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I made the second time build without pristine and without deleting the build directory and used _b0_s0_image_signed.hex to program the bootloader. It worked and printed the new message when put in the DFU mode.&amp;nbsp; Thank you very much for pointing me to the problem!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However, I am getting build error with&amp;nbsp;&amp;nbsp;CONFIG_SB_SIGNIG_KEY_FILE.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is what I put in the blinky&amp;#39;s prj.conf file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;CONFIG_SB_SIGNING_KEY_FILE=&amp;quot;c:/Users/singhr48/ncs/v1.4.0/bootloader/mcuboot/root-rsa-2048.pem&amp;quot;&lt;br /&gt;CONFIG_SB_PUBLIC_KEY_FILES=&amp;quot;c:/Users/singhr48/ncs/v1.4.0/bootloader/mcuboot/enc-rsa2048-pub.pem&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;The two .pem files are provided as part of the ncs.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;And the build error is&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&amp;nbsp;[150/162] cmd.exe /C &amp;quot;cd /D C:\Users\singhr48\ncs\v1.4.0\zephyr\samples\basic\blinky\build\zephyr &amp;amp;&amp;amp; C:\Users\singhr48\ncs\v1.4.0\toolchain\opt\bin\python.exe C:/Users/singhr48/ncs/v1.4.0/nrf/scripts/bootloader/keygen.py --public --in c:/Users/singhr48/ncs/v1.4.0/bootloader/mcuboot/root-rsa-2048.pem --out C:/Users/singhr48/ncs/v1.4.0/zephyr/samples/basic/blinky/build/zephyr/nrf/subsys/bootloader/generated/public.pem&amp;quot;&lt;br /&gt;Traceback (most recent call last):&lt;br /&gt; File &amp;quot;C:/Users/singhr48/ncs/v1.4.0/nrf/scripts/bootloader/keygen.py&amp;quot;, line 33, in &amp;lt;module&amp;gt;&lt;br /&gt; sk = SigningKey.from_pem(args.infile.read()) if args.infile else SigningKey.generate(curve=NIST256p)&lt;br /&gt; File &amp;quot;C:\Users\singhr48\ncs\v1.4.0\toolchain\opt\bin\lib\site-packages\ecdsa\keys.py&amp;quot;, line 828, in from_pem&lt;br /&gt; privkey_pem = string[string.index(b("-----BEGIN EC PRIVATE KEY-----")):]&lt;br /&gt;ValueError: subsection not found&lt;br /&gt;FAILED: zephyr/nrf/subsys/bootloader/generated/public.pem&lt;br /&gt;cmd.exe /C &amp;quot;cd /D C:\Users\singhr48\ncs\v1.4.0\zephyr\samples\basic\blinky\build\zephyr &amp;amp;&amp;amp; C:\Users\singhr48\ncs\v1.4.0\toolchain\opt\bin\python.exe C:/Users/singhr48/ncs/v1.4.0/nrf/scripts/bootloader/keygen.py --public --in c:/Users/singhr48/ncs/v1.4.0/bootloader/mcuboot/root-rsa-2048.pem --out C:/Users/singhr48/ncs/v1.4.0/zephyr/samples/basic/blinky/build/zephyr/nrf/subsys/bootloader/generated/public.pem&amp;quot;&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;Could you please guide what I am missing while defining the key files?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;Ram&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update the MCUboot in nRF Connect on nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/285434?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2020 16:27:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9f14f89-188b-4c3c-a7b6-6aaab1b2ad30</guid><dc:creator>RAS_ID</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thanks your reply!&lt;/p&gt;
&lt;p&gt;Yes, I always delete the build directory and do pristine build.&lt;/p&gt;
&lt;p&gt;I am not using my own key file to sign the build, and this may be the reason as explained by you. I will use a predefined key file with CONFIG_SB_SIGNIG_KEY_FILE and repeat the test.&lt;/p&gt;
&lt;p&gt;Would the sample key file provided with ncs work?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ram&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update the MCUboot in nRF Connect on nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/285422?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2020 15:58:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e70bc93-cc7d-459e-810f-1c7639b4eec6</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi Ram,&lt;/p&gt;
[quote userid="96121" url="~/f/nordic-q-a/68787/how-to-update-the-mcuboot-in-nrf-connect-on-nrf52840dk/284855#284855"]What may be the reason the signature of the bootloaders (_b0_s0_ and _b0_s1_) is changed in a built with a small change?[/quote]
&lt;p&gt;Did you do a pristine build (e.g. west build with -p argument), or deleted the old build folder, when you build the project with the change(a modified printf statement)? If you are not setting your own&amp;nbsp;CONFIG_SB_SIGNING_KEY_FILE, then the generated debug keys will be used. New debug keys are generated if you delete the build folder, or do a &lt;span&gt;pristine&amp;nbsp;&lt;/span&gt;build.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update the MCUboot in nRF Connect on nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/284855?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2020 15:56:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db19e0cb-5b1e-493a-a21e-adbf1112ea23</guid><dc:creator>RAS_ID</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think my earlier observation was not correct, and update always happens at offset 0x200.&lt;/p&gt;
&lt;p&gt;But, I am not able to update the bootloader using the nRF programmer. This is what I have found while programming the device with the nRF programmer.&lt;/p&gt;
&lt;p&gt;1. Build the project and program the device (b0, mcuboot in so and s1, and application). I used merged.hex&lt;/p&gt;
&lt;p&gt;2. Build the project without any change, and program the device with _b0_s0 (OR _b0_s1_, OR app_update.hex), no problem.&lt;/p&gt;
&lt;p&gt;3. Build the project with a small change (modify a printf statement), and program the device with _b0_s0. The device fails to boot with _b0_s0 but boots with _b0_s1. I have found that the bootloader signature is changed.&lt;/p&gt;
&lt;p&gt;4. Program the device with the newly built&amp;nbsp; app. There is no issue.&lt;/p&gt;
&lt;p&gt;What may be the reason the signature of the bootloaders (_b0_s0_ and _b0_s1_) is changed in a built with a small change? I really appreciate your insights.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ram&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update the MCUboot in nRF Connect on nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/283185?ContentTypeID=1</link><pubDate>Thu, 03 Dec 2020 16:59:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e26dbf9f-60f3-435a-823b-cb6bfa214a90</guid><dc:creator>RAS_ID</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please find attached pm.config and partition. yml&lt;/p&gt;
&lt;p&gt;Is the address a reason for the mcuboot update not working with the programmer?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ram&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update the MCUboot in nRF Connect on nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/283184?ContentTypeID=1</link><pubDate>Thu, 03 Dec 2020 16:57:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c43e38c-cf11-4781-8567-20cee8104749</guid><dc:creator>RAS_ID</dc:creator><description>&lt;p&gt;EMPTY_0:&lt;br /&gt; address: 0x18200&lt;br /&gt; placement:&lt;br /&gt; before:&lt;br /&gt; - s1_pad&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0xe00&lt;br /&gt;EMPTY_1:&lt;br /&gt; address: 0x19200&lt;br /&gt; placement:&lt;br /&gt; before:&lt;br /&gt; - s1_image&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0xe00&lt;br /&gt;app:&lt;br /&gt; address: 0x2a200&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0x6ae00&lt;br /&gt;b0:&lt;br /&gt; address: 0x0&lt;br /&gt; orig_span: &amp;amp;id001&lt;br /&gt; - b0_image&lt;br /&gt; - provision&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0x8000&lt;br /&gt; span: *id001&lt;br /&gt;b0_image:&lt;br /&gt; address: 0x0&lt;br /&gt; placement:&lt;br /&gt; after:&lt;br /&gt; - start&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0x7000&lt;br /&gt;mcuboot:&lt;br /&gt; address: 0x8200&lt;br /&gt; placement:&lt;br /&gt; before:&lt;br /&gt; - mcuboot_primary&lt;br /&gt; region: flash_primary&lt;br /&gt; sharers: 0x1&lt;br /&gt; size: 0x10000&lt;br /&gt;mcuboot_pad:&lt;br /&gt; address: 0x2a000&lt;br /&gt; placement:&lt;br /&gt; align:&lt;br /&gt; start: 0x1000&lt;br /&gt; before:&lt;br /&gt; - mcuboot_primary_app&lt;br /&gt; region: flash_primary&lt;br /&gt; sharers: 0x2&lt;br /&gt; size: 0x200&lt;br /&gt;mcuboot_primary:&lt;br /&gt; address: 0x2a000&lt;br /&gt; orig_span: &amp;amp;id002&lt;br /&gt; - app&lt;br /&gt; - mcuboot_pad&lt;br /&gt; region: flash_primary&lt;br /&gt; sharers: 0x1&lt;br /&gt; size: 0x6b000&lt;br /&gt; span: *id002&lt;br /&gt;mcuboot_primary_app:&lt;br /&gt; address: 0x2a200&lt;br /&gt; orig_span: &amp;amp;id003&lt;br /&gt; - app&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0x6ae00&lt;br /&gt; span: *id003&lt;br /&gt;mcuboot_secondary:&lt;br /&gt; address: 0x95000&lt;br /&gt; placement:&lt;br /&gt; after:&lt;br /&gt; - mcuboot_primary&lt;br /&gt; align:&lt;br /&gt; start: 0x1000&lt;br /&gt; region: flash_primary&lt;br /&gt; share_size:&lt;br /&gt; - mcuboot_primary&lt;br /&gt; size: 0x6b000&lt;br /&gt;provision:&lt;br /&gt; address: 0x7000&lt;br /&gt; placement:&lt;br /&gt; after:&lt;br /&gt; - b0_image&lt;br /&gt; align:&lt;br /&gt; start: 0x1000&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0x1000&lt;br /&gt;s0:&lt;br /&gt; address: 0x8000&lt;br /&gt; orig_span: &amp;amp;id004&lt;br /&gt; - mcuboot&lt;br /&gt; - s0_pad&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0x10200&lt;br /&gt; span: *id004&lt;br /&gt;s0_image:&lt;br /&gt; address: 0x8200&lt;br /&gt; orig_span: &amp;amp;id005&lt;br /&gt; - mcuboot&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0x10000&lt;br /&gt; span: *id005&lt;br /&gt;s0_pad:&lt;br /&gt; address: 0x8000&lt;br /&gt; placement:&lt;br /&gt; after:&lt;br /&gt; - b0&lt;br /&gt; align:&lt;br /&gt; start: 0x1000&lt;br /&gt; region: flash_primary&lt;br /&gt; share_size:&lt;br /&gt; - mcuboot_pad&lt;br /&gt; size: 0x200&lt;br /&gt;s1:&lt;br /&gt; address: 0x19000&lt;br /&gt; orig_span: &amp;amp;id006&lt;br /&gt; - s1_pad&lt;br /&gt; - s1_image&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0x10200&lt;br /&gt; span: *id006&lt;br /&gt;s1_image:&lt;br /&gt; address: 0x1a000&lt;br /&gt; placement:&lt;br /&gt; after:&lt;br /&gt; - s1_pad&lt;br /&gt; - s0&lt;br /&gt; align:&lt;br /&gt; end: 0x1000&lt;br /&gt; region: flash_primary&lt;br /&gt; share_size:&lt;br /&gt; - mcuboot&lt;br /&gt; size: 0x10000&lt;br /&gt;s1_pad:&lt;br /&gt; address: 0x19000&lt;br /&gt; placement:&lt;br /&gt; after:&lt;br /&gt; - s0&lt;br /&gt; align:&lt;br /&gt; start: 0x1000&lt;br /&gt; region: flash_primary&lt;br /&gt; share_size:&lt;br /&gt; - mcuboot_pad&lt;br /&gt; size: 0x200&lt;br /&gt;spm_app:&lt;br /&gt; address: 0x2a200&lt;br /&gt; orig_span: &amp;amp;id007&lt;br /&gt; - app&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0x6ae00&lt;br /&gt; span: *id007&lt;br /&gt;sram_primary:&lt;br /&gt; address: 0x20000000&lt;br /&gt; region: sram_primary&lt;br /&gt; size: 0x40000&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update the MCUboot in nRF Connect on nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/283183?ContentTypeID=1</link><pubDate>Thu, 03 Dec 2020 16:57:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdfe26b0-89ab-4b2c-9971-11b6ead739a7</guid><dc:creator>RAS_ID</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/pm_2E00_config"&gt;devzone.nordicsemi.com/.../pm_2E00_config&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update the MCUboot in nRF Connect on nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/283086?ContentTypeID=1</link><pubDate>Thu, 03 Dec 2020 13:11:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f22edb0a-b606-421c-ad37-e88a1c3cb52d</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;It&amp;#39;s the&amp;nbsp;Partition Manager that sets the start address in a multi-image build. See this link for more information:&amp;nbsp;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.4.0/nrf/scripts/partition_manager/partition_manager.html"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.4.0/nrf/scripts/partition_manager/partition_manager.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;In your build folder, how does&amp;nbsp;partitions_nrf52840dk_nrf52840.yml and&amp;nbsp;pm_nrf52840dk_nrf52840.config look like ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update the MCUboot in nRF Connect on nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/282941?ContentTypeID=1</link><pubDate>Wed, 02 Dec 2020 19:45:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c35ca9c0-0ece-4dc9-b422-2608d776ccbd</guid><dc:creator>RAS_ID</dc:creator><description>&lt;p&gt;Thank you very much!&lt;/p&gt;
&lt;p&gt;I hope there will be solution soon.&lt;/p&gt;
&lt;p&gt;One more question. If I program&amp;nbsp;&lt;span&gt;&lt;strong&gt;signed_by_mcuboot_and_b0_s0_image_signed.hex&lt;/strong&gt; (or _b0_s1_) using the &lt;strong&gt;nRF programmer&lt;/strong&gt;, it should work because the hex file has the address. But, it is not working. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have noted that the&amp;nbsp;&lt;strong&gt;signed_by_mcuboot_and_b0_s0_image_signed.hex&lt;/strong&gt;&amp;nbsp;(or _b0_s0_) is loaded at 0x8000 (0x19000), not at 0x8200 (0x19200) as expected. The pp_signed.hex is loaded at 0x2A200.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;Is the address a reason for the mcuboot update not working with the programmer?&lt;/strong&gt; Overall image size has not changed (verified by reading the image in the programmer)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Ram&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update the MCUboot in nRF Connect on nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/282937?ContentTypeID=1</link><pubDate>Wed, 02 Dec 2020 18:50:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4c14ea2-d487-408d-bc62-cb22da7037f1</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Unfortunately,&amp;nbsp;DFU of the MCUBoot is currently not supported by mcumgr. You are correct, it&amp;nbsp;&lt;span&gt;doesn&amp;#39;t accept an address or slot parameter,&amp;nbsp;and&amp;nbsp;is initialized with the application address. There are some related activity ongoing around this (- mcumgr/SMP support for recognizing which image need to be upload (to be defined)) in this PR:&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/27673"&gt;github.com/.../27673&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="96121" url="~/f/nordic-q-a/68787/how-to-update-the-mcuboot-in-nrf-connect-on-nrf52840dk"]Are there different ways to enter the DFU mode to update the application and to update the mcuboot?[/quote]
&lt;p&gt;&lt;span&gt;Unfortunately, I don&amp;#39;t think there are other options/tools available.&amp;nbsp;Sorry for the inconvenience.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update the MCUboot in nRF Connect on nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/282723?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 15:23:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63a05b35-c7a9-496b-b8e6-36c6fcb13df7</guid><dc:creator>RAS_ID</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Any update on the mcuboot update and method of entering the DFU mode for it is well appreciated.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ram&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update the MCUboot in nRF Connect on nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/282381?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2020 07:59:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae9843a4-8819-453a-b93b-30b3970fdbee</guid><dc:creator>RAS_ID</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your reply!&lt;/p&gt;
&lt;p&gt;I use the following command to program the flash.&lt;/p&gt;
&lt;p&gt;$ mcumgr --conntype serial --connstring=&amp;quot;COM14&amp;quot; image upload build/zephyr/signed_by_mcuboot_and_b0_s1_image_update.bin&amp;nbsp; &amp;nbsp; &amp;nbsp;-mcumgr command used to program the flash.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; &lt;strong&gt;63.82 KiB / 63.82 KiB 100.00% 2.92 KiB/s 21s01s&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-the numbers changes during programming&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Done&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -once programming is done.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;and, application prj.conf is given below with default prj.conf for the mcuboot&lt;/p&gt;
&lt;p&gt;CONFIG_GPIO=y&lt;br /&gt;CONFIG_SECURE_BOOT=y&lt;br /&gt;CONFIG_BOOTLOADER_MCUBOOT=y&lt;br /&gt;CONFIG_BUILD_S1_VARIANT=y&lt;/p&gt;
&lt;p&gt;Memory partition looks like as given below&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;immutable bootloader starts at 0&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;S0 starts at 8000&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;S1 starts at 19000&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;App starts at 2A000&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I compare the files read after programming, I see the following&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;After programming with app_update.bin, no difference except at the end of the file.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;After programming with&amp;nbsp;&lt;span&gt;signed_by_mcuboot_and_b0_s1_image_update.bin, the differences start at 2A000. I also&amp;nbsp; recorded that the read file size is 100KB larger than the original file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please let me know if I could provide any other details.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Ram&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update the MCUboot in nRF Connect on nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/282299?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2020 14:51:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:857a20a1-81bf-494e-b284-c94dd8297d27</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I find it strange that the mcuboot update affected the application area in that way.&lt;/p&gt;
&lt;p&gt;What command did you use with&amp;nbsp;mcumgr, and how does your prj.conf file look like ?&lt;/p&gt;
&lt;p&gt;Did you try with&amp;nbsp;signed_by_mcuboot_and_b0_s0_image_update.bin as well?&lt;/p&gt;
&lt;p&gt;What does the mcumgr image list command return?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>