<?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>Problems with enabling softdevice while in DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53477/problems-with-enabling-softdevice-while-in-dfu</link><description>Hi, 
 We are developping an app using nrf52840. We started with the SDK14.2 and needed to migrate to SDK15.0 in order to use the long range. We are also using a Bootloader and DFU in order to update the app Over The Air. 
 The app was migrated successfully</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Oct 2019 12:10:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53477/problems-with-enabling-softdevice-while-in-dfu" /><item><title>RE: Problems with enabling softdevice while in DFU</title><link>https://devzone.nordicsemi.com/thread/217056?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2019 12:10:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:468fe73f-be92-4e69-aec0-c065a9e4c579</guid><dc:creator>Philemon</dc:creator><description>&lt;p&gt;Nevermind,&lt;/p&gt;
&lt;p&gt;By using the debug project I forgot that I had to change back my sdk_config file to use the RC oscillator. After doing that with this project I&amp;#39;m able to go into DFU. I don&amp;#39;t know why the other project did not work but everything seems fine now.&lt;/p&gt;
&lt;p&gt;Thank you very much for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with enabling softdevice while in DFU</title><link>https://devzone.nordicsemi.com/thread/217051?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2019 12:01:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37da1851-1388-437f-8287-a4f28851f296</guid><dc:creator>Philemon</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Ok, using the debug project I now know that after going into&amp;nbsp;DFU from my main application I go in the bootloader, I get to ble_stack_init and then I get to sd_softdevice_enable and hangs there:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1000x500/__key/communityserver-discussions-components-files/4/pastedimage1572263962443v3.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with enabling softdevice while in DFU</title><link>https://devzone.nordicsemi.com/thread/216993?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2019 07:58:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae15c225-c4f6-46f3-b1b8-485c4613f679</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, that is correct. The bootloader size increases when you add debug logging. Therefore, the SDK contains dedicated bootloader debug projects (e.g. &amp;lt;SDK15&amp;gt;\examples\dfu\secure_bootloader\pca10056_ble_debug), which has a lower bootloader start address to accommodate the larger bootloader. You would typically not use this in productions, but it is very useful when debugging bootloader and/or DFU issues.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with enabling softdevice while in DFU</title><link>https://devzone.nordicsemi.com/thread/216912?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2019 15:47:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c3f7e71-a691-4bf0-954a-9d169d02bc95</guid><dc:creator>Philemon</dc:creator><description>&lt;p&gt;The bootloader project only has a release build configuration. I tried to add a debug configuration but I get these errors:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 4.22/gcc/arm-none-eabi/bin/ld: error: .text is too large to fit in FLASH memory segment
1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 4.22/gcc/arm-none-eabi/bin/ld: error: .dfu_trans is too large to fit in FLASH memory segment
1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 4.22/gcc/arm-none-eabi/bin/ld: error: .svc_data is too large to fit in FLASH memory segment
1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 4.22/gcc/arm-none-eabi/bin/ld: error: .sdh_ble_observers is too large to fit in FLASH memory segment
1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 4.22/gcc/arm-none-eabi/bin/ld: error: .sdh_req_observers is too large to fit in FLASH memory segment
1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 4.22/gcc/arm-none-eabi/bin/ld: error: .sdh_state_observers is too large to fit in FLASH memory segment
1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 4.22/gcc/arm-none-eabi/bin/ld: error: .sdh_stack_observers is too large to fit in FLASH memory segment
1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 4.22/gcc/arm-none-eabi/bin/ld: error: .sdh_soc_observers is too large to fit in FLASH memory segment
1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 4.22/gcc/arm-none-eabi/bin/ld: error: .fs_data is too large to fit in FLASH memory segment
1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 4.22/gcc/arm-none-eabi/bin/ld: error: .rodata is too large to fit in FLASH memory segment
1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 4.22/gcc/arm-none-eabi/bin/ld: error: .data is too large to fit in FLASH memory segment&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;From what I&amp;#39;ve gathered it seems there is not enough place to add the debug with my configurations... I&amp;#39;m not so sure on what to do now. (optimisation set to &amp;quot;Optimise for Size&amp;quot;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For the RAM, I tried using the exact same settings from the exemple and I get the same problem. I also tried changing it like you said without success.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with enabling softdevice while in DFU</title><link>https://devzone.nordicsemi.com/thread/216521?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2019 08:35:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9232fa64-12a9-4cae-a77e-ea7e72bc9f66</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see, then most things should be good. Can you check with a debugger what happens when you say the system &amp;quot;hangs&amp;quot;? What state is the system in? Is an error check hit? Is it a hard fault? Etc?&lt;/p&gt;
&lt;p&gt;Without knowing more, another possible issue is if your bootloader RAM configuration leaves too little RAM for the SoftDevice. If you are using an unmodified bootloader, then you can use the RAM start address and size from the example bootloader project. If you have made modifications, you could increase the bootloader RAM start address (and reduce the size accordingly) a bit to make additional room for the SoftDevice. Then you can reduce it again later when you know how much RAM it needs for your configuration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with enabling softdevice while in DFU</title><link>https://devzone.nordicsemi.com/thread/216455?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 18:43:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a47ac3ea-bf69-404e-ba98-4abee68e0ae1</guid><dc:creator>Philemon</dc:creator><description>&lt;p&gt;In my bat files that merges my bootloader softdevice and application in one .hex file the softdevice used is:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;SET SOFT_DEV=..\..\components\softdevice\s140\hex\s140_nrf52_6.0.0_softdevice.hex&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In my application project settings, the softdevice path is the following:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/600x240/__key/communityserver-discussions-components-files/4/pastedimage1571843507025v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;The bootloader project comes from the SDK15 directly and the version of the softdevice in the SDK is the following:&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/600x240/__key/communityserver-discussions-components-files/4/pastedimage1571856067919v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So I&amp;#39;m pretty sure that the softdevice version is the same all throughout if I&amp;#39;m not mistaken&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with enabling softdevice while in DFU</title><link>https://devzone.nordicsemi.com/thread/216176?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 12:50:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fae5682-2925-4208-82c3-ae5a8942290c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The way I understand, the bootloader runs but something happens when it calls&amp;nbsp;sd_softdevice_enable(). Since the bootloader runs this means that much of the memory layout is OK. At least the bootloader is located where it should be (indicated in UICR), and it is started by the MBR (first page - part of the SoftDevice .hex). Since the error occurs when you make the first SoftDevice call, I wonder if perhaps you have the wrong SoftDevice flashed? Can you confirm that the SoftDevice which is flashed on the board is the same SoftDevice version you used when building the bootloader? If not, the SoftDevice API will be incompatible an anything could happen. It is important that you always update the SoftDevice and bootloader simultaneously. If there is a API mismatch, you will get problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>