<?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>Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38767/flashing-custom-nrf52-bootloader-softdevice-application</link><description>Good morning, 
 Is it always required to use Segger J-Link in order to flash Bootloader, Softdevice and Application to a new device? 
 Could you summarize the different possibilities we have to flash any of these parts? 
 Furthermore, and regarding the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Jan 2020 11:36:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38767/flashing-custom-nrf52-bootloader-softdevice-application" /><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/229581?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 11:36:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbe58daf-feac-4fb5-b887-ec18871efb0f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It&amp;#39;s hard for me to say, I have not experienced this difference when testing with the original bootloader and buttonless implementation. Did you see this with the original buttonless template app as well?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/229579?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 11:28:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67048c3c-8ef7-44aa-bd5f-d45c016c5b67</guid><dc:creator>Dani</dc:creator><description>&lt;p&gt;OK, thank you.&lt;/p&gt;
&lt;p&gt;And what about the time difference when carrying out DFU with nRFToolbox?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Dani&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/229567?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 10:06:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51186753-85c3-4ce5-b04d-d8e94e79eb9c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Dani,&lt;/p&gt;
&lt;p&gt;The 15.2 bootloader does not support this option. If you need to disable CRC checking you can change the nrf_bootloader.c::crc_on_valid_app_required() function so it always returns false.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/229085?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 14:42:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16e806c9-229f-4ea7-9954-f46ff778b1ee</guid><dc:creator>Dani</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using SDK_15_2: when I try to set NO_VALIDATION (in order to allow me debugging the application), I get the following message:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Bootloader_5F00_Settings.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;How can I debug my app with DFU, then?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Dani.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/229020?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 12:15:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fc94fc7-5c54-4bb0-95b3-39be56e836a9</guid><dc:creator>Dani</dc:creator><description>&lt;p&gt;I have some more info: I have taken again the Smartphone and I have used nRFToolbox instead of nRFConnect, and DFU is also working. When selecting DFU, I select my device and then the zip file. Then, I push &amp;#39;Upload&amp;#39;, and file uploading starts after a few seconds (around 30&amp;quot;). During this seconds, the messages shown at the bottom are the following ones:&lt;/p&gt;
&lt;p&gt;- Starting DFU --&amp;gt; Starting Bootloader --&amp;gt; Connecting --&amp;gt; Starting DFU --&amp;gt; File Uploading (upload percentage is shown).&lt;/p&gt;
&lt;p&gt;So, what I have such differences depending on the tool I use to carry out DFU process?&lt;/p&gt;
&lt;p&gt;All the best,&lt;/p&gt;
&lt;p&gt;Dani.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/228978?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 09:45:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7e15645-d918-41d2-b4ec-5e71f751103b</guid><dc:creator>Dani</dc:creator><description>&lt;p&gt;I get same results with function as in the following picture...&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2553.app_5F00_shutdown_5F00_handler.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;I was not in debugging mode: I will try it....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/228961?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 08:55:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a33a31ea-9ef6-415d-8e5c-b47487b06455</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please comment out the code used to disable the Softdevice and stop the app timer. Also, do you have debug logging enabled in your app to see if the shutdown handler gets called right away?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/228951?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 08:31:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16e673f6-2710-419f-a18a-2b987e50c13d</guid><dc:creator>Dani</dc:creator><description>&lt;p&gt;I have this function as depiced in the following picture:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/app_5F00_shutdown_5F00_handler.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;And the result in what regards time is the same...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/228929?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 06:57:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ccb8284-140f-42a5-bca6-604e30ee26a7</guid><dc:creator>Vidar Berg</dc:creator><description>[quote user="dtarrago"]In fact, according the code I have specified above, this function was already returning true[/quote]
&lt;p&gt;When is the&amp;nbsp;m_ready_for_reset flag set?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/228842?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2020 14:45:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f38aee8-ce75-40fa-8231-0e95db67aa32</guid><dc:creator>Dani</dc:creator><description>&lt;p&gt;The same: around 1 minute. In fact, according the code I have specified above, this function was already returning true.&lt;/p&gt;
&lt;p&gt;Furthermore: In my application (when connected) a characteristic sends notifications once every 250ms. With nRF connect (Desktop), if this notifications are enabled, DFU initializing time is practically halved. If notifications are not enabled, time for DFU initialization is around 1m&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/228803?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2020 13:12:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f501617-e2ca-4e29-b5c9-dca1a41840d2</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Try to change the&amp;nbsp;app_shutdown_handler() implementation so it always return true on&amp;nbsp;NRF_PWR_MGMT_EVT_PREPARE_DFU, then try again with nRF connect for desktop and see if it still takes a minute to get into DFU mode.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/228801?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2020 13:00:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb129ec8-1553-4ca6-878b-547148761a10</guid><dc:creator>Dani</dc:creator><description>&lt;p&gt;Some more information: When I&amp;#39;m using nRF Connect desktop application, it seems that Bootloader do not enter until this 1-minute wait: once DFU is started application continues working normally (nRFConnect, says &amp;#39;Initializing&amp;#39; -DFU) during this 1-minute. After that time, application is updated succesfully.&lt;/p&gt;
&lt;p&gt;On the other hand, when I use Android application, it seems the Bootloader enters just after DFU&amp;nbsp; button is pushed (application is not working): but then, application remains in &amp;#39;Connecting...&amp;#39; for about 1-minute. After that time, application seems to be updated and it starts running again (Reset is carried out).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/228748?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2020 09:47:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b6cb948-dbf6-4b5c-a59e-509555c7b081</guid><dc:creator>Dani</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I have implemented DFU in the same way the &amp;#39;Buttonless_dfu&amp;#39; is implement. My doubt is related to the &amp;#39;app_shutdown_handler&amp;#39;. Shoult I have to modify it? Now it is in the following way:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static bool app_shutdown_handler(nrf_pwr_mgmt_evt_t event)
{
    switch (event)
    {
        case NRF_PWR_MGMT_EVT_PREPARE_DFU:
            NRF_LOG_INFO(&amp;quot;Power management wants to reset to DFU mode.&amp;quot;);
            // YOUR_JOB: Get ready to reset into DFU mode
            //
            // If you aren&amp;#39;t finished with any ongoing tasks, return &amp;quot;false&amp;quot; to
            // signal to the system that reset is impossible at this stage.
            //
            // Here is an example using a variable to delay resetting the device.
            //
            // if (!m_ready_for_reset)
            // {
            //      return false;
            // }
            // else
            //{
            //
            //    // Device ready to enter
            //    uint32_t err_code;
            //    err_code = sd_softdevice_disable();
            //    APP_ERROR_CHECK(err_code);
            //    err_code = app_timer_stop_all();
            //    APP_ERROR_CHECK(err_code);
            //}
            break;

        default:
            // YOUR_JOB: Implement any of the other events available from the power management module:
            //      -NRF_PWR_MGMT_EVT_PREPARE_SYSOFF
            //      -NRF_PWR_MGMT_EVT_PREPARE_WAKEUP
            //      -NRF_PWR_MGMT_EVT_PREPARE_RESET
            return true;
    }

    NRF_LOG_INFO(&amp;quot;Power management allowed to reset to DFU mode.&amp;quot;);
    return true;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Apart of this, for DFU I have APP_ADV_INTERVAL set to 80 and APP_ADV_DURATION to 200 (same values as in my application).And in my application, advertising is done every 10s.&amp;nbsp; Should this values cause any problem?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Dani.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/228724?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2020 08:05:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38251068-5c26-42b0-8955-7b8d33c0ced3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Dani,&lt;/p&gt;
&lt;p&gt;It should only take a few seconds to pre-validate the update and get started on the transfer. Maybe the buttonless implementation is not transferring execution to the bootloader right away and thus delaying the transfer start? Or do you see the same if you start DFU when the device is already in bootloader DFU mode?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/228568?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2020 13:06:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:991d5c5d-c368-4ff0-8b56-6d4c2beaaf5b</guid><dc:creator>Dani</dc:creator><description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I have succeeded in implementing Buttonless DFU into my prototype and it is working with nRF connect by Nordic: I have created the zip file containing my application and I was able to update the application via DFU using this tool.&lt;/p&gt;
&lt;p&gt;The problem is that it takes more than one minute with DFU in &amp;#39;initializing&amp;#39; state --&amp;gt; please look at the first screenshot showing this situation. After this minute, it starts transferring the file, and once the file is completely transferred, my device is reseted and new application starts working. So,&lt;/p&gt;
&lt;p&gt;- Why is it taking such a long time initializing?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Is it related to application size (zip file size is 131KB)?&lt;/p&gt;
&lt;p&gt;When DFU procedure is working, what does it mean? Is it refering to BLE transfer or to the new application transfer inside device memory?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Dani.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/226612?ContentTypeID=1</link><pubDate>Fri, 20 Dec 2019 14:42:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43d9dedd-698b-48ae-abb5-bf5195838bbf</guid><dc:creator>Vidar Berg</dc:creator><description>[quote userid="3586" url="~/f/nordic-q-a/38767/flashing-custom-nrf52-bootloader-softdevice-application/226054"]I have already found this: I had to create the bootloader setting.[/quote]
&lt;p&gt;I&amp;#39;m referring to bootloader settings page that I assume you&amp;#39;ve created with nrfutil. Nrfutil has an option (as shown in screenshot) to disable boot validation of the app.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/226607?ContentTypeID=1</link><pubDate>Fri, 20 Dec 2019 14:34:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04372810-3b99-4799-b4ef-9120972d2051</guid><dc:creator>Dani</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;And what about the settings page that is needed to be modified for debugging?&lt;/p&gt;
&lt;p&gt;Where is it? Which settings page are you referring to?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Dani&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/226410?ContentTypeID=1</link><pubDate>Thu, 19 Dec 2019 14:39:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0365a159-f573-43a9-8968-62e5e5208e8c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Dani,&lt;/p&gt;
&lt;p&gt;I was referring to the bootloader settings page. The&amp;nbsp;&lt;span&gt;NRF_DFU_APP_DATA_AREA_SIZE flag is only used by the bootloader.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/226332?ContentTypeID=1</link><pubDate>Thu, 19 Dec 2019 10:33:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa5d7a0f-7ccd-4e25-b4b4-5338f972dd7e</guid><dc:creator>Dani</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thank you again for your answers.&lt;/p&gt;
&lt;p&gt;Which settings page are you referring to in your last answer?&lt;/p&gt;
&lt;p&gt;Should the &amp;#39;&lt;span&gt;NRF_DFU_APP_DATA_AREA_SIZE&amp;nbsp;&amp;#39; parameter also be modified in the &amp;#39;nrf_dfu_types.h&amp;#39; file when including this file (DFU service) into the application?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m working with Keil...&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Dani.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/226277?ContentTypeID=1</link><pubDate>Thu, 19 Dec 2019 07:40:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89ee0f57-72f8-4db4-8902-1083a9688586</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Dani,&lt;/p&gt;
&lt;p&gt;Yes, the settings page is needed to tell the bootloader that you have a valid application, it will fall back to DFU mode otherwise. As for debugging the app, you can do that after you&amp;#39;ve loaded the settings page. Just make sure to disable boot validation option in the settings page&amp;nbsp;to allow the bootloader to boot the app even if it has been modified.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-f89bdd53b9ee4890b6bfb7b26d7383a9/pastedimage1576741144889v1.png" alt=" " /&gt;&lt;/p&gt;
[quote user="dtarrago"]What about preserved data? Have I to consider extra settings when bootloader is present[/quote]
&lt;p&gt;&amp;nbsp;FDS automatically detects the presence of the bootloader and places the data below the bootloader instead of placing it at the end of flash, see&amp;nbsp;&lt;a title="Memory layout" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_bootloader.html?cp=7_1_3_5_0_7#lib_bootloader_memory"&gt;Memory layout&lt;/a&gt;. Also, the NRF_DFU_APP_DATA_AREA_SIZE flag inside the bootloader must correspond to the number of FDS pages allocated by the app to ensure&amp;nbsp;app&amp;nbsp;data is&amp;nbsp;preserved data through DFU. The default is usually 3 pages.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/226054?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 09:19:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b01725c-366b-4a08-baf5-f516af57ba99</guid><dc:creator>Dani</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;I have already found this: I had to create the bootloader setting.&lt;/p&gt;
&lt;p&gt;Now, the application starts working but, when it has to start advertising, it seems to be hung!!!! do you know which can be the reason?&lt;/p&gt;
&lt;p&gt;So,&lt;/p&gt;
&lt;p&gt;- How can I debug my application when bootloader is present?&lt;/p&gt;
&lt;p&gt;- What about preserved data? Have I to consider extra settings when bootloader is present?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Dani.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/226037?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 08:25:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f6fbcab-cf70-4fd7-8ced-6e36ed549b4b</guid><dc:creator>Dani</dc:creator><description>&lt;p&gt;Good morning,&lt;/p&gt;
&lt;p&gt;I have suceeded in programming both softdevice and application with J-Flash tool by Segger and ARM flasher. It is perfectly working-&lt;/p&gt;
&lt;p&gt;Now, I want to also include bootloader in order to have BLE-DFU implemented. I have created private_key following steps detailed in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;DFU_Step_by_step&lt;/a&gt;. I have merged bootloader, softdevice and application with J-Flash tool but device is not working. I suppose that it is a problem related with addresses. Is there any explanation showing which addresses to consider for all of this three parts in what regards the nRF52840 device?&lt;/p&gt;
&lt;p&gt;Furthermore, is it required to create the zip file using this?:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrfutil pkg generate --hw-version 52 --application-version 1 --application nrf52832_xxaa.hex --sd-req 0x98 --key-file private.key app_dfu_package.zip&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I suppose this is only required when carrying out a BLE-DFU operation, right?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Apart of this: in my application I have some preserved data: I have set FDS_VIRTUAL_PAGES to 5 and preserved data is working without Bootloader. Do I have to consider something new with this preserved data when including bootloader? Is re-adressing carried out automatically?&lt;/p&gt;
&lt;p&gt;All the best,&lt;/p&gt;
&lt;p&gt;Dani&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/225873?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2019 12:45:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2869f935-7031-4890-a04a-443fe24da16e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You can flash everything at once regardless of what programmer you use, but you may want to merge&amp;nbsp;the hex files first to speed up the process a bit. See&amp;nbsp;&lt;a title="Merging files with mergehex" href="https://infocenter.nordicsemi.com/topic/ug_nrf5x_cltools/UG/cltools/nrf5x_mergehex.html?cp=7_1_2"&gt;Merging files with mergehex&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/225865?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2019 12:21:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0b633e1-cc43-4a98-8fc4-8f58ffd776e2</guid><dc:creator>Dani</dc:creator><description>&lt;p&gt;Thank you so much for your answer.&lt;/p&gt;
&lt;p&gt;It will perfect to flash everything at once the first time, but later on, I will need the device to be updated via BLE (just the application).&lt;/p&gt;
&lt;p&gt;Will the Segger ARM Flasher also work to flash everything?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Dani&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing custom nRF52 (Bootloader, SoftDevice, Application)</title><link>https://devzone.nordicsemi.com/thread/225860?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2019 12:05:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4650521-0b03-4b6c-add5-df015be10bd2</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Dani, here&amp;#39;s an updated link to the documentation I was referring to earlier:&amp;nbsp;&lt;a title="Production programming and testing" href="https://infocenter.nordicsemi.com/topic/ug_getting_started/UG/gs/prod_test_prog.html?cp=1_0_6"&gt;Production programming and testing&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
[quote user="dtarrago"]Do I always need the Segger J-Link to flash bootloader? Are there any other options?[/quote]
&lt;p&gt;&amp;nbsp;The ICs are shipped blank from our factory, but some third-party modules may come pre-programmed with a bootlaoder.&amp;nbsp;&lt;/p&gt;
[quote user="dtarrago"]Can the bootloader be flashed using the USB port?[/quote]
&lt;p&gt;&amp;nbsp;Unfortunately, no.&amp;nbsp;The USB&amp;nbsp;can only be enabled and controlled by FW running on the chip.&lt;/p&gt;
[quote user="dtarrago"]And in what regards SoftDevice, and Application: once I have the bootloader flashed, can they be flashed via BLE the first time (with DFU, of course)?[/quote]
&lt;p&gt;&amp;nbsp;You could just flash the MBR and bootloader and program the Softdevice and application afterward. But wouldn&amp;#39;t it be better to flash everything at once? It will certainly be faster.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="dtarrago"]Which method do you recommend to flash Bootloader, SoftDevice, Application for mass production?[/quote]
&lt;p&gt;I would say&amp;nbsp;to program everything through the debug interface in one step if possible and not DFU. But it depends. Maybe you want the final FW to be uploaded after the product is enclosed, etc.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>