<?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 make new image takes effect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119681/how-to-make-new-image-takes-effect</link><description>Hello,Nordic team 
 I am programming with nrf52833 and ncs v2.9.0 
 I am going to do dfu not by YOUR example(FOTA or UART……) 
 I flash_write() data to image-1 address，and what should i do to make image-1 take effect(take place of image-0) after reset</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Mar 2025 13:34:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119681/how-to-make-new-image-takes-effect" /><item><title>RE: how to make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/527179?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 13:34:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2b50e6b-8f28-4a39-a57d-9ad30a42ecb0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Discussion&amp;nbsp;continues here:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/119793/boot_request_upgrade-seems-not-work-as-expected"&gt;boot_request_upgrade seems not work as expected&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/527132?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 11:25:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d9e1ec2-89f0-4c6f-a3b3-6fc373304422</guid><dc:creator>Martin Evans</dc:creator><description>&lt;p&gt;And a question that the last pack is less than 1k,but i have to flash_write 1k to flash,the data that more than img should be 0x00 or 0xff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/527129?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 11:20:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86c63a50-3acc-49c8-bc08-a84dea662313</guid><dc:creator>Martin Evans</dc:creator><description>&lt;p&gt;Hi,Vidar&lt;/p&gt;
&lt;p&gt;I have writed data to slot1_partition,and read first 1k data and last 1k data into buf, have no difference with the img i write into flash,so the data should be right.And boot_request_upgrade return 0.&lt;/p&gt;
&lt;p&gt;Do there any idea to figure out what happend the next reset time?&lt;/p&gt;
&lt;p&gt;Best regard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/526958?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 13:54:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5798d768-e575-4ad7-a809-eae5db5a10e6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Good to hear that the build error got resolved. This should have been shown as a Kconfig warning in the build log.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/526956?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 13:49:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40ad2963-f0d2-469d-95e9-9df7555022be</guid><dc:creator>Martin Evans</dc:creator><description>&lt;p&gt;It turn out to be missing CONFIG_STREAM_FLASH.Solve it now&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/526949?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 13:35:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb8adb25-2439-486d-8a7b-02963021f85b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please compare it to&amp;nbsp;the modified hello world sample below and see if you are to see what we are doing differently.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/hello_5F00_world_5F00_w_5F00_mcuboot.zip"&gt;devzone.nordicsemi.com/.../hello_5F00_world_5F00_w_5F00_mcuboot.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/526948?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 13:32:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9091b731-d921-46a4-b9ee-5a4307cc5413</guid><dc:creator>Martin Evans</dc:creator><description>&lt;p&gt;yes,I am sure I have repaced it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/526945?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 13:30:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28abb521-5106-4582-b514-c866356ed711</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Did you remember to replace the include header with&amp;nbsp;&lt;span&gt;&amp;lt;zephyr/dfu/mcuboot.h&amp;gt;?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/526940?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 13:27:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:225c747e-d13d-47f4-af37-42af0776e6a5</guid><dc:creator>Martin Evans</dc:creator><description>&lt;p&gt;But do this will makes anoter err happened just like what i have said&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/526938?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 13:20:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ebf14cd-6018-4411-8961-8ea6c0796319</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I see the problem now with using the relative include path. You can include &amp;quot;#include &amp;lt;zephyr/dfu/mcuboot.h&amp;gt;&amp;quot; instead and call&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;boot_request_upgrade&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;); instead.&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 make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/526937?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 13:19:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfcb33a9-5b5b-47a7-a38b-e0c23d3b8194</guid><dc:creator>Martin Evans</dc:creator><description>&lt;p&gt;Good new is that boot_set_pending return 0-success.&lt;/p&gt;
&lt;p&gt;Bad new is that the new img is not take effect.&lt;/p&gt;
&lt;p&gt;My primary slot makes led green,and Secondary turn it&amp;nbsp; into red. boot_set_pending(1) return 0,after reset it is still green.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/526932?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 13:07:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37f86f24-d7e1-44e8-8301-a59081dcced1</guid><dc:creator>Martin Evans</dc:creator><description>&lt;p&gt;I try boot_set_pending now,it can pass the complie,but a warning happend.&lt;br /&gt;warning: implicit declaration of function &amp;quot;boot_set_pending&amp;quot;&lt;/p&gt;
&lt;p&gt;It must be that i am not include the head file,but once i do&amp;nbsp;&lt;span&gt;#include &amp;lt;bootutil/bootutil_public.h&amp;gt;,an ERROR(No such file....) wil happen.Any solution plz?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/526928?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 13:02:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caeb0dee-3483-4ada-8613-d2551263e825</guid><dc:creator>Vidar Berg</dc:creator><description>[quote userid="134573" url="~/f/nordic-q-a/119681/how-to-make-new-image-takes-effect/526925"]But still report&amp;nbsp; &amp;nbsp;undedined reference&amp;nbsp; boot_request_upgrade.[/quote]
&lt;p&gt;Did you try to call&amp;nbsp;&lt;span&gt;boot_set_pending()?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/526926?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 12:59:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb032222-8145-4fd3-9f10-8627dd40e662</guid><dc:creator>Martin Evans</dc:creator><description>&lt;p&gt;CONFIG_IMG_MANAGER=y is added as well&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/526925?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 12:58:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05a541a0-f2c5-4b67-955b-5875f9726d0a</guid><dc:creator>Martin Evans</dc:creator><description>&lt;p&gt;I added it but report err: No such file.&lt;/p&gt;
&lt;p&gt;And&amp;nbsp;i find &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/107244/problem-with-config_mcuboot_img_manager"&gt;this&amp;nbsp;&lt;/a&gt;&amp;nbsp;link.I added&amp;nbsp;&lt;br /&gt;CONFIG_MCUBOOT_IMG_MANAGER=y&lt;br /&gt;CONFIG_MCUBOOT_BOOTUTIL_LIB=y&lt;/p&gt;
&lt;p&gt;to my conf file, and #include &amp;lt;zephyr/dfu/mcuboot.h&amp;gt; .&lt;/p&gt;
&lt;p&gt;But still report&amp;nbsp; &amp;nbsp;undedined reference&amp;nbsp; boot_request_upgrade.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/526923?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 12:53:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:787469e1-b403-42b4-b7a6-170184d4e255</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Did you include the &amp;quot;#include &amp;lt;bootutil/bootutil_public.h&amp;gt;&amp;quot; header in your source file as well?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/526915?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 12:32:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15ceeff7-05b8-481a-a208-563b0e021a0d</guid><dc:creator>Martin Evans</dc:creator><description>&lt;p&gt;Thanx, Ive added&amp;nbsp;&lt;span&gt;CONFIG_MCUBOOT_IMG_MANAGER=y in my prj.conf,but compile failed,report that boot_set_pending is undefined.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/526911?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 12:25:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23739376-5767-4b62-b850-4cf16d17f731</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes. The bootutil functions is included in the app by&amp;nbsp;enabling&amp;nbsp;&lt;span&gt;CONFIG_MCUBOOT_IMG_MANAGER in your project configuration.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/526910?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 12:16:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:427113b5-bc4d-4def-bab0-28cc7e92fddd</guid><dc:creator>Martin Evans</dc:creator><description>&lt;p&gt;What u mean is that i shold call&amp;nbsp;&lt;span&gt;boot_set_pending() in application after flash_write finished right?&lt;br /&gt;But this file bootutil_publich.c and its head file are in&amp;nbsp;\ncs\v2.9.0\bootloader\mcuboot\boot\bootutil\src,How&amp;nbsp;to say...how i include its path?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/526906?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 12:11:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25cc2fb3-27d6-40b3-b788-3225936a1d60</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Sorry for not being clearer, but you should call the function from the main app, not the bootloader. I don&amp;#39;t reckognize the bootloader code you posted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/526904?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 12:08:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fa45db9-60d6-4e4a-afb1-4779535b59ed</guid><dc:creator>Martin Evans</dc:creator><description>&lt;p&gt;Boot log cannot output in my serial,what should i do?&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/_014F1A4EAE5FE14F2A62FE565F00_17417794262823.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/_014F1A4EAE5FE14F2A62FE565F00_17417794348033.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/526842?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 05:21:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c9e11fc-190f-49d9-97e4-300f5c4b2d65</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please check the return code from&amp;nbsp;&lt;span&gt;boot_set_pending().&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/526711?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 09:36:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b01645f-72f0-4cfe-a18c-a6c6fbcee071</guid><dc:creator>Martin Evans</dc:creator><description>&lt;p&gt;Hello Berg,&lt;/p&gt;
&lt;p&gt;thanx for help.I tried boot_set_pending(1),but still cannot makes it effect. I call This api in \ncs\v2.9.0\bootloader\mcuboot\boot\zephyr\main.c &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int main()&lt;/p&gt;
&lt;p&gt;is it right?&lt;/p&gt;
&lt;p&gt;Best regard&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/IMG_5F00_6226.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/IMG_5F00_6225.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make new image takes effect</title><link>https://devzone.nordicsemi.com/thread/526577?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 14:12:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17fddd5e-d11c-4dd8-9e5c-409088b54168</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You can mark the image as &amp;quot;pending&amp;quot; with this function:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/148712e7b4618aadbedd04e8d3ce5c3847d3be4f/boot/bootutil/include/bootutil/bootutil_public.h#L205"&gt;https://github.com/nrfconnect/sdk-mcuboot/blob/148712e7b4618aadbedd04e8d3ce5c3847d3be4f/boot/bootutil/include/bootutil/bootutil_public.h#L205&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>