<?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>Adding the nRF Secure Bootloader in custom board with nRF5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98688/adding-the-nrf-secure-bootloader-in-custom-board-with-nrf5340</link><description>Hi all, 
 
 I&amp;#39;m developing a project on top of nRF5340. Thus I created a custom board definition in my project area: 
 
 
 That is a direct copy of ncs/zephyr/boards/arm/nrf5340dk_nrf5340/ -folder. Just renamed case sensitively all instances of &amp;quot;nrf5340dk_nrf5340</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Jul 2024 14:30:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98688/adding-the-nrf-secure-bootloader-in-custom-board-with-nrf5340" /><item><title>RE: Adding the nRF Secure Bootloader in custom board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/491882?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 14:30:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0128e4a6-a0fc-4378-bb62-d607c29caf54</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Danny,&lt;/p&gt;
&lt;p&gt;This case is really old now, and it seems your question does not really relate to the topic being discussed. Therefore, I would like to ask you to open a new DevZone case for the question.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding the nRF Secure Bootloader in custom board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/491689?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2024 20:40:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30aa2286-10b2-4b6a-b4c6-499cdd5f6d34</guid><dc:creator>danny0007</dc:creator><description>&lt;p&gt;Hi tgoos,&lt;/p&gt;
&lt;p&gt;could you please share, how did you manage to flash the bootloader in a blank nRF5340?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Danny&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding the nRF Secure Bootloader in custom board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/424836?ContentTypeID=1</link><pubDate>Wed, 10 May 2023 12:22:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:166ad325-112f-41b6-a6a9-3c7dd940d10e</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi tgoos,&lt;/p&gt;
&lt;p&gt;We found the issue yesterday and know the fix. But before we begin, I would like to reiterate that right now, as of NCS v2.3.0, the&amp;nbsp;two-stage bootloader solution is not working.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Below I will explain why the custom board build is different from the built-in-SDK nRF5340 DK board and how to fix it; this thus relieve us of the concern that there is some undiscovered bug in the board definition.&lt;/p&gt;
&lt;p&gt;There is a&amp;nbsp;Kconfig fragment file that is included in b0 child image build for the nrf5340dk_nrf5340_cpuapp and _ns boards.&lt;/p&gt;
&lt;p&gt;However, because&amp;nbsp;your custom board is named differently, the build process will not pick up this fragment file.&lt;/p&gt;
&lt;p&gt;The solution is, via one of many ways, include the necessary configurations into your b0 child image build.&lt;/p&gt;
&lt;p&gt;Here are a couple of options:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Copy that file over as &lt;em&gt;&amp;lt;your project root&amp;gt;/child_image/b0.conf&lt;/em&gt;&lt;br /&gt;The downside is that all builds for non nRF5340 boards will also be affected&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Copy that file over to your project root folder, and include it in the build as a Kconfig fragment for b0 via&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;-Db0_OVERLAY_CONFIG=&amp;lt;&lt;strong&gt;Full&lt;/strong&gt; path to the fragment file&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I am in dialogues with our internal team to investigate a better way to handle the Kconfig configuration for nRF5340 builds.&lt;/p&gt;
&lt;p&gt;References:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/app_dev/multi_image/index.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/app_dev/multi_image/index.html&lt;br /&gt;&lt;/a&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/zephyr/develop/application/index.html#important-build-system-variables"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/zephyr/develop/application/index.html#important-build-system-variables&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding the nRF Secure Bootloader in custom board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/424220?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 10:52:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bc67875-ba60-45b9-8fc3-d72449da6fe3</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi tgoos,&lt;/p&gt;
&lt;p&gt;Please know that I am still around. However, I have been out of office and will only return later this week.&lt;/p&gt;
&lt;p&gt;I was really invested in figuring it out, but I could not see why the MCUboot build steps is&amp;nbsp;largely different on the custom board when enabling&amp;nbsp;both MCUboot and NSIB.&amp;nbsp;I asked some colleagues but&amp;nbsp;there were also no leads. I will try again when I return to office.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding the nRF Secure Bootloader in custom board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/423487?ContentTypeID=1</link><pubDate>Wed, 03 May 2023 10:14:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6770592-fb29-40f8-a3b3-bea9c8bbae96</guid><dc:creator>tgoos</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;I re-tested this and the result is still the same:&lt;/p&gt;
&lt;p&gt;If CONFIG_SECURE_BOOT=y is defined in the prj.conf file, the pristine builds for nrf5340dk_nrf5340_cpuapp_ns and nrf5340dk_nrf5340_cpuapp are fine, but builds for demo_board_cpuapp and demo_board_cpuapp_ns fail with error code: &amp;quot;&lt;em&gt;undefined reference to `sys_clock_cycle_get_32&amp;#39;&lt;/em&gt;&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding the nRF Secure Bootloader in custom board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/422888?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2023 07:23:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ca88654-1ac6-4655-b954-239d4b276fc4</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi tgoos,&lt;/p&gt;
&lt;p&gt;I was able to revisit this topic today. I&amp;nbsp;reproduced your issue with the board I create, except that I have the same build failure when built for the cpuapp_ns board. Could you please double check this point?&lt;/p&gt;
&lt;p&gt;Otherwise, the board you created and the one I did are essentially the same. I involved a colleague, but we still haven&amp;#39;t figured anything out. The compiled DTS and the Kconfig looks the same as the one in a successful nrf5340dk_nrf5340_cpuapp build...&lt;/p&gt;
&lt;p&gt;I wonder if it is something related to the unfinished part of the two-stage bootloader solution... If it is alright with you, I would like to set this aside and retry when the two-stage bootloader solution is released for the nRF5340.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding the nRF Secure Bootloader in custom board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/421390?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2023 07:42:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60621689-4d4b-47c7-9799-7942f2fd2113</guid><dc:creator>tgoos</dc:creator><description>&lt;p&gt;We will do that, thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding the nRF Secure Bootloader in custom board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/421388?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2023 07:39:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f51b70c-9892-4e91-9685-2d2506501d67</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;I understand the concern about&amp;nbsp;freezing the hardware choices as early as possible. I cannot comment about schedules on DevZone. However, a Regional Sales Manager (RSM) can help you with that.&amp;nbsp;May I suggest you contact your local RSM to share your concern and interest on this feature and ask&amp;nbsp;if they have any estimation?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding the nRF Secure Bootloader in custom board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/421386?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2023 07:36:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:871c0c0e-dfb8-4e44-a9c7-dbb796e6d462</guid><dc:creator>tgoos</dc:creator><description>&lt;p&gt;Thanks for the info Hieu,&lt;/p&gt;
&lt;p&gt;This is not a showstopper for us at the moment. I can go on using the app.overlay instead of a full project device-tree configuration for now.&lt;/p&gt;
&lt;p&gt;The lack of two stage bootloader support is more to worry. Now it would be a lot easier and cheaper to switch to another hardware solution than in a later phase of the project. However we trust that you are able to tackle that problem within the next couple of months.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding the nRF Secure Bootloader in custom board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/421336?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2023 21:35:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18a93a53-f648-4af7-9cd0-6f80f9a1d03b</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi tgoos,&lt;/p&gt;
&lt;p&gt;Please know that I am still around and is trying to get to your question.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is taking more time because we are facing a bit too many questions due to some unavailability&amp;nbsp;in the team.&lt;br /&gt;I am also&amp;nbsp;partially out of office from now until the end of next week, but I will try to get to it within the next three working days.&lt;/p&gt;
&lt;p&gt;My apology for the inconvenience. Please let me know if it is urgent.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding the nRF Secure Bootloader in custom board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/420788?ContentTypeID=1</link><pubDate>Mon, 17 Apr 2023 13:08:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bd1dd0a-e50d-4080-88de-f9e164f9e25a</guid><dc:creator>tgoos</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;Thanks for your patience and guidance.&lt;/p&gt;
&lt;p&gt;Here is my boards folder zipped. Just in case you have a different result in your testing, you can compare.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/demoBoard.zip"&gt;devzone.nordicsemi.com/.../demoBoard.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have my project definition and source in a separate folder as suggested in the references you posted above. But I wanted to be sure that the problems are not related to my environment (other than the boards-folder), so I tried building the Zephyr samples and used that also in my last post to minimize the differences between our environments.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding the nRF Secure Bootloader in custom board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/420716?ContentTypeID=1</link><pubDate>Mon, 17 Apr 2023 10:16:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:650d3aee-62c2-4377-a2b9-0f6a462ae724</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi tgoos,&lt;/p&gt;
&lt;p&gt;You can upload the files right here with this interface:&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/pastedimage1681726257044v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If the board is still just a renamed copy like that, I will take an attempt at it and get back to you.&lt;/p&gt;
&lt;p&gt;By the way, the current recommended way to add a board is to do it in your own application folder. So, I will try it like that. I also prefer not to make modifications to my SDK except when it is necessary, in order to prevent future confusion.&lt;/p&gt;
&lt;p&gt;Refer:&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/app_dev/board_support/index.html#custom-boards"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/app_dev/board_support/index.html#custom-boards&lt;/a&gt;&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/develop/application/index.html#custom-board-definition"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/develop/application/index.html#custom-board-definition&lt;/a&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/develop/application/index.html#custom-board-definition"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding the nRF Secure Bootloader in custom board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/420715?ContentTypeID=1</link><pubDate>Mon, 17 Apr 2023 10:10:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:618d3283-56d7-44eb-81f7-eb0fa1ade46f</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Christian,&lt;/p&gt;
[quote user="Rantanplan"]I&amp;#39;m now wondering how the correct configuration for main application and network core update, but not MCUboot update, should look like.[/quote]
&lt;p&gt;There is a guide on that here:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/app_dev/bootloaders_and_dfu/index.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/app_dev/bootloaders_and_dfu/index.html&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you have a difficulty with setting that up, please consider opening a new DevZone question depends on whether the issue is relevant to the topic of this current DevZone thread or not.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding the nRF Secure Bootloader in custom board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/420695?ContentTypeID=1</link><pubDate>Mon, 17 Apr 2023 08:59:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:942fa2a8-cca0-45fa-89dd-f10ddeecb1ab</guid><dc:creator>tgoos</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;Yes, I can share my boards-folder. Do you have a file sharing server to suggest?&lt;/p&gt;
&lt;p&gt;But you can repeat my actions rather easily too (~15 min work). Take a copy of the ./ncs/zephyr/boards/arm/nrf5340dk_nrf5340 -folder to somewhere like: /home/user/test/boards/arm/demo_board and rename all nrf5340dk_nrf5340 to something else (I had demo_board).&lt;/p&gt;
&lt;p&gt;Then go to ./ncs/zephyr/samples/hello_world and try building these:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build -b demo_board_cpuapp_ns -d build_demo -- -DBOARD_ROOT=/home/user/test
west build -b demo_board_cpuapp_ns -d build_demo_sec -- -DBOARD_ROOT=/home/user/test -DCONFIG_SECURE_BOOT=y
west build -b nrf5340dk_nrf5340_cpuapp_ns -d build_nrf5340_sec -- -DBOARD_ROOT=/home/user/test -DCONFIG_SECURE_BOOT=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You should see the first and last ones be successful and the middle one to fail.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding the nRF Secure Bootloader in custom board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/420674?ContentTypeID=1</link><pubDate>Mon, 17 Apr 2023 07:59:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e145d862-908a-4bbe-a15b-5c86d90af4cc</guid><dc:creator>Rantanplan</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;many thanks for the explanation.&lt;/p&gt;
&lt;p&gt;No, it is not the tgoos&amp;#39; project, I just ran into the same&amp;nbsp;&lt;span&gt;&amp;quot;undefined reference to `sys_clock_cycle&amp;quot; error, if SECURE_BOOT was enabled.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Therefore I&amp;nbsp;took a&amp;nbsp;NRF5340DK board and the default&amp;nbsp;nrf5340dk_nrf5340_cpuapp definition, where I realized that the MCUboot was not updated and the net core logging was not working.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m now wondering how the correct configuration for main application and network core update, but not MCUboot update, should look like.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Christian&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding the nRF Secure Bootloader in custom board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/420662?ContentTypeID=1</link><pubDate>Mon, 17 Apr 2023 07:19:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c1db475-a58b-4b2f-a0fc-269ccf643808</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Christian,&lt;/p&gt;
&lt;p&gt;As I explained in my previous reply. The &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/nrf/app_dev/bootloaders_and_dfu/bootloader_adding.html#adding-an-upgradable-bootloader"&gt;two-stage bootloader&lt;/a&gt;, aka &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/nrf/samples/bootloader/README.html"&gt;NSIB&lt;/a&gt; + &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/mcuboot/wrapper.html"&gt;MCUboot&lt;/a&gt;, does not work correctly on the nRF5340 at the moment. A fix will come, but right now, with NCS v2.3.0, update does not work. The corruption you see with the network core is likely a result of that.&lt;/p&gt;
&lt;p&gt;Are you working with tgoos on the same project? If so, please understand that I did not ask for the board file to help you get the two-stage bootloader to work. It is to look into why there are differences between building with the custom board definition and with the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/zephyr/boards/arm/nrf5340dk_nrf5340/doc/index.html"&gt;nrf5340dk_nrf5340_cpuapp_*&lt;/a&gt; definition.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding the nRF Secure Bootloader in custom board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/420633?ContentTypeID=1</link><pubDate>Sun, 16 Apr 2023 21:52:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ace62dc5-c066-4448-8161-5641694936ba</guid><dc:creator>Rantanplan</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I tried the following project:&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/simon-iversen/ncs_samples/tree/master/update_mcuboot_app_and_netcore"&gt;https://github.com/simon-iversen/ncs_samples/tree/master/update_mcuboot_app_and_netcore&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and it did not run into the &amp;quot;undefined reference to `sys_clock_cycle&amp;quot; error discussed above. The MCUboot&amp;nbsp;image was uploaded, but still the old MCUboot has been booted.&lt;/p&gt;
&lt;p&gt;Furthermore, I cannot see any meaningful log messages from the network core. The output gets stuck at&lt;/p&gt;
&lt;p&gt;*** *** Booting Zephyr OS build v3.2.99-ncs2 ***&lt;br /&gt;*** ing (0x1008800).&lt;/p&gt;
&lt;p&gt;I would be thankful for every suggestion how get more log information from the network core.&lt;/p&gt;
&lt;p&gt;Many thanks in advance.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Christian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding the nRF Secure Bootloader in custom board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/420384?ContentTypeID=1</link><pubDate>Fri, 14 Apr 2023 06:36:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2923504d-1992-4b34-a490-ceecacdebc25</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi tgoos,&lt;/p&gt;
&lt;p&gt;While the two-stage bootloader can build and boot successfully,&amp;nbsp;it&amp;nbsp;won&amp;#39;t be able to perform MCUboot DFU. This is what I meant by the setup not working.&lt;/p&gt;
&lt;p&gt;The fact that your custom board and the nrf5340dk_nrf5340_cpu.*&amp;nbsp;builds differently is not good. As you have just begun to create it and everything still have a pretty generic name, do you mind uploading it here so I can debug it a little?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding the nRF Secure Bootloader in custom board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/420208?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2023 11:18:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1ca2347-0257-4b25-880e-fad3103b90ac</guid><dc:creator>tgoos</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;Thanks for your fast response.&lt;/p&gt;
&lt;p&gt;Compiling for nrf5340dk_nrf5340_cpuapp_ns does not cause any errors. I&amp;#39;m able to build and the log from the devkit shows successful two-stage boot:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v3.2.99-ncs2 ***
Attempting to boot slot 0.
Attempting to boot from address 0x8200.
Verifying signature against key 0.
Hash: 0xa3...f1
Firmware signature verified.
Firmware version 1
Setting monotonic counter (version: 1, slot: 0)
*** Booting Zephyr OS build v3.2.99-ncs2 ***
I: Starting bootloader
I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Swap type: none
I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Swap type: none
I: Bootloader chainload address offset: 0x28000
*** Booting Zephyr OS build v3.2.99-ncs2 ***
[00:00:00.000,427] &amp;lt;inf&amp;gt; MAIN: built for nrf5340dk_nrf5340_cpuapp!&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Here both Secure Bootloader &amp;amp; MCUboot are enabled.&lt;/p&gt;
&lt;p&gt;I have checked and double checked the differences between the board configuration folders, but there still might be some illegal configurations. I have more experience with the old nRF SDK and I&amp;#39;m new to the Zephyr &amp;amp; nRF Connect SDK environment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding the nRF Secure Bootloader in custom board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/420172?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2023 10:23:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee18aebe-d101-46cf-9fb5-4171532e3ab5</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi tgoos,&lt;/p&gt;
&lt;p&gt;Unfortunately, the two-stage bootloader solution doesn&amp;#39;t work on the nRF5340 at the moment.&lt;/p&gt;
&lt;p&gt;I am however a little concern about your custom board setup.&amp;nbsp;Do you have the exact same error messages when compiling for a normal nrf5340dk_nrf5340_cpuapp_ns board?&lt;br /&gt;If you don&amp;#39;t, that is a sign of an underlying issue.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>