<?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>Application is not running after integrating DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105143/application-is-not-running-after-integrating-dfu</link><description>Hi, 
 I am using BM840 BLE module and I see after integrating the DFU application, the main application is not executing at all. 
 When I try to debug, I see it is not coming to the main. 
 If I remove DFU configuration and build the project and program</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Nov 2024 13:44:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105143/application-is-not-running-after-integrating-dfu" /><item><title>RE: Application is not running after integrating DFU</title><link>https://devzone.nordicsemi.com/thread/510311?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2024 13:44:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65e49284-0206-4e2a-bd2f-fbb03d1f9fb9</guid><dc:creator>Jithin A</dc:creator><description>&lt;p&gt;One should add a child_image directory and create a file &amp;quot;mcuboot.conf&amp;quot;&lt;/p&gt;
&lt;p&gt;In the file place the below lines&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BOOT_UPGRADE_ONLY=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This way we are telling MCU Boot code to align with the main application clock source.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application is not running after integrating DFU</title><link>https://devzone.nordicsemi.com/thread/453886?ContentTypeID=1</link><pubDate>Fri, 03 Nov 2023 07:58:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e747653-a10d-46fd-b5aa-621deb7f57fe</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;It is pretty much impossible to work based on just this much information. You need to be able to get some logs.&lt;/p&gt;
&lt;p&gt;As you mentioned being able to debug, try&amp;nbsp;reconfiguring MCUboot to log to RTT instead of UART, and get some information.&lt;/p&gt;
&lt;p&gt;Another thing you can try is applying DFU to&amp;nbsp;Hello World or Blinky and see if the problem happens again. Based on whether it happens or not, we can have some idea for our next steps. Nonetheless, I recommend you get some development hardware or figure out a way to get logs from your device. It should make your life a lot easier moving forward.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application is not running after integrating DFU</title><link>https://devzone.nordicsemi.com/thread/453862?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2023 23:58:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:830fff57-ac41-43b8-9cf3-c6a08496fdf1</guid><dc:creator>Jithin A</dc:creator><description>&lt;p&gt;Sorry we don&amp;rsquo;t have any logs.&lt;/p&gt;
&lt;p&gt;We are not working on any EVK, we have the sample devices and working with them so, I don&amp;rsquo;t think we can get logs from the device as USART is not connected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application is not running after integrating DFU</title><link>https://devzone.nordicsemi.com/thread/453321?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2023 14:45:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e646879-0edf-4090-be97-fc75490aaa2d</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Do you have any sort of logs from MCUboot?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application is not running after integrating DFU</title><link>https://devzone.nordicsemi.com/thread/453251?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2023 12:05:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f17d003a-e5db-4251-9633-db983de84d99</guid><dc:creator>Jithin A</dc:creator><description>&lt;p&gt;Thank you for the response, Hieu.&lt;/p&gt;
[quote userid="9456" url="~/f/nordic-q-a/105143/application-is-not-running-after-integrating-dfu/453149"]How did you enable DFU?[/quote]
&lt;p&gt;--&amp;gt; I added below configuration to my prj.conf file.&lt;/p&gt;
&lt;p&gt;I did this from the reference: &lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu"&gt;Add DFU support to your application - Software - nRF Connect SDK guides - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
# Below configurations to enable DFU
# Enable mcumgr.
CONFIG_MCUMGR=y

# Enable most core commands.
CONFIG_MCUMGR_CMD_IMG_MGMT=y
CONFIG_MCUMGR_CMD_OS_MGMT=y

# Ensure an MCUboot-compatible binary is generated.
CONFIG_BOOTLOADER_MCUBOOT=y

# Allow for large Bluetooth data packets.
CONFIG_BT_L2CAP_TX_MTU=252
CONFIG_BT_BUF_ACL_RX_SIZE=256

# Enable the Bluetooth (unauthenticated) and shell mcumgr transports.
CONFIG_MCUMGR_SMP_BT=y
CONFIG_MCUMGR_SMP_BT_AUTHEN=n

# Some command handlers require a large stack.
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096&lt;/pre&gt;&lt;/p&gt;
[quote userid="9456" url="~/f/nordic-q-a/105143/application-is-not-running-after-integrating-dfu/453149"]How do you know that the main application is not executing at all?[/quote]
&lt;p&gt;--&amp;gt; We have an LED which will be turned ON when advertisement start successfully.&lt;/p&gt;
&lt;p&gt;Before adding the DFU, the application was working fine.&lt;/p&gt;
&lt;p&gt;After adding the above config, LED did not turn ON and when I try to debug, I observe it is not at all calling main.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please let me know if I am missing anything or doing something wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application is not running after integrating DFU</title><link>https://devzone.nordicsemi.com/thread/453149?ContentTypeID=1</link><pubDate>Mon, 30 Oct 2023 21:06:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ee722b8-56b6-4cb0-945f-83bb3bebf49c</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hello Jithin A,&lt;/p&gt;
&lt;p&gt;Could you please give more&amp;nbsp;details on what you have done?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- How did you enable DFU? &lt;br /&gt;- How do you know that the main application is not executing at all?&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>