<?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>nrf52811: Zephyr with MCUboot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61313/nrf52811-zephyr-with-mcuboot</link><description>Hi, I am trying to create and FOTA upgradable application on the nrf52811 SoC. I have managed to do the same for nrf52832, but when I repeated the process for nrf52811 it seems that there is not enough memory. Here is the build output after running the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Dec 2020 09:00:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61313/nrf52811-zephyr-with-mcuboot" /><item><title>RE: nrf52811: Zephyr with MCUboot</title><link>https://devzone.nordicsemi.com/thread/285767?ContentTypeID=1</link><pubDate>Fri, 18 Dec 2020 09:00:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d9f4ad4-e618-4640-8d90-2a2f9f6dd77e</guid><dc:creator>Vojislav</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;From what I learned it is not possible to do&amp;nbsp;&lt;span&gt;CONFIG_SINGLE_IMAGE_DFU for BLE DFU. This can only be done for USB or UART upgrade.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52811: Zephyr with MCUboot</title><link>https://devzone.nordicsemi.com/thread/285742?ContentTypeID=1</link><pubDate>Fri, 18 Dec 2020 05:45:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed90d82d-96ed-4eab-88eb-bf8139a7987b</guid><dc:creator>x_ruslan</dc:creator><description>&lt;p&gt;&lt;span&gt;Single image&amp;nbsp;DFU suported for BLE?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52811: Zephyr with MCUboot</title><link>https://devzone.nordicsemi.com/thread/284798?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2020 13:34:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48e5fa71-9dd8-4467-9a62-fa94d55ab44f</guid><dc:creator>Vojislav</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;H&amp;aring;kon,&lt;br /&gt;&lt;br /&gt;Thanks for the replay, in the meantime I figured out that single image&amp;nbsp;DFU is not supported for BLE. So this is still not an option for me. Anyway, I will check the links you posted.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;p.s.&amp;nbsp;&lt;br /&gt;Today I&amp;nbsp;posted a private issue regarding this, if you have access check it out.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Vojislav&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52811: Zephyr with MCUboot</title><link>https://devzone.nordicsemi.com/thread/284794?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2020 13:28:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef3c4e2d-f80d-48d5-8cdb-b2ece3c6befc</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We&amp;#39;re continuously trying to optimize so that the&amp;nbsp;samples fits within all our nRF52-devices, but we&amp;#39;re unfortunately not quite there yet.&lt;/p&gt;
&lt;p&gt;With the peripheral_lbs sample, where the configurations from the &amp;quot;minimal.conf&amp;quot; is applied, the RAM usage goes from ~24k -&amp;gt; 15.5k:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/master/samples/bluetooth/peripheral_lbs/minimal.conf"&gt;https://github.com/nrfconnect/sdk-nrf/blob/master/samples/bluetooth/peripheral_lbs/minimal.conf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We also have a small section on which threads impact the RAM footprint in our documentation:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/app_memory.html#bluetooth"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/app_memory.html#bluetooth&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try this and see if you&amp;#39;re able to get any savings?&amp;nbsp;&lt;/p&gt;
[quote user="voja"]I am asking this because I noticed that in NCS v1.4.0 there is now&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;Added support for single-image applications (see&amp;nbsp;CONFIG_SINGLE_IMAGE_DFU).&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;Does this mean that it does not need two slots for the update, and it will overwrite the current application?[/quote]
&lt;p&gt;Although the configuration is there, unfortunately; the support in the multi build system isn&amp;#39;t capable of handling mcuboot single slot application as of now.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52811: Zephyr with MCUboot</title><link>https://devzone.nordicsemi.com/thread/284487?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2020 10:41:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8c7e60a-cc75-4da6-8a7c-3168ef0f2dd3</guid><dc:creator>Vojislav</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;H&amp;aring;kon,&lt;br /&gt;&lt;br /&gt;I noticed something in the new release of NCS and wanted to check with you:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class="p-rich_text_section"&gt;am trying to figure out if there is a possibility to fit the Nordic NUS app with MCUboot (for BLE DFU) on&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;nRF52811&lt;/b&gt;. The biggest constrain in memory. Currently with NCS version v1.4.0 when you build the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code class="c-mrkdwn__code"&gt;peripheiral_uart&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;example without the MCUboot it cannot fit.&lt;/div&gt;
&lt;pre class="c-mrkdwn__pre"&gt;Memory region         Used Size  Region Size  %age Used&lt;br /&gt;           FLASH:      180208 B       192 KB     91.66%&lt;br /&gt;            SRAM:       31679 B        24 KB    128.90%&lt;br /&gt;        IDT_LIST:         152 B         2 KB      7.4&lt;/pre&gt;
&lt;div class="p-rich_text_section"&gt;but if I strip down the application a bit, could it fit the MCUboot with it? I am asking this because I noticed that in NCS v1.4.0 there is now&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code class="c-mrkdwn__code"&gt;Added support for single-image applications (see&amp;nbsp;CONFIG_SINGLE_IMAGE_DFU).&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;Does this mean that it does not need two slots for the update, and it will overwrite the current application?&lt;/div&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;Best regards,&lt;br /&gt;Vojislav&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52811: Zephyr with MCUboot</title><link>https://devzone.nordicsemi.com/thread/249693?ContentTypeID=1</link><pubDate>Wed, 13 May 2020 11:28:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a9be5d7-ef96-40e2-86c0-5e3fa8aa6dea</guid><dc:creator>Vojislav</dc:creator><description>&lt;p&gt;&lt;span&gt;H&amp;aring;kon,&amp;nbsp;&lt;/span&gt;Thank you for your support.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Vojislav.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52811: Zephyr with MCUboot</title><link>https://devzone.nordicsemi.com/thread/249680?ContentTypeID=1</link><pubDate>Wed, 13 May 2020 11:09:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b176dd4-bac6-4abe-bd85-bcd1446fa2cc</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, There is an overflow in RAM by default when trying to target nrf52811/nrf52810, which is unfortunate, likely due to asymmetrical security, storing bond information, logging, and SeggerRTT printing being enabled. We do indeed have some optimization to do here. I&amp;#39;ll report this internally.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The sample still requires more flash than what can be fit into a image with mcuboot support, unfortunately.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52811: Zephyr with MCUboot</title><link>https://devzone.nordicsemi.com/thread/249645?ContentTypeID=1</link><pubDate>Wed, 13 May 2020 09:55:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c21b06f-01de-4fc7-a508-7b7c6624d92c</guid><dc:creator>Vojislav</dc:creator><description>&lt;p&gt;As I can see from testing even peripherial_uart application without the MCUboot cannot fit the nRF52811 because of the SRAM constraint:&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;Memory region         Used Size  Region Size  %age Used
           FLASH:      148128 B       192 KB     75.34%
            SRAM:       25912 B        24 KB    105.44%
        IDT_LIST:         136 B         2 KB      6.64/home/voja/Documents/gcc-arm-none-eabi-8-2019-q3-update/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: zephyr/zephyr_prebuilt.elf section `datas&amp;#39; will not fit in region `SRAM&amp;#39;
/home/voja/Documents/gcc-arm-none-eabi-8-2019-q3-update/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: section .intList VMA [0000000020006000,0000000020006087] overlaps section datas VMA [0000000020005c28,0000000020006211]
/home/voja/Documents/gcc-arm-none-eabi-8-2019-q3-update/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: region `SRAM&amp;#39; overflowed by 1336 bytes
collect2: error: ld returned 1 exit status
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I suppose these examples need to be further optimised on your side?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52811: Zephyr with MCUboot</title><link>https://devzone.nordicsemi.com/thread/249616?ContentTypeID=1</link><pubDate>Wed, 13 May 2020 08:16:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46f1ac31-a63c-41db-b961-dcdf386dfb2e</guid><dc:creator>Vojislav</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;H&amp;aring;kon,&lt;br /&gt;&lt;br /&gt;Thank you for your reply and suggestions.&amp;nbsp;&lt;br /&gt;What I need to do is to create an application similar to peripherial_uart, and when adding MCUBoot to that application I get a memory problem which is a clear sign to me that my application won&amp;#39;t fit.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Still, I will run the tests you recommended and get back to you with my rom_report.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Vojislav.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52811: Zephyr with MCUboot</title><link>https://devzone.nordicsemi.com/thread/249613?ContentTypeID=1</link><pubDate>Wed, 13 May 2020 07:56:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84b3188d-2fa2-4051-ba3c-2714d157404f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You&amp;#39;re overflowing flash by ~133 kB.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]So is there enough space on the nrf52811 to do such a thing?[/quote]
&lt;p&gt;Technically, yes. It is space enough to do it, but it will highly depend on your image size.&lt;/p&gt;
&lt;p&gt;If you take a small example, like hello_world, configure it to the nrf52811_pca10056 board, then apply these settings:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_FLASH=y
CONFIG_IMG_MANAGER=y
CONFIG_BOOTLOADER_MCUBOOT=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can then build and run the command &amp;quot;ninja rom_report&amp;quot; in the build folder and get the flash layout back:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[129/129] Running utility command for rom_report
Partition Manager report
FLASH (0x30000):
+-----------------------------------------+
| 0x0: mcuboot (0xc000)                   |
+---0xc000: mcuboot_primary (0x12000)-----+
| 0xc000: mcuboot_pad (0x200)             |
+---0xc200: mcuboot_primary_app (0x11e00)-+
| 0xc200: app (0x11e00)                   |
| 0x1e000: mcuboot_secondary (0x12000)    |
+-----------------------------------------+
&lt;/pre&gt;&lt;/p&gt;
[quote user=""]If it is what are the changes needed to be made so it can compile?[/quote]
&lt;p&gt;&amp;nbsp;As showed above, if you can get your application down to ~71kB flash, then you can run dual bank with the current mcuboot setup. However; there is not many applications that fits within this size&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>