<?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>Firmware update without DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95192/firmware-update-without-dfu</link><description>Hi, I am new to the Nordic environment. So far I have done all the integration by going through your examples code which is very good. 
 Now, one thing I have no knowledge about is updating the firmware image(non-secure + TF-M) without using DFU. 
 I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Jan 2023 13:39:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95192/firmware-update-without-dfu" /><item><title>RE: Firmware update without DFU</title><link>https://devzone.nordicsemi.com/thread/406673?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 13:39:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:325022c6-e21b-440f-bae5-4a1935ef4807</guid><dc:creator>Henrique</dc:creator><description>&lt;p&gt;Hi Marte!&lt;br /&gt;&lt;br /&gt;I&amp;#39;m using Zephyr and when I include CONFIG_BOOTLOADER_MCUBOOT=y and build using nRF Connect, a signed image is already generated (app_signed.hex). My questions are:&lt;br /&gt;&lt;br /&gt;1. Can I use this file&amp;#39;s content to perform the update? I&amp;nbsp;guess&amp;nbsp;that with this method, a default publick key is used, but as it&amp;#39;s not for production yet, there&amp;#39;s no problem with this.&lt;br /&gt;&lt;br /&gt;2. To write the firmware image into MCUboot secondary slot, I should call dfu_target_write() multiple times using a buffer with the app_signed.hex data?&lt;br /&gt;&lt;br /&gt;3. The buffer&amp;nbsp;passed&amp;nbsp;to dfu_target_write() should contain ONLY the data bytes? Because a single line of the hex file is&amp;nbsp;made up&amp;nbsp;of&amp;nbsp;start code, byte count, address, record type, data and checksum.&lt;br /&gt;&lt;br /&gt;4. When I use&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/libraries/dfu/dfu_target.html#c.dfu_target_init"&gt;dfu_target_init()&lt;/a&gt;, file_size should be the size of app_signed.hex or the number of bytes that are effectively going to be written to the flash? I&amp;#39;m currently receiving the data of app_signed.hex via UART without any&amp;nbsp;transfer encoding or management protocol (such as SMP and mcumgr).&lt;br /&gt;&lt;br /&gt;My application&amp;#39;s prj.conf:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LOG=y
CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_DFU_TARGET=y
CONFIG_MCUBOOT_IMAGE_VERSION=&amp;quot;0.0.1&amp;quot;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware update without DFU</title><link>https://devzone.nordicsemi.com/thread/406467?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2023 13:30:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1412ce4e-d1da-49d6-9ba7-5e9847bded12</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see that you have asked about the same issue in &lt;a href="https://devzone.nordicsemi.com/support-private/support/301655"&gt;301655&lt;/a&gt;. Please do not create duplicate tickets or ask about the same problem in multiple tickets. My colleague will continue in 301655, and I will close this as a duplicate.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware update without DFU</title><link>https://devzone.nordicsemi.com/thread/406267?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2023 13:49:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e6e7810-5020-460c-8eaf-104310cc6273</guid><dc:creator>Jithin A</dc:creator><description>&lt;p&gt;PFA,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/dfu_5F00_integration_5F00_build_5F00_log.txt"&gt;devzone.nordicsemi.com/.../dfu_5F00_integration_5F00_build_5F00_log.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware update without DFU</title><link>https://devzone.nordicsemi.com/thread/406252?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2023 13:06:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4e928e6-005e-4d21-97e9-da7e90815716</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please do a pristine build and copy and upload the entire build output here.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware update without DFU</title><link>https://devzone.nordicsemi.com/thread/406228?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2023 12:24:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38b6569e-601b-40c0-997c-ed1768b4f01d</guid><dc:creator>Jithin A</dc:creator><description>&lt;p&gt;Hi Marte,&lt;/p&gt;
&lt;p&gt;Thank you for the response but sorry I still see the same error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware update without DFU</title><link>https://devzone.nordicsemi.com/thread/406175?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2023 08:48:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88bf1ece-b42c-4955-bd55-dd8a6c73bb35</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You must include dfu_target.h file in your file:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;#include &amp;lt;dfu/dfu_target.h&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Additionally, you must enable DFU target in prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;CONFIG_DFU_TARGET=y&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware update without DFU</title><link>https://devzone.nordicsemi.com/thread/406145?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2023 05:00:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1015dd3c-c920-40d3-a39c-ff5ece804c49</guid><dc:creator>Jithin A</dc:creator><description>&lt;p&gt;Below is the error I see:&lt;/p&gt;
&lt;p&gt;undefined reference to `dfu_target_done&amp;#39;&lt;br /&gt;undefined reference to `dfu_target_offset_get&amp;#39;&lt;br /&gt;undefined reference to `dfu_target_schedule_update&amp;#39;&lt;br /&gt;&lt;span&gt;undefined reference to `dfu_target_write&amp;#39;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware update without DFU</title><link>https://devzone.nordicsemi.com/thread/406075?ContentTypeID=1</link><pubDate>Mon, 23 Jan 2023 15:26:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd817885-e341-41dd-8a39-f9370165564d</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Jithin A"]I try to integrate the dfu_target APIs into my application image and I see undefined reference to the dfu APIs.[/quote]
&lt;p&gt;Please share the error you are getting.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware update without DFU</title><link>https://devzone.nordicsemi.com/thread/405950?ContentTypeID=1</link><pubDate>Mon, 23 Jan 2023 07:12:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27b0a2bd-6759-4eec-936e-d5754ba20218</guid><dc:creator>Jithin A</dc:creator><description>&lt;p&gt;Hi Marte, any update on this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware update without DFU</title><link>https://devzone.nordicsemi.com/thread/405796?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2023 09:42:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21a52d37-813e-4e28-a524-63a1f3946fd2</guid><dc:creator>Jithin A</dc:creator><description>&lt;p&gt;Hi Marte, I try to integrate the dfu_target APIs into my application image and I see undefined reference to the dfu APIs.&lt;/p&gt;
&lt;p&gt;I know I am missing something to say include dfu_target APIs into my application but I do not know what I need to add/do to enable.&lt;/p&gt;
&lt;p&gt;Please guide me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware update without DFU</title><link>https://devzone.nordicsemi.com/thread/402742?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2023 08:01:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:087cb1ca-15ef-41f1-b8b8-13181d196e9c</guid><dc:creator>Jithin A</dc:creator><description>&lt;p&gt;Hi Marte,&lt;/p&gt;
&lt;p&gt;Thank you for the suggestion.&lt;/p&gt;
&lt;p&gt;I try using nrfjprog commands to program and confirm it is working.&lt;/p&gt;
&lt;p&gt;*** Booting Zephyr OS build v3.2.99-ncs1 ***&lt;br /&gt;Attempting to boot slot 0.&lt;br /&gt;Attempting to boot from address 0x8200.&lt;br /&gt;Verifying signature against key 0.&lt;br /&gt;Hash: 0x8d...d1&lt;br /&gt;Firmware signature verified.&lt;br /&gt;Firmware version 1&lt;br /&gt;*** Booting Zephyr OS build v3.2.99-ncs1 ***&lt;br /&gt;I: Starting bootloader&lt;br /&gt;I: Primary image: magic=good, swap_type=0x4, copy_done=0x1, image_ok=0x1&lt;br /&gt;I: Secondary image: magic=good, swap_type=0x1, copy_done=0x3, image_ok=0x3&lt;br /&gt;I: Boot source: none&lt;br /&gt;I: Swap type: test&lt;br /&gt;I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3&lt;br /&gt;I: Secondary image: magic=good, swap_type=0x1, copy_done=0x3, image_ok=0x3&lt;br /&gt;I: Boot source: none&lt;br /&gt;I: Starting swap using move algorithm.&lt;br /&gt;I: Bootloader chainload address offset: 0x28000&lt;br /&gt;*** Booting Zephyr OS build v3.2.99-ncs1 ***&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your support.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware update without DFU</title><link>https://devzone.nordicsemi.com/thread/402737?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2023 07:25:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dad4ac4a-7628-4209-8a74-6afb3ec98aa1</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please select &lt;strong&gt;Enable MCUboot&lt;/strong&gt; in the Programmer. &lt;/p&gt;
&lt;p&gt;You can also try using nrfjprog. For a list of commands see &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf_cltools/UG/cltools/nrf_nrfjprogexe_reference.html?cp=10_1_3_0"&gt;nrfjprog commands&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware update without DFU</title><link>https://devzone.nordicsemi.com/thread/402694?ContentTypeID=1</link><pubDate>Fri, 30 Dec 2022 14:42:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2eed0c16-e0fe-4021-b1b5-dc0fa530f2d4</guid><dc:creator>Jithin A</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I try programming the &lt;span&gt;app_moved_test_update.hex&lt;/span&gt; image with nRF Connect Programmer and I see it does not boot the device and also I observe no logs.&lt;/p&gt;
&lt;p&gt;Attached the screenshot of the programmer window.&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/nRF_5F00_Connect_5F00_Programmer_5F00_blinky.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In the above image you can see the &lt;strong&gt;Write&amp;nbsp;&lt;/strong&gt;option is disabled, I only have &lt;strong&gt;Erase &amp;amp; write&lt;/strong&gt; option and which I think it is erasing mcuboot too.&lt;/p&gt;
&lt;p&gt;I did not find any mcuboot image to program along side the application image.&lt;/p&gt;
&lt;p&gt;Am I missing something here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware update without DFU</title><link>https://devzone.nordicsemi.com/thread/402676?ContentTypeID=1</link><pubDate>Fri, 30 Dec 2022 13:03:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ec5a89c-021e-4edf-b538-6a8430ea1335</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Great to hear that it works.&lt;/p&gt;
[quote user="Jithin A"]I see it has also generated hex file for FOTA &amp;quot;&lt;span&gt;app_moved_test_update.hex&amp;quot;&lt;/span&gt;[/quote]
&lt;p&gt;If you are interested, you can find more information about the generated build files in &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/app_build_system.html#app-build-output-files"&gt;Output build files&lt;/a&gt;. If you scroll down you will also find information about MCUboot output build files.&lt;/p&gt;
[quote user="Jithin A"]One last question, how can I program this hex file using your nRF Connect Desktop tool or if any other method.[/quote]
&lt;p&gt;You can program it using the &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nc_programmer/UG/nrf_connect_programmer/ncp_introduction.html"&gt;nRF Connect Programmer&lt;/a&gt; in nRF Connect for Desktop, or you can use &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf_cltools/UG/cltools/nrf_nrfjprogexe.html"&gt;nrfjprog&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware update without DFU</title><link>https://devzone.nordicsemi.com/thread/402658?ContentTypeID=1</link><pubDate>Fri, 30 Dec 2022 11:36:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fde310a-127f-40a4-92b3-07424c73918a</guid><dc:creator>Jithin A</dc:creator><description>&lt;p&gt;Hi Marte,&lt;/p&gt;
&lt;p&gt;Thank you so much for your support I ran a blinky application with mcuboot enabled and is working fine.&lt;/p&gt;
&lt;p&gt;Please see the below logs after the boot&lt;/p&gt;
&lt;p&gt;*** Booting Zephyr OS build v3.2.99-ncs1 ***&lt;br /&gt;Attempting to boot slot 0.&lt;br /&gt;Attempting to boot from address 0x8200.&lt;br /&gt;Verifying signature against key 0.&lt;br /&gt;Hash: 0x8d...d1&lt;br /&gt;Firmware signature verified.&lt;br /&gt;Firmware version 1&lt;br /&gt;Setting monotonic counter (version: 1, slot: 0)&lt;br /&gt;*** Booting Zephyr OS build v3.2.99-ncs1 ***&lt;br /&gt;I: Starting bootloader&lt;br /&gt;I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3&lt;br /&gt;I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3&lt;br /&gt;I: Boot source: none&lt;br /&gt;I: Swap type: none&lt;br /&gt;I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3&lt;br /&gt;I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3&lt;br /&gt;I: Boot source: none&lt;br /&gt;I: Swap type: none&lt;br /&gt;I: Bootloader chainload address offset: 0x28000&lt;br /&gt;*** Booting Zephyr OS build v3.2.99-ncs1 ***&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I see it has also generated hex file for FOTA &amp;quot;&lt;span&gt;app_moved_test_update.hex&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;One last question, how can I program this hex file using your nRF Connect Desktop tool or if any other method.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is because our App is still on development and in the meanwhile I need to test OTA so I can confirm the image from the secondary slot is being booted on OTA.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I appreciate your support.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you once again for guiding me all through&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware update without DFU</title><link>https://devzone.nordicsemi.com/thread/402508?ContentTypeID=1</link><pubDate>Thu, 29 Dec 2022 09:58:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19ede334-e480-4429-bd50-e5dfbf7e9a95</guid><dc:creator>Jithin A</dc:creator><description>&lt;p&gt;Thank you so much.&lt;/p&gt;
&lt;p&gt;I am on the right place.&lt;/p&gt;
&lt;p&gt;let me try it on my end and get back if any.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware update without DFU</title><link>https://devzone.nordicsemi.com/thread/402506?ContentTypeID=1</link><pubDate>Thu, 29 Dec 2022 09:53:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c128fc3-7495-4613-b1bc-426b6d8c45e1</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Jithin A"]1. How to insert header and trailer metadata to my application image?[/quote]
&lt;p&gt;You can use imgtool to sign images and add metadata, see the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/mcuboot/imgtool.html"&gt;imgtool documentation&lt;/a&gt;. Additionally, you can generate private and public keys with imgtool. Make sure to add the &lt;code&gt;--pad&lt;/code&gt; flag for the image trailer.&lt;/p&gt;
&lt;p&gt;For an example on how to use imgtool for manually signing you can check out one of my colleagues examples:&amp;nbsp;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/keys_and_signatures/mcuboot_manual_sign"&gt;mcuboot_manual_sign&lt;/a&gt;. Please not that in that example, mcumgr is used, so the necessary commands will differ somewhat from what you should use.&amp;nbsp;See the documentation above for more information about the different flags and which you should use.&lt;/p&gt;
[quote user="Jithin A"]2. How to write any data into the specific address in the flash?[/quote]
&lt;p&gt;If you use the function&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/libraries/dfu/dfu_target.html#c.dfu_target_write"&gt;dfu_target_write()&lt;/a&gt;, the firmware image will be written into MCUboots secondary slot, see&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/libraries/dfu/dfu_target.html#mcuboot-style-upgrades"&gt;MCUboot-style upgrades&lt;/a&gt;&amp;nbsp;for more information on this.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware update without DFU</title><link>https://devzone.nordicsemi.com/thread/402484?ContentTypeID=1</link><pubDate>Thu, 29 Dec 2022 03:23:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a531a5f8-61fb-49ef-b2ab-57fdf60f578a</guid><dc:creator>Jithin A</dc:creator><description>&lt;p&gt;Thank you so much for the reference&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I see it&amp;rsquo;s a lot of things to take in. &lt;br /&gt;Anyway after going through the bootloader reference you shared earlier, I have below 2 questions&lt;/p&gt;
&lt;p&gt;1. How to insert header and trailer metadata to my application image?&lt;/p&gt;
&lt;p&gt;2. How to write any data into the specific address in the flash?&lt;br /&gt;&amp;mdash;&amp;gt; Currently I am using PSA protected storage APIs for accessing flash inside TF-M and I see I can not specify the destination address in any of PSA PS APIs.&lt;/p&gt;
&lt;p&gt;NOTE: I have TF-M partition in my application and anything I need to do with the flash are should be done inside TF-M partition.&lt;br /&gt;I can not use non-secure partition due to some security purposes.&lt;/p&gt;
&lt;p&gt;Please guide me through this.&lt;/p&gt;
&lt;p&gt;I appreciate your support.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware update without DFU</title><link>https://devzone.nordicsemi.com/thread/402355?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2022 08:04:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7eafa763-f742-425e-b383-7bea6afd100b</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for clarifying. As long as you have MCUboot enabled and save the image in the correct area in flash and with the correct metadata (header + trailer), then the transport method is irrelevant. To enable MCUboot you must set the following configuration in prj.conf:&lt;/p&gt;
&lt;p&gt;CONFIG_BOOTLOADER_MCUBOOT=y&lt;/p&gt;
&lt;p&gt;The metadata can contain information about booting information, image hash, etc. You can find more about this, both header and trailer, in&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/mcuboot/design.html"&gt;MCUboot Bootloader Design&lt;/a&gt;. There you will also find information about image slots, swapping, and more.&lt;/p&gt;
&lt;p&gt;As for area in flash, when you enable MCUboot with the configuration above, the partition manager will automatically configure partitions. You can see the partitions after you have built the application by running the following command:&lt;/p&gt;
&lt;p&gt;west build -t partition_manager_report&lt;/p&gt;
&lt;p&gt;If you are using VS Code with our extension you can also see it by selecting the&amp;nbsp;&lt;strong&gt;Memory&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;report&lt;/strong&gt; action, and going to&amp;nbsp;&lt;strong&gt;Partitions&lt;/strong&gt; in the generated report. As an example, adding MCUboot support to the Blinky sample, the partitions will look lilke this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;  flash_primary (0x100000 - 1024kB):
+-------------------------------------------------+
| 0x0: mcuboot (0xc000 - 48kB)                    |
+---0xc000: mcuboot_primary (0x7a000 - 488kB)-----+
| 0xc000: mcuboot_pad (0x200 - 512B)              |
+---0xc200: mcuboot_primary_app (0x79e00 - 487kB)-+
| 0xc200: app (0x79e00 - 487kB)                   |
+-------------------------------------------------+
| 0x86000: mcuboot_secondary (0x7a000 - 488kB)    |
+-------------------------------------------------+

  sram_primary (0x40000 - 256kB):
+--------------------------------------------+
| 0x20000000: sram_primary (0x40000 - 256kB) |
+--------------------------------------------+&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;As you can see, here the primary MCUboot image slot starts at&amp;nbsp;0xc000, and the secondary image slot at&amp;nbsp;0x86000.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware update without DFU</title><link>https://devzone.nordicsemi.com/thread/402348?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2022 06:44:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a38907d2-b0a5-453a-9753-a7a4173a74a3</guid><dc:creator>Jithin A</dc:creator><description>&lt;p&gt;Hello, just to let you know that I need to implement this onto my project with high priority.&lt;/p&gt;
&lt;p&gt;Please let me know if I am missing anything to explain my need.&lt;/p&gt;
&lt;p&gt;Please help me with the integration ASAP.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware update without DFU</title><link>https://devzone.nordicsemi.com/thread/402346?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2022 05:09:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14e66270-e1af-4453-8d66-8dabc4acbf9e</guid><dc:creator>Jithin A</dc:creator><description>&lt;p&gt;Any update on the above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware update without DFU</title><link>https://devzone.nordicsemi.com/thread/402298?ContentTypeID=1</link><pubDate>Tue, 27 Dec 2022 13:51:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:662d4ee2-ac77-409a-98e8-3b5067e83124</guid><dc:creator>Jithin A</dc:creator><description>&lt;p&gt;The reason I do not want to do DFU is we are using our own crypto&amp;nbsp;algorithms to transfer any data over BLE.&lt;/p&gt;
&lt;p&gt;Let me explain what I need to do actually&lt;/p&gt;
&lt;p&gt;I get the FW image over BLE which later it is decrypted and is stored in the desired partition.&lt;/p&gt;
&lt;p&gt;Now on the next boot, I need the bootloader to check if there is any new image downloaded and boot the new image if so.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware update without DFU</title><link>https://devzone.nordicsemi.com/thread/402293?ContentTypeID=1</link><pubDate>Tue, 27 Dec 2022 13:32:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e41a5721-9a7e-4898-a672-4ac2faea9039</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you clarify what you mean by not wanting to do fw update over DFU? DFU is device firmware update, so if you want to update your device, then this will be DFU, Do you mean that you do not want to update the device over serial (e.g. UART), but only over the air?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>