<?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>Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63362/secure-buttonless-dfu-problem-on-nrf52832-soft-device-112</link><description>Hello 
 I am facing problem from many days on buttonless DFU. 
 Whoever from Nordic approaches kindly give a customized solution rather than other links. I have almost gone through all the links with none exactly matching my issue. I will be really thankful</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Aug 2020 09:59:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63362/secure-buttonless-dfu-problem-on-nrf52832-soft-device-112" /><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/264814?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 09:59:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f39546fe-994a-47ac-8e42-7dd2ceed766a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Excellent! I&amp;#39;m glad to hear that it works now, thank you for the update. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/264809?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 09:38:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:473fdf20-0543-4659-b696-3b6b273aa134</guid><dc:creator>AliMahmood123</dc:creator><description>&lt;p&gt;Hi Vidar&lt;/p&gt;
&lt;p&gt;It worked!&lt;/p&gt;
&lt;p&gt;Thanks again for all your help. No one has helped me on Nordic forum this much. I really think you went out of the way to help me.&lt;/p&gt;
&lt;p&gt;God Bless you!&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/63362/secure-buttonless-dfu-problem-on-nrf52832-soft-device-112/264734"]Yes, but it&amp;#39;s not the same problem. This wouldn&amp;#39;t have been limited to GPIOTE interrupts if the interrupt forwarding mechanism was incorrectly configured.[/quote]
&lt;p&gt;Yes I get it now. I did your changes and it worked absolutely fine&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/63362/secure-buttonless-dfu-problem-on-nrf52832-soft-device-112/264734"]&amp;nbsp;What about P0.21, is it being used as a GPIO in your app? SDK examples enable the pinreset functionality on this pin by default (ie builds with CONFIG_GPIO_AS_PINRESET flag)[/quote]
&lt;p&gt;No Vidar, I am not using this, however it&amp;#39;s a great piece of information to have.&lt;/p&gt;
&lt;p&gt;Once again really thanks. I am moved by your help.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/264734?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 06:55:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d846618-fc41-43ee-a54e-58c5631c96e5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ali,&lt;/p&gt;
[quote user="AliMahmood123"]Only GPIOTE interrupts are the problem. As I shared in the links above for other soft devices, other people had this issue too. I couldnt see for S112 &lt;span title="Disappointed"&gt;&lt;/span&gt;[/quote]
&lt;p&gt;Yes, but it&amp;#39;s not the same problem. This wouldn&amp;#39;t have been limited to GPIOTE interrupts if the interrupt forwarding mechanism was incorrectly configured.&lt;/p&gt;
[quote user="AliMahmood123"]I will share results on what you shared. Thanks a lot again. However I dont think it would help as it is not going into DFU mode and I noticed these are basically LEDS which will be used once it goes in DFU mode; But my application successfully boots but interrupts dont work[/quote]
&lt;p&gt;&amp;nbsp;What about P0.21, is it being used as a GPIO in your app? SDK examples enable the pinreset functionality on this pin by default (ie builds with CONFIG_GPIO_AS_PINRESET flag)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/264706?ContentTypeID=1</link><pubDate>Sun, 16 Aug 2020 11:21:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4821070b-1ddc-471a-97f1-9669213a5808</guid><dc:creator>AliMahmood123</dc:creator><description>&lt;p&gt;Hi Vidar, Sorry for catching up late&lt;/p&gt;
&lt;p&gt;I have some timers for periodic self tests and SDK scheduler based state machine. It works absolutely fine.&lt;/p&gt;
&lt;p&gt;Only GPIOTE interrupts are the problem. As I shared in the links above for other soft devices, other people had this issue too. I couldnt see for S112 &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I hope this can be solved quickly.&lt;/p&gt;
&lt;p&gt;I will share results on what you shared. Thanks a lot again. However I dont think it would help as it is not going into DFU mode and I noticed these are basically LEDS which will be used once it goes in DFU mode; But my application successfully boots but interrupts dont work&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/264549?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2020 06:06:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5584e5ae-ca82-4e63-885b-a8a33e874638</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You need to comment the led functions as you said.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Disabling LEDs and Button:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="diff"&gt;diff --git a/components/boards/custom_board.h b/components/boards/custom_board.h
index 597ff69..3c8915c 100644
--- a/components/boards/custom_board.h
+++ b/components/boards/custom_board.h
@@ -47,7 +47,7 @@ extern &amp;quot;C&amp;quot; {
 #include &amp;quot;nrf_gpio.h&amp;quot;
 
 // LEDs definitions for PCA10040
-#define LEDS_NUMBER    4
+#define LEDS_NUMBER    0
 
 #define LED_START      17
 #define LED_1          17
@@ -67,7 +67,7 @@ extern &amp;quot;C&amp;quot; {
 #define BSP_LED_2      LED_3
 #define BSP_LED_3      LED_4
 
-#define BUTTONS_NUMBER 4
+#define BUTTONS_NUMBER 0
 
 #define BUTTON_START   13
 #define BUTTON_1       13
diff --git a/examples/dfu/secure_bootloader/main.c b/examples/dfu/secure_bootloader/main.c
index 0c72b38..44ebde3 100644
--- a/examples/dfu/secure_bootloader/main.c
+++ b/examples/dfu/secure_bootloader/main.c
@@ -106,14 +106,14 @@ static void dfu_observer(nrf_dfu_evt_type_t evt_type)
         case NRF_DFU_EVT_DFU_FAILED:
         case NRF_DFU_EVT_DFU_ABORTED:
         case NRF_DFU_EVT_DFU_INITIALIZED:
-            bsp_board_init(BSP_INIT_LEDS);
+            /*bsp_board_init(BSP_INIT_LEDS);
             bsp_board_led_on(BSP_BOARD_LED_0);
             bsp_board_led_on(BSP_BOARD_LED_1);
-            bsp_board_led_off(BSP_BOARD_LED_2);
+            bsp_board_led_off(BSP_BOARD_LED_2);*/
             break;
         case NRF_DFU_EVT_TRANSPORT_ACTIVATED:
-            bsp_board_led_off(BSP_BOARD_LED_1);
-            bsp_board_led_on(BSP_BOARD_LED_2);
+            /*bsp_board_led_off(BSP_BOARD_LED_1);
+            bsp_board_led_on(BSP_BOARD_LED_2);*/
             break;
         case NRF_DFU_EVT_DFU_STARTED:
             break;
diff --git a/examples/dfu/secure_bootloader/pca10040_s112_ble_debug/config/sdk_config.h b/examples/dfu/secure_bootloader/pca10040_s112_ble_debug/config/sdk_config.h
index 501ed20..e72d2d8 100644
--- a/examples/dfu/secure_bootloader/pca10040_s112_ble_debug/config/sdk_config.h
+++ b/examples/dfu/secure_bootloader/pca10040_s112_ble_debug/config/sdk_config.h
@@ -99,7 +99,7 @@
 // &amp;lt;e&amp;gt; NRF_BL_DFU_ENTER_METHOD_BUTTON - Enter DFU mode on button press.
 //==========================================================
 #ifndef NRF_BL_DFU_ENTER_METHOD_BUTTON
-#define NRF_BL_DFU_ENTER_METHOD_BUTTON 1
+#define NRF_BL_DFU_ENTER_METHOD_BUTTON 0
 #endif
 // &amp;lt;o&amp;gt; NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN  - Button for entering DFU mode.
  
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="AliMahmood123"]just not the interrupts[/quote]
&lt;p&gt;Only GPIOTE interrupts, or are there other interrupts that don&amp;#39;t work either?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/264547?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2020 05:32:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64aebe97-6421-4f04-a598-8887cf5574aa</guid><dc:creator>AliMahmood123</dc:creator><description>&lt;p&gt;Hi Vidar&lt;/p&gt;
&lt;p&gt;I did try that. But removing LED pins in pca10040.h gave me led errors in main.c. I will try it again today by commenting out LED on functions.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll check P0.21 as well.&lt;/p&gt;
&lt;p&gt;Yes advertising works infact even DFU works completely fine just not the interrupts&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/264546?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2020 05:26:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0868f438-1e2f-438b-9bac-c2d5a05731f9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think this has to do with interrupt forwarding. Did you disable the button and LED configurations in the bootlaoder project as I asked you to? Also, 1. does your board use P0.21 as a reset pin? 2. do other parts of the app work&amp;nbsp; (e.g. does it start BLE advertising, etc)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/264478?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 13:06:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3c7a602-dc56-4e94-9057-a71098e492c3</guid><dc:creator>AliMahmood123</dc:creator><description>&lt;p&gt;Hi Vidar. I dug deep into my app. Yes its on custom board but we already had that covered according to link you have shared, taking inspiration from the DK board examples pinout configuration.&lt;/p&gt;
&lt;p&gt;I have searched multiple posts online as well. Most notable is this although of different SoC:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/16398/gpio-interrupts-not-working-with-bootloader"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/16398/gpio-interrupts-not-working-with-bootloader&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Im pretty sure the bootloader must be doing something as my app works fine when standalone. You are well versed with the bootloader project. I used the one you sent in fact. Could you please help me in solving this issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/264421?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 10:29:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15e6a558-e089-4c59-9017-a58a407aa3e9</guid><dc:creator>AliMahmood123</dc:creator><description>&lt;p&gt;Hi Vidar&lt;br /&gt;Thanks again for the prompt replies.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll look into it. Meanwhile I have a general question. When I run the application standalone, the interrupts work.&lt;/p&gt;
&lt;p&gt;When I merge APP + SD + BL + Settings and flash it. The BL successfully boots the application as desired but interrupts dont work.&lt;/p&gt;
&lt;p&gt;If the BL booted the application successfully, then the application is now basically running standalone right without any dependency on the bootloader? Im a bit baffled as to how the interrupts arent working when I merge&lt;/p&gt;
&lt;p&gt;Keeping the issue aside, when bootloader boots the application, are there any dependencies such as GPIO interrupts which the bootloader may effect? Or the application is really running standalone&lt;/p&gt;
&lt;p&gt;Thanks again&lt;/p&gt;
&lt;p&gt;Ali&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/264312?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 14:47:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:016fc0d0-c886-4240-b34c-995c4b6bdf94</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The example I sent is configured to run on the PCA10040 (nRF52 DK) and I didn&amp;#39;t change any of the default bootloader settings. See &amp;quot;&lt;span class="item"&gt;&lt;a title="Using the SDK with other boards" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/sdk_for_custom_boards.html?cp=7_1_1_5"&gt;Using the SDK with other boards&lt;/a&gt;&lt;/span&gt;&amp;quot; for general information on how you can adapt SDL examples for different boards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/264307?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 14:31:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69609ebb-b368-4641-8d6d-324b5ed4c9b0</guid><dc:creator>AliMahmood123</dc:creator><description>&lt;p&gt;Vidar, I haven&amp;#39;t initialized any pin configs in the bootloader project. I compiled it as it is you gave me&lt;/p&gt;
&lt;p&gt;None of the interrupts work Vidar, I am using 2 interrupts with the button handler module. One for motor interrupts if manual locked / unlocked and the other for RFID.&lt;/p&gt;
&lt;p&gt;None register an interrupt (i know this through J-link prints)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/264306?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 14:24:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc82de13-70a3-423b-9e7b-c5943cfe5ea4</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, you should probably remove all of the pin configurations in the bootloader. What pin number do you use for the RFID interrupt line? That&amp;#39;s the only one that stops working with the bootloader, right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/264303?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 14:19:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65b13489-6c33-4c30-961e-5c04eac8b255</guid><dc:creator>AliMahmood123</dc:creator><description>&lt;p&gt;Hello Vidar. Thanks for the prompt response.&lt;/p&gt;
&lt;p&gt;No I am not customizing the bootloader. However I am customizing a lot of GPIOs in my application. Would that effect?&lt;/p&gt;
&lt;p&gt;I think the bootloader might be doing something as when I run the application standalone it works fine.&lt;/p&gt;
&lt;p&gt;Anything specific I can look into??&lt;/p&gt;
&lt;p&gt;Ali&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/264299?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 14:05:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:585fc95b-e077-45c8-b572-0748142c9e5d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;That&amp;#39;s good to hear!&lt;/p&gt;
[quote user="AliMahmood123"]I noticed that OTA works but somehow my system has stopped giving me interrupts. I have a RFID Reader connected to one of the GPIOS and im using the button handler to register interrupt. They are not working at all.[/quote]
&lt;p&gt;&amp;nbsp;Are you configuring any IOs in your bootloader that may conflict with this interrupt pin? Remember that the bootloader configures some IOs by default (for led indication and button press) &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/264291?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 13:45:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d700e83-793f-410f-917b-c9917a416db1</guid><dc:creator>AliMahmood123</dc:creator><description>&lt;p&gt;Hi Vidar. It worked!&lt;/p&gt;
&lt;p&gt;Thanks a lot again for sending. However, I have to bother you again, we have another problem.&lt;/p&gt;
&lt;p&gt;I noticed that OTA works but somehow my system has stopped giving me interrupts. I have a RFID Reader connected to one of the GPIOS and im using the button handler to register interrupt. They are not working at all.&lt;/p&gt;
&lt;p&gt;However when I erase the flash and simply build and run my application (without bootloader and settings), the interrupts work fine. I have a dc motor on one of the GPIOs as well.&lt;/p&gt;
&lt;p&gt;How come it doesnt work when i flash APP + SD + BL + Settings and use it as my base application?&lt;/p&gt;
&lt;p&gt;I hope you can help me out with this it looks like the final nail in the coffin,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/263930?ContentTypeID=1</link><pubDate>Tue, 11 Aug 2020 06:55:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62438655-e647-482e-8ffe-f7320ea3236a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ali,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s not that much trouble. I just do an automatic search&amp;amp;replace of S132/s132 (case sensitive) with s112/S112. Here, I&amp;#39;ve done the same for the non-debug configuration:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-a16c369377024a4980b705a77f03ec87/pca10040_5F00_s112_5F00_ble.zip"&gt;devzone.nordicsemi.com/.../pca10040_5F00_s112_5F00_ble.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I expect it to work, but I&amp;#39;ve not verified it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/263903?ContentTypeID=1</link><pubDate>Mon, 10 Aug 2020 17:46:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8881360e-82e4-49b7-b77a-aabe9ae0d2b0</guid><dc:creator>AliMahmood123</dc:creator><description>&lt;p&gt;Hi Vidar&lt;/p&gt;
&lt;p&gt;I will do that and let you know. I hope it works. Because I really dont want to bother you again to send me another project with non debug changes.&lt;/p&gt;
&lt;p&gt;I will keep you posted&lt;/p&gt;
&lt;p&gt;Thanks again&lt;/p&gt;
&lt;p&gt;Ali&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/263807?ContentTypeID=1</link><pubDate>Mon, 10 Aug 2020 11:45:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25bc3440-e4e8-469f-bcf9-f557e750edb7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ali,&lt;/p&gt;
&lt;p&gt;The main difference with the debug bootloader is that it enables debug logging over RTT and that it lets you skip version validation (see &lt;span&gt;&lt;a title="Validation" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/lib_bootloader_dfu_validation.html?cp=7_1_3_5_1_1"&gt;Validation&lt;/a&gt;&lt;/span&gt;). &lt;/p&gt;
[quote user="AliMahmood123"]And how to bring about changes in the non debug version? I can copy the text editor and just change the flash start from 72000 to 78000 right??[/quote]
&lt;p&gt;&amp;nbsp;I would suggest making a copy of the existing &amp;quot;pca10040_s132_ble&amp;quot; bootloader configuration and make it into a pca10040_s112_ble configuration, the same as I did for the debug bootloader I sent you earlier.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/263562?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2020 09:46:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65de5580-6658-4a64-8c0c-523e65b83458</guid><dc:creator>AliMahmood123</dc:creator><description>&lt;p&gt;Hi Vidar&lt;/p&gt;
&lt;p&gt;Many thanks for the detailed explanation. I think my base application was fine because I did DFU on that as well. It worked same for modified blinky as it worked for without.&lt;/p&gt;
&lt;p&gt;There was some problem with bootloader as you mentioned in:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/63362/secure-buttonless-dfu-problem-on-nrf52832-soft-device-112/263553"]2) It seemed like you were building to project for nRF52810 instead of nRF52382, so that could be one explanation[/quote]
&lt;p&gt;I did the same. Just made S112 changes in the text editor. Perhaps I missed something.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;Anyways now that all is done. Could you please tell me the differences between the debug and non debug version? I am assuming I cannot use the debug version for production obviously.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;And how to bring about changes in the non debug version? I can copy the text editor and just change the flash start from 72000 to 78000 right??&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;If there is something else please let me know. I will share my results with you via non debug version in some days.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Enjoy the weekend though. I think you will reply on Monday&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Thanks again&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Ali&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/263553?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2020 08:55:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a37a4842-8324-4902-879b-b6504f5d5490</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello Ali,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad to hear that it finally worked.&lt;/p&gt;
[quote user="AliMahmood123"]I had some problems in DFU after your steps (invalid object error) because of invalid signature. Turns out I was signing with .pem key. When I created new keys nrfutil generated the private key in .key format. I dont know how this works but DFU used to work with me with .pem format[/quote]
&lt;p&gt;&amp;nbsp;Both formats should work. I used *.pem to generate the test image as you can see from the command I used:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;nrfutil pkg generate --debug-mode --application ble_app_blinky_pca10040_s112.hex --key-file private.pem ble_app_blinky.zip&lt;/p&gt;
&lt;p&gt;1) I did not modify the SDK itself. And the bootloader &amp;#39;pca10040_s112_ble_debug&amp;#39; configuration is nearly identical with the original &amp;#39;pca10040_s132_ble_debug&amp;#39; one. I just made a copy of the original &amp;quot;secure_bootloader_ble_s132_pca10040_debug.emProject&amp;quot; file and used a text editor to replace the occurense of &amp;quot;s132&amp;quot; with &amp;quot;s112&amp;quot;.&lt;/p&gt;
&lt;p&gt;The blinky app required a bit more work as I had to add the buttonless mechanism. I modified main.c and added the following source files:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="xml"&gt;    &amp;lt;folder Name=&amp;quot;nRF_SVC&amp;quot;&amp;gt;
      &amp;lt;file file_name=&amp;quot;../../../../../../components/libraries/bootloader/dfu/nrf_dfu_svci.c&amp;quot; /&amp;gt;
    &amp;lt;/folder&amp;gt;
    &amp;lt;folder Name=&amp;quot;nRF_DFU&amp;quot;&amp;gt;
      &amp;lt;file file_name=&amp;quot;../../../../../../components/ble/ble_services/ble_dfu/ble_dfu.c&amp;quot; /&amp;gt;
      &amp;lt;file file_name=&amp;quot;../../../../../../components/ble/ble_services/ble_dfu/ble_dfu_bonded.c&amp;quot; /&amp;gt;
      &amp;lt;file file_name=&amp;quot;../../../../../../components/ble/ble_services/ble_dfu/ble_dfu_unbonded.c&amp;quot; /&amp;gt;
    &amp;lt;/folder&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Pre-processor definitions:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="xml"&gt;c_preprocessor_definitions=&amp;quot;NRF_DFU_SVCI_ENABLED;BL_SETTINGS_ACCESS_ONLY;NRF_DFU_TRANSPORT_BLE=1&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And include paths:&lt;pre class="ui-code" data-mode="xml"&gt;c_user_include_directories=&amp;quot;../../../../../../components/libraries/bootloader;../../../../../../components/libraries/bootloader/ble_dfu;../../../../../../components/libraries/bootloader/dfu&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;2) It seemed like you were building to project for nRF52810 instead of nRF52382, so that could be one explanation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/263474?ContentTypeID=1</link><pubDate>Thu, 06 Aug 2020 14:36:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c328997c-4f98-471b-90aa-e3baad4bee64</guid><dc:creator>AliMahmood123</dc:creator><description>&lt;p&gt;Hi Vidar. It worked! Thank God.&lt;/p&gt;
&lt;p&gt;Thanks a lot for your helped Vidar. It means a lot to me that you sent me a custom bootloader application and all your help that helped me get through this. I&amp;#39;m indebted to you. Thanks a lot to Hung as well.&lt;/p&gt;
&lt;p&gt;I had some problems in DFU after your steps (invalid object error) because of invalid signature. Turns out I was signing with .pem key. When I created new keys nrfutil generated the private key in .key format. I dont know how this works but DFU used to work with me with .pem format&lt;/p&gt;
&lt;p&gt;However, thanks a lot once again. Should I verify this answer?&lt;/p&gt;
&lt;p&gt;Also, I have a few questions before we part ways&lt;/p&gt;
&lt;p&gt;1) What did you do different with the ble debug application? Perhaps some changes in the SDK because i could notice some changes&lt;/p&gt;
&lt;p&gt;2) I did OTA with your blinky application as well as my own. It worked perfectly for both so looks like there was some problem with bootloader application. I have spent more than a month on this. I would like to know what went wrong&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Warm Regards&lt;/p&gt;
&lt;p&gt;Ali&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/263130?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2020 08:11:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bcfde50-501b-4c90-a037-f03a85014f2c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ali,&lt;/p&gt;
&lt;p&gt;The bootloader also uses the BOOTLOADER_SETTINGS_ADDRESS and NRF_MBR_PARAMS_PAGE_ADDRESS symbols defined in nrf_dfu_types.h, and the fact that it says the settings page is *backed* up to 0x2E000 indicates that you are still building the project for NRF52810_XXAA.&lt;/p&gt;
&lt;p&gt;Attached below is the bootloader project I configured earlier and a version of the ble_app_blinky example thatI have modified to include the buttonless DFU mechanism. Please try DFU with these. Test image is included so you don&amp;#39;t have to generate the zip file.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-a16c369377024a4980b705a77f03ec87/nRF5_5F00_SDK16.0.0_5F00_examples.zip"&gt;devzone.nordicsemi.com/.../nRF5_5F00_SDK16.0.0_5F00_examples.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/262825?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 13:58:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90d57163-8587-44d0-a34f-487380d9c06b</guid><dc:creator>AliMahmood123</dc:creator><description>&lt;p&gt;Hi Vidar. I tried your project&amp;#39;s hex file.I merged it with my application and ran it. Same result as before.&lt;/p&gt;
&lt;p&gt;I really need guidance here. Why would it go to 2E000 address when I set address as 7E000. This issue is being delayed at work as well.&lt;/p&gt;
&lt;p&gt;Ali&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/262684?ContentTypeID=1</link><pubDate>Sun, 02 Aug 2020 21:59:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7dd6de3-2a9c-46dd-90c8-b7bbed471a73</guid><dc:creator>AliMahmood123</dc:creator><description>&lt;p&gt;Hi Vidar&lt;/p&gt;
&lt;p&gt;I like this Idea, I shall try it and update you soon. I hope you read the OP and all the prevailing discussions.&lt;/p&gt;
&lt;p&gt;Your idea was great Vidar, but can I get back to Hung with this if this doesnt work? He knows complete history would save you a&amp;nbsp; lot of&amp;nbsp;trouble?&lt;/p&gt;
&lt;p&gt;Ali&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Buttonless DFU Problem on nRF52832 Soft Device 112</title><link>https://devzone.nordicsemi.com/thread/262548?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2020 11:11:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:324bf527-f4cf-4e65-81c4-4ab8cb0fdde4</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ali, &lt;/p&gt;
[quote user="AliMahmood123"]One thing I see is that in both prints it is finding bootloader settings in 2E000 even when I have placed in 7E000 accordingly. Perhaps that issue.[/quote]
&lt;p&gt;&amp;nbsp;The settings address is wrong as you say, but did you mean to write 0x2&lt;strong&gt;F&lt;/strong&gt;000? That&amp;#39;s the default BL settings address if you build the project for the nRF52810 (see nrf_dfu_types.h).&lt;/p&gt;
&lt;p&gt;And with regards to porting, it&amp;#39;s easier to take an existing nRF52832+s132 and change out the Softdevice than it is to take a 52810+s132 project and port it to nrf52832.&amp;nbsp; I just did that for &amp;#39;pca10040_s132_ble_debug&amp;#39; configuration in SDK 16.0.0, see attached below. Can you give this project a try?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-a16c369377024a4980b705a77f03ec87/pca10040_5F00_s112_5F00_ble_5F00_debug.zip"&gt;devzone.nordicsemi.com/.../pca10040_5F00_s112_5F00_ble_5F00_debug.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>