<?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>dfu_mcuboot packet has unknown code out of bounds</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94171/dfu_mcuboot-packet-has-unknown-code-out-of-bounds</link><description>Hi: 
 I am using nRF5340, NCS 3.1.99. 
 My software arch is bo+MCUboot+app(appcore + netcore). 
 After building my project, some unknown code in that file, which named &amp;#39;signed_by_mcuboot_and_b0_s0_image_test_update.hex&amp;#39; and &amp;#39;signed_by_mcuboot_and_b0_s1_image_test_update</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 04 Dec 2022 21:02:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94171/dfu_mcuboot-packet-has-unknown-code-out-of-bounds" /><item><title>RE: dfu_mcuboot packet has unknown code out of bounds</title><link>https://devzone.nordicsemi.com/thread/398888?ContentTypeID=1</link><pubDate>Sun, 04 Dec 2022 21:02:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b8ae9f9-11e6-4a88-9901-0041941df3e5</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi Devin,&lt;/p&gt;
&lt;p&gt;The address 0x83ff0 is within flash region of memory map 5340.&lt;/p&gt;
&lt;p&gt;These lines are related to the signing of the mcuboot.&amp;nbsp;Metadata are placed after the end of the image. For the bootloader to be able to determine the current state and what actions should be taken during the current boot operation, it uses metadata stored in the image flash area. This metadata is located at the end of the image flash areas and is called image trailer. You can read more about it here: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/design.html#image-trailer"&gt;Image Trailer&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu_mcuboot packet has unknown code out of bounds</title><link>https://devzone.nordicsemi.com/thread/398017?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 08:09:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9e02f2b-f951-46b8-a49f-9d440d860538</guid><dc:creator>yang.hu</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Naeem,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The last three lines shows there are some code in the 0x83ff0, but this address is application region.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Flash this hex file, the application will be changed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;or my thinking is wrong?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yang Hu&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu_mcuboot packet has unknown code out of bounds</title><link>https://devzone.nordicsemi.com/thread/397707?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2022 15:40:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c35d953-5cbc-42a8-a397-88ce7e264cbc</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi Devin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for sending you configurations.&lt;/p&gt;
&lt;p&gt;I can see what you were pointing to.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think this is the problem.&amp;nbsp;To test this, I just built an unofficial sample (&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/updatable_bootloader"&gt;bootloader_sample_git&lt;/a&gt;) for another DK. I browsed to the &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;image_test_update.hex&lt;/span&gt; and you can see the last three lines matches with your case.&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/pastedimage1669389711743v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu_mcuboot packet has unknown code out of bounds</title><link>https://devzone.nordicsemi.com/thread/397517?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2022 01:21:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:138a3a58-bf92-45ae-9b33-d06e5a9e62e8</guid><dc:creator>yang.hu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for you reply. Here you go:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/16504.hello_5F00_world.zip"&gt;devzone.nordicsemi.com/.../16504.hello_5F00_world.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can build it by using board name &amp;#39;nrf5340dk_nrf5340_cpuapp&amp;#39;. Then open the two hex files, you can see that unknown code at the end.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;devin hu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu_mcuboot packet has unknown code out of bounds</title><link>https://devzone.nordicsemi.com/thread/397466?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2022 14:42:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:510dc9d3-820f-442d-9683-c594a2129d14</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Devin Hu,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for contacting DevZone at NordicSemi.&lt;/p&gt;
&lt;p&gt;I have been assigned this ticket. However, to look more into this, I would request if you could send your configuration and project files to build, see and dig more.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>