<?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>How to enable logging in Ble secure DFU example pca10056</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80188/how-to-enable-logging-in-ble-secure-dfu-example-pca10056</link><description>Dear nordic team, 
 i want to take log from dfu example i tried using rtt veiwer but it doesnt work.im using sdk version 17.0.2 and soft device 7.2.0 and nrf52840 DK 
 in nrf drivers/ folder there is no uart related files do we need this for taking logs</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Oct 2021 10:56:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80188/how-to-enable-logging-in-ble-secure-dfu-example-pca10056" /><item><title>RE: How to enable logging in Ble secure DFU example pca10056</title><link>https://devzone.nordicsemi.com/thread/332795?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 10:56:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6dd4e85-3646-4183-b9e3-3e801606e575</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It may be better to use UART for logging in the application. I can be tricky to get RTT logging to work across different applications. Here is another forum thread that covers the issue in more detail:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/20708/rtt-logging-from-application-started-by-bootloader"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/20708/rtt-logging-from-application-started-by-bootloader&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable logging in Ble secure DFU example pca10056</title><link>https://devzone.nordicsemi.com/thread/332717?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 04:46:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abe082c3-5c99-4db1-901f-014338cb50db</guid><dc:creator>Akshay19</dc:creator><description>&lt;p&gt;thanks for your response vidar.i have one more doubt that when enable the debug in bootloader i cant get logging from application code.with out enabling debug im getting log from application code&lt;/p&gt;
&lt;p&gt;ie.&lt;/p&gt;
&lt;p&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Inside main&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: In nrf_bootloader_init&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Calling nrf_dfu_settings_init()...&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Using settings page.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Copying forbidden parts from backup page.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0xFE000.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: Enter nrf_bootloader_fw_activate&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: No firmware to activate.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: App is valid&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0xFE000.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: Running nrf_bootloader_app_start with address: 0x00001000&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: Disabling interrupts. NVIC-&amp;gt;ICER[0]: 0x10&lt;br /&gt;00&amp;gt;&lt;/p&gt;
&lt;p&gt;up to this im getting log but after this switching to app log is not coming from application&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable logging in Ble secure DFU example pca10056</title><link>https://devzone.nordicsemi.com/thread/332570?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 10:30:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87101b66-9063-488c-8292-b27c1de3c066</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The difference between the original debug and release project is that the debug variant includes logging and more relaxed security requirements (with regards to version validation), and that doesn&amp;#39;t explain the INVALID MEMORY ACCESS assertion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable logging in Ble secure DFU example pca10056</title><link>https://devzone.nordicsemi.com/thread/332564?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 10:23:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9239f60-ba1f-4a32-b868-e7423f1f4c2a</guid><dc:creator>Akshay19</dc:creator><description>&lt;p&gt;But dfu code without debug is working fine.that was my doubt and by adding these lines&lt;/p&gt;
&lt;p&gt;sd_power_gpregret_clr(0, 0xffffffff);&lt;br /&gt; sd_power_gpregret_set(0, ~BOOTLOADER_DFU_START);&lt;/p&gt;
&lt;p&gt;NVIC_SystemReset();&lt;/p&gt;
&lt;p&gt;it is working fine instead of this&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; nrf_power_gpregret_set(nrf_power_gpregret_get() &amp;amp; ~BOOTLOADER_DFU_START);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;NVIC_SystemReset();&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;i think when enabling debug is making the issue&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable logging in Ble secure DFU example pca10056</title><link>https://devzone.nordicsemi.com/thread/332558?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 10:13:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f132b3b-4b68-44df-a701-8e8b48df7fc2</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;This assert indicates that the program has tried to access on of the peripherals reserved to the Softdevice (&lt;span&gt;&lt;a title="Hardware peripherals" href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/sd_resource_reqs/hw_block_interrupt_vector.html?cp=4_7_4_0_6_0"&gt;Hardware peripherals&lt;/a&gt;&lt;/span&gt;). While debugging, please read the &amp;#39;info&amp;#39; value as the picture below shows. This will tell us which peripheral it was.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1633428809265v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable logging in Ble secure DFU example pca10056</title><link>https://devzone.nordicsemi.com/thread/332540?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 09:17:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1381dede-70e7-4490-8504-1989432259a0</guid><dc:creator>Akshay19</dc:creator><description>&lt;p&gt;&lt;span&gt;nrf_power_gpregret_set(nrf_power_gpregret_get() &amp;amp; ~BOOTLOADER_DFU_START);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;im using this function&amp;nbsp;&lt;a title="sd_power_gpregret_set" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.3.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html?cp=4_7_4_1_2_7_2_16#ga62737e6515d380aa3eeba6582d061592"&gt;sd_power_gpregret_set&lt;/a&gt;() only not directly writing to power-&amp;gt;gpgret reg&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable logging in Ble secure DFU example pca10056</title><link>https://devzone.nordicsemi.com/thread/332528?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 09:01:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10e21221-7c48-4c8e-b010-a83f25ca443d</guid><dc:creator>Akshay19</dc:creator><description>&lt;p&gt;OK&amp;nbsp; thanks now i added everything and get error code as&lt;/p&gt;
&lt;p&gt;&lt;span&gt;SOFTDEVICE: INVALID MEMORY ACCESS&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0x0,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0x0,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0x0,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0x0,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0x0,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: exit to app&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;error&amp;gt; app: SOFTDEVICE: INVALID MEMORY ACCESS&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable logging in Ble secure DFU example pca10056</title><link>https://devzone.nordicsemi.com/thread/332515?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 08:24:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecaeb7c2-509a-4eb4-8c6b-8da2947f6404</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Looks like you haven&amp;#39;t added the DEBUG flag as shown in my screenshot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable logging in Ble secure DFU example pca10056</title><link>https://devzone.nordicsemi.com/thread/332513?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 08:23:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77858c4f-add7-41a8-a9e9-7aeb92f5e36e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&lt;span class="item"&gt;You can&amp;#39;t write directly to the POWER-&amp;gt;GPREGRET register when the BLE transport is enabled. Instead you have to use &lt;a title="sd_power_gpregret_set" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.3.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html?cp=4_7_4_1_2_7_2_16#ga62737e6515d380aa3eeba6582d061592"&gt;sd_power_gpregret_set&lt;/a&gt;()&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable logging in Ble secure DFU example pca10056</title><link>https://devzone.nordicsemi.com/thread/332510?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 08:20:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2ee8e45-4616-41e8-98d0-47ff451e1b19</guid><dc:creator>Akshay19</dc:creator><description>&lt;p&gt;after adding this it is giving me&lt;/p&gt;
&lt;p&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: DFU mode requested via GPREGRET.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_bootloader_wdt: WDT is not enabled&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Entered gpio init&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: in weak nrf_dfu_init_user&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: timer_stop (0x20005994)&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: timer_activate (0x20005994)&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Entering DFU mode.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: Initializing transports (found: 1)&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Initializing BLE DFU transport&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Setting up vector table: 0x000F1000&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Enabling SoftDevice.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Configuring BLE stack.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Enabling the BLE stack.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: No advertising name found&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Using default advertising name&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Advertising...&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: BLE DFU transport initialized.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_sd backend.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: Enter main loop&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Transfer completed. Received: &lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0xEE00,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0xEF00,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0x100,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0x0,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0x0,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0x0,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0x0,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0x0,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0x0,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0x0,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: mac id transfer&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Transfer completed. Received: &lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0xEE00,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0xEF00,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0x2000,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0x0,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0x0,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0x0,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0x0,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0x0,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0x0,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: 0x0,&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: exit to app&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;error&amp;gt; app: Fatal error&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;fatal error&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable logging in Ble secure DFU example pca10056</title><link>https://devzone.nordicsemi.com/thread/332505?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 08:12:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6c1cc9f-1570-432a-9f2d-b69a9e569ddc</guid><dc:creator>Akshay19</dc:creator><description>&lt;p&gt;i also having error when&amp;nbsp; calling&lt;/p&gt;
&lt;p&gt;nrf_power_gpregret_set(nrf_power_gpregret_get() &amp;amp; ~BOOTLOADER_DFU_START);&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;lt;error&amp;gt; app: Received a fault! id: 0x00001001, pc: 0x0000F4D2C, info: 0x00000001&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable logging in Ble secure DFU example pca10056</title><link>https://devzone.nordicsemi.com/thread/332483?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 07:34:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c67704d0-a1cd-404f-bb2f-8b7d4ba7c1e9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please make the following changes to main.c and your Segger project to get a more verbose crash log:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="diff"&gt;ff --git a/secure_bootloader/main.c b/secure_bootloader/main.c
index 788970e..3585d9c 100644
--- a/secure_bootloader/main.c
+++ b/secure_bootloader/main.c

+#ifndef DEBUG
 void app_error_handler(uint32_t error_code, uint32_t line_num, const uint8_t * p_file_name)
 {
     NRF_LOG_ERROR(&amp;quot;%s:%d&amp;quot;, p_file_name, line_num);
 }

 void app_error_fault_handler(uint32_t id, uint32_t pc, uint32_t info)
 {
     NRF_LOG_ERROR(&amp;quot;Received a fault! id: 0x%08x, pc: 0x%08x, info: 0x%08x&amp;quot;, id, pc, info);
     on_error();
 }

 void app_error_handler_bare(uint32_t error_code)
 {
     NRF_LOG_ERROR(&amp;quot;Received an error: 0x%08x!&amp;quot;, error_code);
     on_error();
 }
+#endif

diff --git a/secure_bootloader/pca10056_s140_ble_debug/ses/secure_bootloader_ble_s140_pca10056_debug.emProject b/secure_bootloader/pca10056_s140_ble_debug/ses/secure_bootloader_ble_s140_pca10056_debug.emProject
index 220d382..f8b9bd1 100644
--- a/secure_bootloader/pca10056_s140_ble_debug/ses/secure_bootloader_ble_s140_pca10056_debug.emProject
+++ b/secure_bootloader/pca10056_s140_ble_debug/ses/secure_bootloader_ble_s140_pca10056_debug.emProject
@@ -15,27 +18,27 @@
       arm_simulator_memory_simulation_parameter=&amp;quot;RWX 00000000,00100000,FFFFFFFF;RWX 20000000,00010000,CDCDCDCD&amp;quot;
       arm_target_device_name=&amp;quot;nRF52840_xxAA&amp;quot;
       arm_target_interface_type=&amp;quot;SWD&amp;quot;
+      c_preprocessor_definitions=&amp;quot;DEBUG;BLE_STACK_SUPPORT_REQD;BOARD_PCA10056;CONFIG_GPIO_AS_PINRESET;DEBUG_NRF;FLOAT_ABI_HARD;INITIALIZE_USER_SECTIONS;NO_VTOR_CONFIG;NRF52840_XXAA;NRF_DFU_DEBUG_VERSION;NRF_DFU_SETTINGS_VERSION=2;NRF_DFU_SVCI_ENABLED;NRF_SD_BLE_API_VERSION=7;S140;SOFTDEVICE_PRESENT;SVC_INTERFACE_CALL_AS_NORMAL_FUNCTION&amp;quot;
-      c_preprocessor_definitions=&amp;quot;BLE_STACK_SUPPORT_REQD;BOARD_PCA10056;CONFIG_GPIO_AS_PINRESET;DEBUG_NRF;FLOAT_ABI_HARD;INITIALIZE_USER_SECTIONS;NO_VTOR_CONFIG;NRF52840_XXAA;NRF_DFU_DEBUG_VERSION;NRF_DFU_SETTINGS_VERSION=2;NRF_DFU_SVCI_ENABLED;NRF_SD_BLE_API_VERSION=7;S140;SOFTDEVICE_PRESENT;SVC_INTERFACE_CALL_AS_NORMAL_FUNCTION;&amp;quot;
@@ -63,6 +66,8 @@
       &amp;lt;file file_name=&amp;quot;../../../../../components/libraries/ringbuf/nrf_ringbuf.c&amp;quot; /&amp;gt;
       &amp;lt;file file_name=&amp;quot;../../../../../components/libraries/experimental_section_vars/nrf_section_iter.c&amp;quot; /&amp;gt;
       &amp;lt;file file_name=&amp;quot;../../../../../components/libraries/strerror/nrf_strerror.c&amp;quot; /&amp;gt;
+      &amp;lt;file file_name=&amp;quot;../../../../../components/libraries/util/app_error.c&amp;quot; /&amp;gt;
+      &amp;lt;file file_name=&amp;quot;../../../../../components/libraries/util/app_error_handler_gcc.c&amp;quot; /&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Summary of changes:&lt;/p&gt;
&lt;p&gt;1. Exclude app_error_handler(), app_error_fault_handler, and app_error_handler_bare() in main.c if DEBUG flag is set.&lt;/p&gt;
&lt;p&gt;2. Add the app_error_handler_gcc.c and app_error.c source file to the project&lt;/p&gt;
&lt;p&gt;3. Define &amp;quot;DEBUG&amp;quot; in the list of pre-processor symbols:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0753.pastedimage1633419065295v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable logging in Ble secure DFU example pca10056</title><link>https://devzone.nordicsemi.com/thread/332393?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 14:09:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f47f7178-94fa-477a-9ad2-5ee4686f0c67</guid><dc:creator>Akshay19</dc:creator><description>&lt;p&gt;hi actually i got the log enable in ble secure dfu example but im getting somthing fault error in log after adding the log files&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: gpio main&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: Inside main&lt;/p&gt;
&lt;p&gt;&amp;lt;debug&amp;gt; app: In nrf_bootloader_init&lt;/p&gt;
&lt;p&gt;&amp;lt;debug&amp;gt; nrf_dfu_settings: Calling nrf_dfu_settings_init()...&lt;/p&gt;
&lt;p&gt;&amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.&lt;/p&gt;
&lt;p&gt;&amp;lt;debug&amp;gt; nrf_dfu_settings: Using settings page.&lt;/p&gt;
&lt;p&gt;&amp;lt;debug&amp;gt; nrf_dfu_settings: Copying forbidden parts from backup page.&lt;/p&gt;
&lt;p&gt;&amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0xFE000.&lt;/p&gt;
&lt;p&gt;&amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.&lt;/p&gt;
&lt;p&gt;&amp;lt;debug&amp;gt; app: Enter nrf_bootloader_fw_activate&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: No firmware to activate.&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: Boot validation failed. No valid app to boot.&lt;/p&gt;
&lt;p&gt;&amp;lt;debug&amp;gt; app: DFU mode because app is not valid.&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; nrf_bootloader_wdt: WDT is not enabled&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: Entered gpio init&lt;/p&gt;
&lt;p&gt;&amp;lt;debug&amp;gt; app: in weak nrf_dfu_init_user&lt;/p&gt;
&lt;p&gt;&amp;lt;debug&amp;gt; app: timer_stop (0x20005994)&lt;/p&gt;
&lt;p&gt;&amp;lt;debug&amp;gt; app: timer_activate (0x20005994)&lt;/p&gt;
&lt;p&gt;&amp;lt;error&amp;gt; app: Received a fault! id: 0x00004002, pc: 0x00000000, info: 0x2003FF90&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;i think this is going to some fault handler..but why is it causing after enabling log..&lt;/p&gt;
&lt;p&gt;pls reply&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable logging in Ble secure DFU example pca10056</title><link>https://devzone.nordicsemi.com/thread/332144?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 12:22:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f0cdb08-1b0a-4318-9b8e-250709892f31</guid><dc:creator>Akshay19</dc:creator><description>&lt;p&gt;yes in nrf driver folder know&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable logging in Ble secure DFU example pca10056</title><link>https://devzone.nordicsemi.com/thread/332138?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 12:04:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7f64052-5504-4204-afb2-9d1884afc123</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Did you add the source files as well? Also, what are the errors you see?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable logging in Ble secure DFU example pca10056</title><link>https://devzone.nordicsemi.com/thread/332135?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 12:01:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7913ad77-59ec-47b6-94b5-9ccfc62a42a4</guid><dc:creator>Akshay19</dc:creator><description>&lt;p&gt;i did the same but didn&amp;#39;t work&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable logging in Ble secure DFU example pca10056</title><link>https://devzone.nordicsemi.com/thread/332134?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 12:01:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:857f1199-1b45-49f8-a97d-c7590fcb4770</guid><dc:creator>Akshay19</dc:creator><description>&lt;p&gt;yes i added path&lt;/p&gt;
&lt;p&gt;../../../../../integration/nrfx&lt;/p&gt;
&lt;p&gt;../../../../../modules/nrfx&lt;/p&gt;
&lt;p&gt;../../../../../modules/nrfx/hal&lt;/p&gt;
&lt;p&gt;../../../../../modules/nrfx/mdk&lt;/p&gt;
&lt;p&gt;../../../../../integration/nrfx/legacy&lt;/p&gt;
&lt;p&gt;../../../../../modules/nrfx/drivers/include&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable logging in Ble secure DFU example pca10056</title><link>https://devzone.nordicsemi.com/thread/332131?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 11:57:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7833a5fb-9523-413e-81ca-259065e9407f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Sorry, but what&amp;#39;s preventing you from adding the include paths? Didn&amp;#39;t you do the same for the non-debug variant of the project earlier?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable logging in Ble secure DFU example pca10056</title><link>https://devzone.nordicsemi.com/thread/332130?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 11:55:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ba2a5c3-972c-4426-972b-5c3242378fb8</guid><dc:creator>Akshay19</dc:creator><description>&lt;p&gt;But I can&amp;#39;t add any header files in dfu_ble_debug.like nrf_drv_gpiote.h ,nrf_drv_spis.h in dfu_ble_debug project even if I added the preprocessor header path&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable logging in Ble secure DFU example pca10056</title><link>https://devzone.nordicsemi.com/thread/332123?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 11:32:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcac929c-2d91-45e4-b71f-218499600aa2</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You have to increase the size of the bootloader and then add the logger module and its RTT dependencies like in the ble_secure_dfu_debug project. But it would probably be quicker to just add enable the SPIS code in the ble_secure_dfu_debug project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable logging in Ble secure DFU example pca10056</title><link>https://devzone.nordicsemi.com/thread/332041?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 04:46:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b25f666-fb52-46ce-ae18-c22fa01f00fd</guid><dc:creator>Akshay19</dc:creator><description>&lt;p&gt;ble_secure_dfu_debug has the dfu working..how can i enable it in ble_secure_dfu&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>