<?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>Adding mcuboot to BLE peripheral fails to link properly on nRF52840 dongle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90269/adding-mcuboot-to-ble-peripheral-fails-to-link-properly-on-nrf52840-dongle</link><description>Several have asked about this basic situation but I have found no definitive answer. 
 I erased a dongle with a Segger J-link, and compiled the zephyr samples using CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n in the prj.conf file. This tells KConfig there is no</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Jul 2022 22:14:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90269/adding-mcuboot-to-ble-peripheral-fails-to-link-properly-on-nrf52840-dongle" /><item><title>RE: Adding mcuboot to BLE peripheral fails to link properly on nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/378389?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2022 22:14:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:347ea00d-5135-4f09-ac67-4adc71584343</guid><dc:creator>mytzyiay</dc:creator><description>&lt;p&gt;I put my&amp;nbsp;mcuboot&amp;nbsp;config options in the west command line because a couple of them are computed dynamically at build time.&amp;nbsp; But I think you can stuff the static ones into child_image/mcuboot/prj.conf as some of the samples do.&amp;nbsp; I haven&amp;#39;t tried this and I don&amp;#39;t know what the VSCode plugin will/won&amp;#39;t pick up.&lt;/p&gt;
&lt;p&gt;Also, if you don&amp;#39;t support a non-OTA configuration, you could&amp;nbsp;just rename pm_ota.yml to&amp;nbsp;pm_static_nrf52840dongle_nrf52840.yml .&amp;nbsp; I used the override because I do most of my everyday development on non-OTA-enabled images (simpler, quicker build/flash time) and then switch to OTA builds when I&amp;#39;m ready to deploy them in the lab.&lt;/p&gt;
&lt;p&gt;I think that if you&amp;#39;re debugging the device, you probably want&amp;nbsp;mcuboot_CONFIG_DISABLE_FLASH_PATCH=n&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding mcuboot to BLE peripheral fails to link properly on nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/378359?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2022 16:02:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3753fda8-3ef1-453f-b883-a9aa0aaca993</guid><dc:creator>Caycee</dc:creator><description>&lt;p&gt;After patching&amp;nbsp;multi_image.cmake and then modifying the command line for my particulars, this DOES work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;d prefer to do the same in VSCode where I have my other projects. I have to &amp;#39;Debug&amp;#39; the unit from VSCode to flash the dongle since running &amp;#39;Flash&amp;#39; from there does a rebuilds and fails.&lt;/p&gt;
&lt;p&gt;But at least I have a path forward for the moment.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding mcuboot to BLE peripheral fails to link properly on nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/378185?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 23:36:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc3460d3-da22-4881-9a65-0a4d9c1a4680</guid><dc:creator>mytzyiay</dc:creator><description>&lt;p&gt;This is working for me on my custom app:&lt;/p&gt;
&lt;pre style="padding-left:30px;"&gt;west build \&lt;br /&gt; --pristine \&lt;br /&gt; --build-dir=build \&lt;br /&gt; --board nrf52840dongle_nrf52840 \&lt;br /&gt; -- \&lt;br /&gt; -DPM_STATIC_YML_FILE=pm_ota.yml \&lt;br /&gt; -D&amp;quot;mcuboot_CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n&amp;quot; \&lt;br /&gt; -D&amp;quot;CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n&amp;quot; \&lt;br /&gt; -D&amp;quot;mcuboot_CONFIG_USB_DEVICE_STACK=n&amp;quot; \&lt;br /&gt; -D&amp;quot;mcuboot_CONFIG_MCUBOOT_SERIAL=n&amp;quot; \&lt;br /&gt; -D&amp;quot;mcuboot_CONFIG_DISABLE_FLASH_PATCH=y&amp;quot; \&lt;br /&gt; -D&amp;quot;mcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE=\&amp;quot;/foo/bar/key.pem\&amp;quot;&amp;quot; \&lt;br /&gt; -D&amp;quot;CONFIG_MCUBOOT_IMAGE_VERSION=\&amp;quot;1.2.3\&amp;quot;&lt;/pre&gt;
&lt;p&gt;Part of the problem is that the default mcuboot build will include the USB serial recovery code, which makes the bootloader image much larger.&amp;nbsp; I had to turn it off to get below 0xc000 bytes.&lt;/p&gt;
&lt;p&gt;Also had to patch NCS with&amp;nbsp;&lt;a id="" href="https://github.com/nrfconnect/sdk-nrf/pull/7997"&gt;https://github.com/nrfconnect/sdk-nrf/pull/7997&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;pm_ota.yml uses this static map:&lt;/p&gt;
&lt;pre style="padding-left:30px;"&gt;mcuboot:&lt;br /&gt; address: 0x0&lt;br /&gt; size: 0xc000&lt;br /&gt;&lt;br /&gt;mcuboot_primary:&lt;br /&gt; address: 0xc000&lt;br /&gt; size: 0x74000&lt;br /&gt;mcuboot_pad:&lt;br /&gt; address: 0xc000&lt;br /&gt; size: 0x200&lt;br /&gt;app:&lt;br /&gt; address: 0xc200&lt;br /&gt; size: 0x73e00&lt;br /&gt;mcuboot_primary_app:&lt;br /&gt; address: 0xc200&lt;br /&gt; size: 0x73e00&lt;br /&gt; span: [ app ]&lt;br /&gt;&lt;br /&gt;mcuboot_secondary:&lt;br /&gt; address: 0x80000&lt;br /&gt; size: 0x74000&lt;br /&gt;&lt;br /&gt;zboss_nvram:&lt;br /&gt; address: 0xf5000&lt;br /&gt; size: 0x8000&lt;br /&gt;zboss_product_config:&lt;br /&gt; address: 0xfd000&lt;br /&gt; size: 0x1000&lt;br /&gt;settings_storage:&lt;br /&gt; address: 0xfe000&lt;br /&gt; size: 0x2000&lt;br /&gt;&lt;br /&gt;sram_primary:&lt;br /&gt; address: 0x20000000&lt;br /&gt; size: 0x40000&lt;br /&gt; region: sram_primary&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>