<?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>Enabling MCUBOOT does not run application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93347/enabling-mcuboot-does-not-run-application</link><description>I am trying to add BLE OTA to our project for our custom NRF52833 board. We are using nrfconnect together with visual studio code and are using the most recent toolchain (nrf Connect SDK v2.1.1) we are using a j-link Segger to flash and debug our applications</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Aug 2023 10:40:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93347/enabling-mcuboot-does-not-run-application" /><item><title>RE: Enabling MCUBOOT does not run application</title><link>https://devzone.nordicsemi.com/thread/441817?ContentTypeID=1</link><pubDate>Thu, 17 Aug 2023 10:40:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a401bfec-07da-468c-8cd7-e9bd61d1f040</guid><dc:creator>thang47</dc:creator><description>&lt;p&gt;Hi,I have the same problem, I have the same problem, but I did as you said and it didn&amp;#39;t work&lt;/p&gt;
&lt;div id="gtx-anchor" style="height:13.6px;left:161.413px;position:absolute;top:8px;width:31.025px;"&gt;&lt;/div&gt;
&lt;div class="jfk-bubble gtx-bubble" style="left:162px;top:32px;"&gt;
&lt;div id="bubble-3" class="jfk-bubble-content-id"&gt;
&lt;div id="gtx-host" style="max-width:400px;"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="jfk-bubble-closebtn-id jfk-bubble-closebtn"&gt;&lt;/div&gt;
&lt;div class="jfk-bubble-arrow-id jfk-bubble-arrow jfk-bubble-arrowup" style="left:168.913px;"&gt;
&lt;div class="jfk-bubble-arrowimplbefore"&gt;&lt;/div&gt;
&lt;div class="jfk-bubble-arrowimplafter"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling MCUBOOT does not run application</title><link>https://devzone.nordicsemi.com/thread/392982?ContentTypeID=1</link><pubDate>Fri, 28 Oct 2022 10:05:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1666439-2446-4c52-942f-3d82d736a300</guid><dc:creator>vgoof</dc:creator><description>&lt;p&gt;Dear Vidar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the quick response. Yes you are correct about not having a crystal.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;added the child_image folder and the mcuboot.conf with&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC&lt;/span&gt;&lt;span&gt;=y inside&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;That indeed works!&amp;nbsp;I also tried with the BLE set up and that is also working, very nice! Many thanks!&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;As a side note, I actually tried this before but I also read somewhere you need to tell cmakelists to use this conf file&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;set&lt;/span&gt;&lt;span&gt;(mcuboot_CONF_FILE &lt;/span&gt;&lt;span&gt;${CMAKE_CURRENT_SOURCE_DIR}&lt;/span&gt;&lt;span&gt;/child_image/mcuboot.conf)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;the combination of those does not work.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;One detail I am still curious about is that in the examples people share I can see output from the MCU bootloader but I do not get this, I only see the output from the app. (I tried to add the segger set up to the mcuboot.conf file but that does not help.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling MCUBOOT does not run application</title><link>https://devzone.nordicsemi.com/thread/392967?ContentTypeID=1</link><pubDate>Fri, 28 Oct 2022 09:16:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35129cbc-7428-4657-89fb-e17edffadc06</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please correct me if I&amp;#39;m wrong, but I assume you don&amp;#39;t have a 32KHz crystal mounted on your custom board since you are setting &lt;span&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt; in your application.&lt;/p&gt;
&lt;p&gt;This setting will not be applied to the MCUBoot child image, instead it will be built with the default board configuration. So, if you build for &amp;#39;nrf52833dk_nrf52833&amp;#39; the LF crystal oscillator will end up being selected and the bootloader would become stuck waiting for the crystal to ramp up.&lt;/p&gt;
&lt;p&gt;To override this setting in the bootloader, you can create a folder named &amp;#39;child_image&amp;#39; in your project directory, then define a kconfig fragment named mcuboot.conf (Ref. &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_multi_image.html#image-specific-variables"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_multi_image.html#image-specific-variables&lt;/a&gt;). Config settings in this file will automatically be applied to the mcuboot build. &lt;/p&gt;
&lt;p&gt;The folder structure should look like this:&lt;/p&gt;
&lt;p&gt;├── child_image&lt;br /&gt;│&amp;nbsp;&amp;nbsp; └── mcuboot.conf&lt;br /&gt;├── CMakeLists.txt&lt;br /&gt;├── prj.conf&lt;br /&gt;├── README.rst&lt;br /&gt;├── sample.yaml&lt;br /&gt;└── src&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; └── main.c&lt;/p&gt;
&lt;p&gt;where mcuboot.conf contains &lt;span&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC&lt;/span&gt;&lt;span&gt;=y.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&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;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>