<?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>adding FDS and more characteristicscauses the dfu service to crash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47352/adding-fds-and-more-characteristicscauses-the-dfu-service-to-crash</link><description>Hi, I am trying to fix a crash in the dfu service. I am using a custom board based on the NR52840, SDK 15.0 and softdevice 6.0. 
 I am trying to add some new characteristics to the DFU service that are populated from values in FDS. This causes the DFU</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 May 2019 01:24:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47352/adding-fds-and-more-characteristicscauses-the-dfu-service-to-crash" /><item><title>RE: adding FDS and more characteristicscauses the dfu service to crash</title><link>https://devzone.nordicsemi.com/thread/187602?ContentTypeID=1</link><pubDate>Fri, 17 May 2019 01:24:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cd4d353-1b9f-42a9-846b-9167af8e2e0f</guid><dc:creator>paul</dc:creator><description>&lt;p&gt;Looks like I had some issues with the code to add characteristics and then update the values. It is working now&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding FDS and more characteristicscauses the dfu service to crash</title><link>https://devzone.nordicsemi.com/thread/187598?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 21:28:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8060bead-0117-4c54-bda8-e2549454c7e1</guid><dc:creator>paul</dc:creator><description>&lt;p&gt;Thanks Edvin,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Our client to this device is currently on IOS. Apple work very hard to avoid giving you useful information on that stack eg the Mac address. I am trying to add hardware revision and firmware revision so that the client can be sure that the firmware update matches the device. To do this I was going to add some characteristics that held that information.&lt;/p&gt;
&lt;p&gt;I have added DEBUG to the preprocessor defines . There is no error message.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;debug&amp;gt; app: In nrf_bootloader_init
&amp;lt;debug&amp;gt; nrf_dfu_settings: Calling nrf_dfu_settings_init()...
&amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.
&amp;lt;debug&amp;gt; app: Enter nrf_bootloader_fw_activate
&amp;lt;info&amp;gt; app: No firmware to activate.
&amp;lt;debug&amp;gt; app: Enter nrf_dfu_app_is_valid
&amp;lt;debug&amp;gt; app: Return true. App was valid
&amp;lt;debug&amp;gt; app: DFU mode requested via GPREGRET.
&amp;lt;info&amp;gt; nrf_bootloader_wdt: WDT is not enabled
&amp;lt;debug&amp;gt; app: in weak nrf_dfu_init_user
&amp;lt;info&amp;gt; app_timer: RTC: initialized.
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Cheers Paul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding FDS and more characteristicscauses the dfu service to crash</title><link>https://devzone.nordicsemi.com/thread/187496?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 10:49:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f9384f8-ae0e-435c-9c95-e2ba57417982</guid><dc:creator>Edvin</dc:creator><description>[quote user=""]The error is cause by the on_error handler in main.[/quote]
&lt;p&gt;&amp;nbsp;The error is picked up by the error handler.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you sure that you want to add more things to the bootloader project, which is what it is looking like you are doing. The bootloader is usually the part that is only responsible for the update of the application. The application itself should only trigger the nRF to enter DFU mode (the bootloader).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You shouldn&amp;#39;t have to add characteristics to the bootloader. However, if you do need to add something, you should use the error handler to figure out where the issue comes from. Define &amp;quot;DEBUG&amp;quot; in your preprocessor defines, and watch the log. Does it say where the APP_ERROR_CHECK(err_code) with an err_code != 0 comes from?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>