<?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>Cannot build new image for FOTA through MCUboot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106393/cannot-build-new-image-for-fota-through-mcuboot</link><description>Hi. 
 
 I want to build firmware for FOTA into the slot1 partition. 
 
 I&amp;#39;m using NCS 2.5.0 in Visual Studio Code Envrionment. 
 
 I already build primary firmware(old firmware) with mcuboot and it works well. 
 
 but I want to build new image for update</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Dec 2023 22:05:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106393/cannot-build-new-image-for-fota-through-mcuboot" /><item><title>RE: Cannot build new image for FOTA through MCUboot</title><link>https://devzone.nordicsemi.com/thread/459795?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2023 22:05:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92ca5a46-e174-4688-90dd-1ec1c4f6c80f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please create a new support case for the new issue which is away from the original scope.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot build new image for FOTA through MCUboot</title><link>https://devzone.nordicsemi.com/thread/459626?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2023 05:05:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a434431e-34e7-4a04-b78a-a3b61ce2b3d9</guid><dc:creator>jswcomkr</dc:creator><description>&lt;p&gt;Thank you for reply.&lt;/p&gt;
&lt;p&gt;I checked again and applied it to my project.&lt;/p&gt;
&lt;p&gt;So, I finally got the app_update.hex and bin file.&lt;/p&gt;
&lt;p&gt;I want to write it to memory slot 1 by manually, because LTE modem&amp;nbsp;cannot send any SMP messages.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, my plan is as follow.&lt;/p&gt;
&lt;p&gt;1. LTE modem download new binary or hex file(maybe app_update.bin or app_update.hex ??) from our server, and it will be stored in LTE Modem&amp;#39;s internal flash.&lt;/p&gt;
&lt;p&gt;2. Read downloaded file&amp;nbsp;LTE modem through UART&amp;nbsp;one by one byte using AT Command and Write it into the slot 1 flash(Maybe from 0x45000)&lt;/p&gt;
&lt;p&gt;3. After write all data, reboot using NVIC_SystemReset(); function.&lt;/p&gt;
&lt;p&gt;4. MCUboot will check new firmware in slot1 automatically.&lt;/p&gt;
&lt;p&gt;5. If it is valid, MCUboot will copy new firmware from slot1 to slot 0.&lt;/p&gt;
&lt;p&gt;6. After the copy is complete, device will reboot and start with new firmware.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is it possible?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot build new image for FOTA through MCUboot</title><link>https://devzone.nordicsemi.com/thread/459424?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2023 16:59:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:229f88b3-d821-44fc-843e-6eb60c4f0748</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="jswcomkr"]I modified prj.conf in ncs/v2.5.0/nrf/samples/bootloader, but I didn&amp;#39;t set this path by myself.[/quote]
&lt;p&gt;&lt;span&gt;I would not suggest you modify&amp;nbsp;prj.conf of&amp;nbsp;ncs/v2.5.0/nrf/samples/bootloader directly. You can&amp;nbsp;add the NSIB as a child image to your application by enabling&amp;nbsp;CONFIG_SECURE_BOOT=y. Here is an&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/bootloaders_and_dfu/bootloader_adding.html#generating-pre-signed-variants"&gt; command exampl&lt;/a&gt;e.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user="jswcomkr"]1. How can I modify s1 image configuration file path?[/quote]
&lt;p&gt;&lt;span&gt;When adding the NSIB as a child image by enabling&amp;nbsp;&lt;/span&gt;&lt;span&gt;CONFIG_SECURE_BOOT=y, you can&amp;nbsp;create child_image\create&amp;nbsp;b0.conf under the application to overwrite the configuration.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="jswcomkr"]2. What is the B0, S0, S1 Image(Its meaning)[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;B0 is&amp;nbsp;nRF Secure Immutable Bootloader (NSIB).&amp;nbsp;S0 and S1 are updateable MCUboot. See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.0/nrf/samples/bootloader/README.html#pre-signed-variants"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.0/nrf/samples/bootloader/README.html#pre-signed-variants&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user="jswcomkr"]3. Which image can be used as upgrade image? I got lots of hex files.(Plz see below image)[/quote]
&lt;p&gt;We have&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.0/nrf/config_and_build/config_and_build_system.html#output-build-files"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.0/nrf/config_and_build/config_and_build_system.html#output-build-files&lt;/a&gt;&amp;nbsp;which describes&amp;nbsp;signed_by_mcuboot_and_b0_s0_image_update, which is the image you will want to use. Also, see t&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/95700/signed_by_b0_s1_image-bin-vs-signed_by_mcuboot_and_b0_s1_image_update-bin/405976"&gt;his post.&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user="jswcomkr"]4. Finally, How can I set the start / end address of each image? I want to use MCUboot-Primary Slot-Secondary Slot structrue.[/quote]
&lt;p&gt;It would be handled by &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html"&gt;partition manager&lt;/a&gt; which would be enabled automatically with muti-build.&amp;nbsp;&lt;/p&gt;
[quote user="jswcomkr"]5. I want to design my MCU&amp;#39;s partition as follow:(pm_static.yml in project folder)[/quote]
&lt;p&gt;Remove the&amp;nbsp;&lt;span&gt;pm_static.yml. Let the partition manager handle it for you.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="jswcomkr"]My intend is that s0 is primary slot, s1 is secondary slot for new firmware, and mcuboot is for bootloader.[/quote]
&lt;p&gt;S0 and S1 are for updating the mcuboot instead of app.&amp;nbsp; See&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.0/nrf/samples/bootloader/README.html#pre-signed-variants"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.0/nrf/samples/bootloader/README.html#pre-signed-variants&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&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/pastedimage1701965940111v1.png" alt=" " /&gt;&lt;/p&gt;
[quote user="jswcomkr"]As you know, nRF52832 has 512KB internal flashes, so I&amp;nbsp;divided it in 3 pieces. but it is not work.[/quote]
&lt;p&gt;Do you want to update mcuboot or just the app?&lt;/p&gt;
&lt;p&gt;If you just want to update the app image, you can just enable the DFU as my colleague suggested in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/105658/mcuboot-fota-with-zephyr-and-ncs-2-5-0/455914"&gt;this post&lt;/a&gt;. Then, the memory layout would look like this&lt;br /&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/pastedimage1701968305037v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot build new image for FOTA through MCUboot</title><link>https://devzone.nordicsemi.com/thread/459278?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2023 07:24:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19ca2046-3f9c-4aae-af81-9e38563ed9bb</guid><dc:creator>jswcomkr</dc:creator><description>&lt;p&gt;Thank you for reply.&lt;/p&gt;
&lt;p&gt;I managed to build s1 image for upgrade.&lt;/p&gt;
&lt;p&gt;I modified prj.conf in ncs/v2.5.0/nrf/samples/bootloader, but I didn&amp;#39;t set this path by myself.&lt;/p&gt;
&lt;p&gt;So, my question is as follow.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. How can I modify s1 image configuration file path?&lt;/p&gt;
&lt;p&gt;2. What is the B0, S0, S1 Image(Its meaning)&lt;/p&gt;
&lt;p&gt;3. Which image can be used as upgrade image? I got lots of hex files.(Plz see below image)&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/_A4C26CD0B0B9F7C0_-2023_2D00_12_2D00_07-162354.png" /&gt;&lt;/p&gt;
&lt;p&gt;4. Finally, How can I set the start / end address of each image? I want to use MCUboot-Primary Slot-Secondary Slot structrue.&lt;/p&gt;
&lt;p&gt;5. I want to design my MCU&amp;#39;s partition as follow:(pm_static.yml in project folder)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;mcuboot:
  address: 0x00
  end_address: 0x8000
  size: 0x8000
  region: flash_primary
s0:
  address: 0x8000
  end_address: 0x44000
  size: 0x3C000
  region: flash_primary
s1:
  address: 0x44000
  end_address: 0x80000
  size: 0x3C000
  region: flash_primary
sram_primary:
  address: 0x20000000
  end_address: 0x20010000
  region: sram_primary
  size: 0x10000
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But it makes error. What is the probielm?&lt;/p&gt;
&lt;p&gt;My intend is that s0 is primary slot, s1 is secondary slot for new firmware, and mcuboot is for bootloader. As you know, nRF52832 has 512KB internal flashes, so I&amp;nbsp;divided it in 3 pieces. but it is not work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot build new image for FOTA through MCUboot</title><link>https://devzone.nordicsemi.com/thread/459246?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2023 17:28:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d7830ee-ed5c-4ae4-bc26-0c73045f442a</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Could you&amp;nbsp;&lt;span&gt;create child_image\create&amp;nbsp;b0.conf under the application to include &amp;quot;&lt;/span&gt;&lt;span&gt;CONFIG_SECURE_BOOT_DEBUG=n&amp;quot; to disable debugging NSIB function?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you still have the issue, please upload the project and board file.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot build new image for FOTA through MCUboot</title><link>https://devzone.nordicsemi.com/thread/459236?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2023 16:27:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dccb136c-f238-49cd-b656-90847f37c66f</guid><dc:creator>jswcomkr</dc:creator><description>&lt;p&gt;Thank you for reply.&lt;/p&gt;
&lt;p&gt;I checked that postings, but not work for me.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I still got same message&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;warning: UART_NRFX (defined at drivers/serial/Kconfig.nrfx:6) has direct dependencies (DT_HAS_NORDIC_NRF_UART_ENABLED || DT_HAS_NORDIC_NRF_UARTE_ENABLED) &amp;amp;&amp;amp; SERIAL with value n, but is currently being y-selected by the following symbols:
 - SECURE_BOOT_DEBUG_UART (defined at C:/ncs/v2.5.0/nrf\subsys\bootloader/Kconfig:222), with value y, direct dependencies &amp;lt;choice SECURE_BOOT_DEBUG_BACKEND&amp;gt; (value: y), and select condition &amp;lt;choice SECURE_BOOT_DEBUG_BACKEND&amp;gt; (value: y)

warning: UART_CONSOLE (defined at drivers/console/Kconfig:43) has direct dependencies SERIAL &amp;amp;&amp;amp; SERIAL_HAS_DRIVER &amp;amp;&amp;amp; CONSOLE with value n, but is currently being y-selected by the following symbols:
 - SECURE_BOOT_DEBUG_UART (defined at C:/ncs/v2.5.0/nrf\subsys\bootloader/Kconfig:222), with value y, direct dependencies &amp;lt;choice SECURE_BOOT_DEBUG_BACKEND&amp;gt; (value: y), and select condition &amp;lt;choice SECURE_BOOT_DEBUG_BACKEND&amp;gt; (value: y)

error: Aborting due to Kconfig warnings&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;How can do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot build new image for FOTA through MCUboot</title><link>https://devzone.nordicsemi.com/thread/459206?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2023 14:17:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08638ce7-208a-4602-880c-c6cfa4f70978</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Check out&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/104212/strange-arch_has_stack_protection-behavior/448022"&gt; this post&lt;/a&gt; and &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/104249/error-aborting-due-to-kconfig-warnings-when-adding-config_secure_boot/448211"&gt;this post&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>