<?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>Errors while adding the Buttonless Secure DFU Service to a BLE application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44116/errors-while-adding-the-buttonless-secure-dfu-service-to-a-ble-application</link><description>Hi, Andreas. 
 Following the guide you find in the document &amp;quot; Buttonless Secure DFU Service &amp;quot;, I get errors while trying to compile. In order to ascertain were is the problem, I am adding the five scripts being mention in this document (SDK configuration</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Mar 2019 06:57:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44116/errors-while-adding-the-buttonless-secure-dfu-service-to-a-ble-application" /><item><title>RE: Errors while adding the Buttonless Secure DFU Service to a BLE application</title><link>https://devzone.nordicsemi.com/thread/175230?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2019 06:57:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cdaac42-1f1d-4183-a43d-ed24bfe7a957</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been away last week.&lt;/p&gt;
&lt;p&gt;You probably have some included paths that are wrong.&lt;/p&gt;
&lt;p&gt;Make sure that you only include the header file for SoftDevice S140, and if you have&lt;strong&gt; components/drivers_nrf/nrf_soc_nosd&lt;/strong&gt; in your include path, remove that one.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors while adding the Buttonless Secure DFU Service to a BLE application</title><link>https://devzone.nordicsemi.com/thread/175210?ContentTypeID=1</link><pubDate>Sun, 10 Mar 2019 16:54:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f6abb75-5108-4a1a-b8c7-8b5a4cd5d053</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;Hi Andreas.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Since I need an nRF52840 chip to transmit a +8dBm signal, and permanently advertising its device_name in order to scan it and measure the max. range the chip is able to generate in within&amp;nbsp;its final product embodiment, I am trying to merge two examples from SDK v15.2.0. The &amp;quot;Central &amp;amp; Peripheral ble_app_interactive&amp;quot; and the &amp;quot;Peripheral Radio Test&amp;quot;. With the second one, I can customize the output_power, but I can&amp;#39;t advertise a device_name. With the first one, is just the opposite.&lt;br /&gt;The merging strategy I am following is as follow (I&amp;#39;m using Segger embedded Studio):&lt;br /&gt;1.- I use ble_app_interactive as the base project, and I copy (folder by folder) the files from Radio Test example which, according to the SES Project Explorer, are not already contained in the ble_app_interactive.&lt;br /&gt;2.- With the main.c file, I follow the same criteria regarding the code. First appending all the privative #includes, and then and at the end of the ble_app_interactive example, the rest of the statements from the Radio Test.&lt;br /&gt;3.- With the sdk_config.h file, I did the same, trying not to duplicate statements.&lt;br /&gt;4.- With the resulting SES merged Project, I detect and correct errors running Build and Run. Most of them being preprocessor &amp;quot;user include directories&amp;quot; not being defined in case of .h files or just .c files whose path is not being recognized.&lt;br /&gt;5.- In each error correction iteration, I re-run a Build and Run command, to make sure the correction has taken place.&lt;/p&gt;
&lt;p&gt;Unfortunately, I&amp;#39;ve reached the point in which the error statement says that certain function parameters are not defined (when they should), and I have no Idea what to do.&lt;br /&gt;Since apparently, only 19 errors remain to be solved, and they all seem very similar, I would appreciate if you give me a clue on what to keep going.&lt;/p&gt;
&lt;p&gt;I could send you the SES project file, but I don&amp;#39;t know how to do it. Meanwhile, I send you a snapshot of my SES application in case it would be of any help.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/merging-errors_5F00_snapshot.png" /&gt;&lt;/p&gt;
&lt;p&gt;Waiting on a kind suggestion,&lt;/p&gt;
&lt;p&gt;Thanks for your time and,&lt;br /&gt;Best regards&lt;/p&gt;
&lt;p&gt;Juan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors while adding the Buttonless Secure DFU Service to a BLE application</title><link>https://devzone.nordicsemi.com/thread/174164?ContentTypeID=1</link><pubDate>Tue, 05 Mar 2019 08:05:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ece1b75-034c-4efe-ae2f-1c3f7b166b73</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi Juan.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve notified your RSM, he will contact your regarding this issue.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors while adding the Buttonless Secure DFU Service to a BLE application</title><link>https://devzone.nordicsemi.com/thread/174061?ContentTypeID=1</link><pubDate>Mon, 04 Mar 2019 15:20:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff42fd4a-c580-4ecc-8f95-e676473eb864</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;&amp;nbsp;Hi Andreas.&lt;/p&gt;
&lt;p&gt;Sorry to hear that, and of course, I understand your position.&lt;/p&gt;
&lt;p&gt;In this&amp;nbsp;case, let me ask you. Since --as I understand-- Nordic Semiconductor doesn&amp;#39;t provide sw developing&amp;nbsp;services among his product portfolio, and it is urgent for me to customize a product, would you please suggest me a third party Company able to build a SES project file around your nRF52840 chip?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Juan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors while adding the Buttonless Secure DFU Service to a BLE application</title><link>https://devzone.nordicsemi.com/thread/173904?ContentTypeID=1</link><pubDate>Mon, 04 Mar 2019 09:55:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8692fcf3-e833-47c1-b02c-d5ca8d72456b</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi Juan.&lt;/p&gt;
&lt;p&gt;DevZone is our preferred communication channel. If you wish to discuss something which is confidential, you can create a private ticket. We do not have any one to one support unfortunately.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors while adding the Buttonless Secure DFU Service to a BLE application</title><link>https://devzone.nordicsemi.com/thread/173863?ContentTypeID=1</link><pubDate>Mon, 04 Mar 2019 02:47:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a21c2d64-23a1-4cf0-984a-e1e909eb4593</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;Hi Andreas.&lt;/p&gt;
&lt;p&gt;Would it be possible to contact you through a private channel?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Juan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors while adding the Buttonless Secure DFU Service to a BLE application</title><link>https://devzone.nordicsemi.com/thread/173370?ContentTypeID=1</link><pubDate>Thu, 28 Feb 2019 06:18:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af2a968d-66a4-4b9e-9594-91f1069e0940</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi Juan.&lt;/p&gt;
&lt;p&gt;The variable &lt;strong&gt;m_ready_for_reset&lt;/strong&gt; is just an example of a variable used to return false if you are still doing some tasks and can&amp;#39;t reset the system.&lt;/p&gt;
&lt;p&gt;As you can read in the &lt;strong&gt;app_shutdown_handler&lt;/strong&gt; section on DocLib.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;case NRF_PWR_MGMT_EVT_PREPARE_DFU:
    NRF_LOG_INFO(&amp;quot;Power management wants to reset to DFU mode\r\n&amp;quot;);    
    // Change this code to tailor to your reset strategy.
    // Returning false here means that the device is not ready to jump to DFU mode yet.
    // 
    // Here is an example using a variable to delay resetting the device:
    if (!m_ready_for_reset)
    {
        return false;
    }
    break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So if you don&amp;#39;t want to jump into DFU mode, you should make some code which returns false.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors while adding the Buttonless Secure DFU Service to a BLE application</title><link>https://devzone.nordicsemi.com/thread/173318?ContentTypeID=1</link><pubDate>Wed, 27 Feb 2019 19:27:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30538c61-cc0b-4733-a9de-cf3996ae2859</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;Hi Andreas.&lt;/p&gt;
&lt;p&gt;After following the correct procedure to include the ble_dfu.h file in my project, I was able to&amp;nbsp;paste the second and third&amp;nbsp;proposed&amp;nbsp;scripts, but I get one&amp;nbsp;error&amp;nbsp;after&amp;nbsp;pasting the fourth script.&lt;/p&gt;
&lt;p&gt;The function &amp;quot;if (&amp;iexcl;m_ready_for_reset)&amp;quot;&amp;nbsp; is undeclared (?):&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Implement-the-DFU-event-handler_5F00_2.png" /&gt;&lt;/p&gt;
&lt;p&gt;Waiting&amp;nbsp;for your comments,&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;
&lt;p&gt;Juan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors while adding the Buttonless Secure DFU Service to a BLE application</title><link>https://devzone.nordicsemi.com/thread/173155?ContentTypeID=1</link><pubDate>Wed, 27 Feb 2019 06:22:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:078eb342-e8a7-4efa-a4c5-3be1b8c1ec13</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi Juan.&lt;/p&gt;
[quote user="p143"]Maybe to get the file really included, it was not enough to just add it in the Project &amp;quot;Application&amp;quot; folder (at the image top left of the SES Project Explorer), which is what I did?[/quote]
&lt;p&gt;&amp;nbsp;Yes, I think that you have to follow this &lt;a href="https://www.nordicsemi.com/DocLib/Content/User_Guides/gsg_ses/latest/UG/gsg/add_headers_ses"&gt;procedure.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Try that and see if it makes a difference :-)&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors while adding the Buttonless Secure DFU Service to a BLE application</title><link>https://devzone.nordicsemi.com/thread/173125?ContentTypeID=1</link><pubDate>Tue, 26 Feb 2019 21:41:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a04a8ee-e362-49bb-9ea3-3fc1b6ce3497</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;Hi, Andreas.&lt;/p&gt;
&lt;p&gt;I included the file ble_dfu.h, but as you can see here below, nothing seems to change:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Implement-the-DFU-event-handler_5F00_1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Maybe to get the file really included, it was not enough to just add it in the Project &amp;quot;Application&amp;quot; folder (at the image top left of the SES Project Explorer), which is what I did?&lt;/p&gt;
&lt;p&gt;Waitting&amp;nbsp;on your comments,&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;p143/Juan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors while adding the Buttonless Secure DFU Service to a BLE application</title><link>https://devzone.nordicsemi.com/thread/173031?ContentTypeID=1</link><pubDate>Tue, 26 Feb 2019 12:59:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71582c37-08a9-4d91-bdb4-bbde24833ebc</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Have you included the file &lt;strong&gt;ble_dfu.h&lt;/strong&gt; to your project?&lt;/p&gt;
&lt;p&gt;It is located at components\ble\ble_services\ble_dfu\ble_dfu.h.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>