<?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>MCUboot not running application code on the nRF5340 DK board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72639/mcuboot-not-running-application-code-on-the-nrf5340-dk-board</link><description>Dear Concern, 
 work environment : nRF Connect SDK , nRF5340 DK board and Segger Embedded Studio 
 sample code : fade_led (using for my testing purpose) 
 Added immutable bootloader and upgradable bootloader to fade_led application as shown in below through</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Mar 2021 14:42:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72639/mcuboot-not-running-application-code-on-the-nrf5340-dk-board" /><item><title>RE: MCUboot not running application code on the nRF5340 DK board</title><link>https://devzone.nordicsemi.com/thread/300182?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 14:42:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27fd16bb-087e-4735-9d46-b5406a2a6b10</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hello again,&lt;br /&gt;&lt;br /&gt;I&amp;#39;m glad to hear that!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot not running application code on the nRF5340 DK board</title><link>https://devzone.nordicsemi.com/thread/300139?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 13:06:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:405ba9f3-b33f-4fc5-9de3-d8511cefe459</guid><dc:creator>SRINI</dc:creator><description>&lt;p&gt;Hi Carl,&lt;/p&gt;
&lt;p&gt;Thank you so much for your support .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am able to compile code through Segger embedded studio and west command also.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards,&lt;/p&gt;
&lt;p&gt;Srinivas.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot not running application code on the nRF5340 DK board</title><link>https://devzone.nordicsemi.com/thread/299401?ContentTypeID=1</link><pubDate>Fri, 12 Mar 2021 08:49:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0202246-5932-4e3f-9c0e-f61aec193b19</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again,&amp;nbsp;&lt;span&gt;Srinivas!&lt;br /&gt;&lt;br /&gt;In your&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;&amp;quot;&lt;strong&gt;method 1&lt;/strong&gt;&amp;quot; you should not disable the two bootloaders in menuconfig (step. 2). This will disable MCUBoot and Secure Boot for the whole project, even if they are enabled in the &amp;quot;prj.conf&amp;quot;. You should only need to reopen the project and build after the configuration has been added to prj.conf.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The configuration used by Segger Embedded Studio is generated from prj.conf. You can read more about how to properly configuring your application in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_modifying.html#configuring-your-application"&gt;documentation&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot not running application code on the nRF5340 DK board</title><link>https://devzone.nordicsemi.com/thread/299376?ContentTypeID=1</link><pubDate>Fri, 12 Mar 2021 03:30:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57f29eb0-955a-495a-a11a-5407a4d0e861</guid><dc:creator>SRINI</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you so much for your quick reply.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Method 1:&lt;/strong&gt; please check below steps for your information&lt;/p&gt;
&lt;p&gt;step 1:&lt;/p&gt;
&lt;p&gt;I have included&amp;nbsp;CONFIG_BOOTLOADER_MCUBOOT=y and&amp;nbsp;CONFIG_SECURE_BOOT=y in prj.conf file as per your suggestion.&lt;/p&gt;
&lt;p&gt;step 2:&lt;/p&gt;
&lt;p&gt;Disabled below configuration :&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Project -&amp;gt; Configure nRF Connect SDK Project -&amp;gt; menuconfig -&amp;gt; modules -&amp;gt; nrf -&amp;gt; Nordic NRF Connect -&amp;gt; Bootloader -&amp;gt; Select the &amp;ldquo;Use Secure Bootloader &amp;ldquo;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Project -&amp;gt; Configure nRF Connect SDK Project -&amp;gt; menuconfig -&amp;gt; bootoptions -&amp;gt;select the &amp;ldquo;MCU bootloader support.&amp;rdquo;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;step 3:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;compiled code through segger Embedded studio . code compiled without errors but bootloader not configured . only fade_led application compiled.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;NOTE&lt;/strong&gt; : It seems to be prj.conf file not consider when compile with segger embedded studio.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;Method 2:&lt;/strong&gt; please check below steps for your information&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;step 1: windows command prompt opened as an administrator.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;step 2: windows environment variables created as per project requirement&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;step 3: enter below command in the command terminal&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;west build --board nrf5340dk_nrf5340_cpuapp C:/Nordic/v1.5.0/zephyr/samples/basic/fade_led -- -DCONFIG_SECURE_BOOT=y -DCONFIG_BOOTLOADER_MCUBOOT=y&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;step 4:&amp;nbsp; As per my observation, compiled code successfully (with immutable bootloader, mcuboot and application) without any errors.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;step 5: Able to see &lt;strong&gt;merged.hex&lt;/strong&gt; file in&amp;nbsp;C:\v1.5.0\build\zephyr&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;step 6 : flashed code into nRF 5340 DK board.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;step 7: As per my observation, bootloader and application running on the board.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;NOTE&lt;/strong&gt; : It seems to be working when compiled code through command in command prompt.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;please check below logs for your information.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-- west build: building application&lt;br /&gt;[0/184] Generating extra provision key files&lt;br /&gt;[1/184] Generating signing key&lt;br /&gt;[3/184] Creating public key from private key used for signing&lt;br /&gt;[4/184] Creating data to be provisioned to the Bootloader, storing to provision.hex&lt;br /&gt;[77/184] Performing build step for &amp;#39;b0_subimage&amp;#39;&lt;br /&gt;[138/143] Linking C executable zephyr\zephyr_prebuilt.elf&lt;br /&gt;Memory region Used Size Region Size %age Used&lt;br /&gt; FLASH: 28344 B 32 KB 86.50%&lt;br /&gt; SRAM: 4584 B 504 KB 0.89%&lt;br /&gt; IDT_LIST: 56 B 2 KB 2.73%&lt;br /&gt;[143/143] Linking C executable zephyr\zephyr.elf&lt;br /&gt;[162/184] Linking C executable zephyr\zephyr_prebuilt.elf&lt;br /&gt;Memory region Used Size Region Size %age Used&lt;br /&gt; FLASH: 31016 B 441856 B 7.02%&lt;br /&gt; SRAM: 8112 B 504 KB 1.57%&lt;br /&gt; IDT_LIST: 72 B 2 KB 3.52%&lt;br /&gt;[173/184] Performing build step for &amp;#39;mcuboot_subimage&amp;#39;&lt;br /&gt;[251/256] Linking C executable zephyr\zephyr_prebuilt.elf&lt;br /&gt;Memory region Used Size Region Size %age Used&lt;br /&gt; FLASH: 40820 B 48 KB 83.05%&lt;br /&gt; SRAM: 26380 B 504 KB 5.11%&lt;br /&gt; IDT_LIST: 72 B 2 KB 3.52%&lt;br /&gt;[256/256] Linking C executable zephyr\zephyr.elf&lt;br /&gt;[181/184] Creating signature of application&lt;br /&gt;[182/184] Creating validation for zephyr.hex, storing to&lt;br /&gt;[184/184] Generating zephyr/merged.hex&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;please suggest me, how can i compile fade_led code with immutable bootloader and mcuboot in segger Embedded Studio. It is more help to me for further proceeding&amp;nbsp;in my project.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;please let me know, if you need any more details from my side.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks &amp;amp; Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Srinivas Rao.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&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: MCUboot not running application code on the nRF5340 DK board</title><link>https://devzone.nordicsemi.com/thread/299318?ContentTypeID=1</link><pubDate>Thu, 11 Mar 2021 14:45:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53e71c6d-0575-406d-a722-710fc5f49596</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi!&lt;br /&gt;&lt;br /&gt;Can you try to append the configurations in the prj.conf file and then reopen the project? We have seen some issues with SES not building child images correctly. These are the configurations:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_SECURE_BOOT=y&lt;/pre&gt;&lt;br /&gt;Please report back your results.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>