<?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>SDK v2.6.0 mcuboot overflows flash region</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110396/sdk-v2-6-0-mcuboot-overflows-flash-region</link><description>Hi, 
 I have an issue moving my project from SDK v2.5.0 to v2.6.0. Using vscode and changing nothing but the toolchain and SDK version my project will fail to build for the newer SDK. Now I know that I could increase the partition size and it would most</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Apr 2024 11:10:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110396/sdk-v2-6-0-mcuboot-overflows-flash-region" /><item><title>RE: SDK v2.6.0 mcuboot overflows flash region</title><link>https://devzone.nordicsemi.com/thread/479676?ContentTypeID=1</link><pubDate>Fri, 19 Apr 2024 11:10:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da719bfa-1038-4d2b-83f7-005e355e3fbc</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Tiit Ratsep"]My question is about those customers running into issues due to their older bootloaders.[/quote]
&lt;p&gt;To be direct, I suspect you are a bit wrong on the assumption here.&lt;/p&gt;
&lt;p&gt;If MCUboot is your only bootloader, it is an immutable bootloader. This means that MCUboot &lt;strong&gt;can not&lt;/strong&gt; change. And since it can not change, it is unlikely that it suddenly stops working.&lt;/p&gt;
&lt;p&gt;If the issues appear after you DFU(?), it is more likely that it is something wrong with the new application or its formatting for DFU.&lt;/p&gt;
[quote user="Tiit Ratsep"]This did not change anything. I actually think all logging is turned off for the bootloader in my case.[/quote]
&lt;p&gt;Ah yes then that will not do much.&lt;br /&gt;Generally, see &lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/main/boot/zephyr/prj_minimal.conf"&gt;prj_minimal.conf&lt;/a&gt; for some other tips.&lt;/p&gt;
[quote user="Tiit Ratsep"]I see things like&amp;nbsp;CONFIG_ZEPHYR_TINYCRYPT_MODULE and&amp;nbsp;CONFIG_CBPRINTF_CONVERT_CHECK_PTR and&amp;nbsp;CONFIG_MEM_ATTR being set to &amp;quot;y&amp;quot; in the newer SDK but I&amp;#39;m not sure why or if they are now needed for some reason.[/quote]
&lt;p&gt;Do you know how to use the &amp;quot;menuconfig&amp;quot; tool?&lt;br /&gt;With that, you can check which configuration sets another config.&lt;/p&gt;
&lt;p&gt;I use the command line, so this might look a bit confusing, but it shows how I check what sets CBPRINTF_CONVERT_CHECK_PTR. Then you just do this recursively until you find which config sets it. Then you can try to understand if the root Kconfig option is something you need. I can help with the understanding.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/menuconfig.mp4"&gt;devzone.nordicsemi.com/.../menuconfig.mp4&lt;/a&gt;&lt;/p&gt;
[quote user="Tiit Ratsep"]&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;I know about bootloaders generally staying the same over a long time which is why this is worrying for me. We are planning on supporting Matter and Thread on this product in the near future so we are already a bit tight on memory and seeing the bootloader size grow is not a good surprise.&lt;/p&gt;[/quote]
&lt;p&gt;Yes I agree that the bootloader should not grow too much.&lt;br /&gt;What is the size of your bootloader partition?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK v2.6.0 mcuboot overflows flash region</title><link>https://devzone.nordicsemi.com/thread/479649?ContentTypeID=1</link><pubDate>Fri, 19 Apr 2024 09:28:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:945affea-5457-473c-a3dd-d46eb269ee70</guid><dc:creator>Tiit</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;Sorry about the block of text.&lt;/p&gt;
&lt;p&gt;If the MCUboot application can&amp;#39;t fit in the partition &amp;quot;mcuboot&amp;quot; and easy change is to increase the size of that partition. But like you say - that is not a good thing to do.&lt;/p&gt;
&lt;p&gt;If I build a new version of firmware using the latest SDK (2.6.0) and release that to my customers they will want to update their devices. They may have bought their device last year and in that case they will have a bootloader built with SDK 2.5.0 for example. My question is about those customers running into issues due to their older bootloaders.&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/110396/sdk-v2-6-0-mcuboot-overflows-flash-region/479641"]&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_CBPRINTF_NANO"&gt;CONFIG_CBPRINTF_NANO&lt;/a&gt;=y for MCUboot.[/quote]
&lt;p&gt;This did not change anything. I actually think all logging is turned off for the bootloader in my case.&lt;/p&gt;
&lt;p&gt;I rebuilt my project with both SDK versions and there are a lot of differences. I&amp;#39;m not sure I wan tto publicly share my config files here though.&lt;/p&gt;
&lt;p&gt;I see things like&amp;nbsp;CONFIG_ZEPHYR_TINYCRYPT_MODULE and&amp;nbsp;CONFIG_CBPRINTF_CONVERT_CHECK_PTR and&amp;nbsp;CONFIG_MEM_ATTR being set to &amp;quot;y&amp;quot; in the newer SDK but I&amp;#39;m not sure why or if they are now needed for some reason.&lt;/p&gt;
&lt;p&gt;I know about bootloaders generally staying the same over a long time which is why this is worrying for me. We are planning on supporting Matter and Thread on this product in the near future so we are already a bit tight on memory and seeing the bootloader size grow is not a good surprise.&lt;/p&gt;
&lt;p&gt;Tiit&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK v2.6.0 mcuboot overflows flash region</title><link>https://devzone.nordicsemi.com/thread/479641?ContentTypeID=1</link><pubDate>Fri, 19 Apr 2024 08:59:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad6561c9-1ada-4abe-b550-43e66156e9fa</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;First and foremost, make sure that you never change partitioning of the partitions &amp;quot;mcuboot&amp;quot;, &amp;quot;mcuboot_primary&amp;quot; or &amp;quot;mcuboot_secondary&amp;quot;! See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/bootloaders/bootloader.html#static-partition-requirement-for-dfu"&gt;Static partition requirement for DFU&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For the record: Writing all in a block of text like that makes it quite hard to see the different questions you have. I might miss some, so let me know if I do.&lt;/p&gt;
[quote user=""]Now I know that I could increase the partition size[/quote]
&lt;p&gt;Which partition? I assume MCUboot.&lt;/p&gt;
[quote user=""]Should I be worried that my older versions will stop working?[/quote]
&lt;p&gt;I do not understand how building for v2.6.0 fails will impact v2.5.x devices?&lt;/p&gt;
[quote user=""] What changed in the mcuboot in the latest SDK that made it bigger?[/quote]
&lt;p&gt;Maybe code, but more likely default configurations. &lt;br /&gt;Start by comparing build/mcuboot/zephyr/.config between versions.&lt;/p&gt;
[quote user=""]Is there an easy way to shrink the size by 66 bytes so that it would fit again?[/quote]
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_CBPRINTF_NANO"&gt;CONFIG_CBPRINTF_NANO&lt;/a&gt;=y for MCUboot.&lt;/p&gt;
[quote user=""]If I can&amp;#39;t make it compile smaller in 2.6.0 can I somehow set up the build system to build the bootloader with the older SDK? Will a version mismatch between application and mcuboot cause issues in the future?[/quote]
&lt;p&gt;No, the bootloader can work with any version of the application, and it is normal to update the application but not the bootloader.&lt;br /&gt;In fact, most often bootloaders remain the same for the entire lifecycle of a product.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>