<?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>Bootloader causes NRF52840 to stop advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39857/bootloader-causes-nrf52840-to-stop-advertising</link><description>Hi, 
 I am trying to program the bootloader for the nrf52840. I am trying to create a settings for the specific hex file, and then programming using the nrfjprog commands. But for some reason, whenever i upload the bootloader on top of the soft device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Nov 2018 13:41:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39857/bootloader-causes-nrf52840-to-stop-advertising" /><item><title>RE: Bootloader causes NRF52840 to stop advertising</title><link>https://devzone.nordicsemi.com/thread/156177?ContentTypeID=1</link><pubDate>Tue, 06 Nov 2018 13:41:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2692aecf-c17c-46d5-a647-4754a54796ca</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Could you post the debug logs here please? Need to know what is going on. Just to have things clear, can you post the commands you are using now? It is not clear from you answer if you tried a --reset at the end of each program line, or if you program SD+BT+app+settings and then ran&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --reset&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;at the end.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader causes NRF52840 to stop advertising</title><link>https://devzone.nordicsemi.com/thread/156037?ContentTypeID=1</link><pubDate>Mon, 05 Nov 2018 20:12:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:137afd6e-3f27-4767-9214-e52a0ec8f1e9</guid><dc:creator>Shri1395</dc:creator><description>&lt;p&gt;I have tried using the nrfConnect app, it does not advertise.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried --reset at the end, and it does not make any difference.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader causes NRF52840 to stop advertising</title><link>https://devzone.nordicsemi.com/thread/155993?ContentTypeID=1</link><pubDate>Mon, 05 Nov 2018 14:39:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2acdccb3-33be-423b-a183-ff97e333f78f</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Firstly, you should use the nRF Connect app to see if the device is advertising or not, the LED not blinking can be a consequence of something else. You should check if the device is advertising in bootloader mode.&lt;/p&gt;
&lt;p&gt;You can also enable the logging option via RTT and copy the logs in here.&lt;/p&gt;
&lt;p&gt;You should also not do a reset in each programming stage, just run a single reset at the end and see if that helps.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader causes NRF52840 to stop advertising</title><link>https://devzone.nordicsemi.com/thread/155798?ContentTypeID=1</link><pubDate>Fri, 02 Nov 2018 15:47:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b58b50ab-064e-403f-b343-2d1f099b7f81</guid><dc:creator>Shri1395</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/* Linker script to configure memory regions. */

SEARCH_DIR(.)
GROUP(-lgcc -lc -lnosys)

MEMORY
{
  FLASH (rx) : ORIGIN = 0xf8000, LENGTH = 0x6000
  RAM (rwx) :  ORIGIN = 0x200057b8, LENGTH = 0x3a848
  uicr_mbr_params_page (r) : ORIGIN = 0x10001018, LENGTH = 0x4
  mbr_params_page (r) : ORIGIN = 0x000FE000, LENGTH = 0x1000
  bootloader_settings_page (r) : ORIGIN = 0x000FF000, LENGTH = 0x1000
  uicr_bootloader_start_address (r) : ORIGIN = 0x10001014, LENGTH = 0x4
}

SECTIONS
{
  .uicr_mbr_params_page :
  {
    PROVIDE(__start_uicr_mbr_params_page = .);
    KEEP(*(SORT(.uicr_mbr_params_page*)))
    PROVIDE(__stop_uicr_mbr_params_page = .);
  } &amp;gt; uicr_mbr_params_page
  .mbr_params_page(NOLOAD) :
  {
    PROVIDE(__start_mbr_params_page = .);
    KEEP(*(SORT(.mbr_params_page*)))
    PROVIDE(__stop_mbr_params_page = .);
  } &amp;gt; mbr_params_page
  .bootloader_settings_page(NOLOAD) :
  {
    PROVIDE(__start_bootloader_settings_page = .);
    KEEP(*(SORT(.bootloader_settings_page*)))
    PROVIDE(__stop_bootloader_settings_page = .);
  } &amp;gt; bootloader_settings_page
  .uicr_bootloader_start_address :
  {
    PROVIDE(__start_uicr_bootloader_start_address = .);
    KEEP(*(SORT(.uicr_bootloader_start_address*)))
    PROVIDE(__stop_uicr_bootloader_start_address = .);
  } &amp;gt; uicr_bootloader_start_address
}

SECTIONS
{
  . = ALIGN(4);
  .mem_section_dummy_ram :
  {
  }
  .log_dynamic_data :
  {
    PROVIDE(__start_log_dynamic_data = .);
    KEEP(*(SORT(.log_dynamic_data*)))
    PROVIDE(__stop_log_dynamic_data = .);
  } &amp;gt; RAM
  .fs_data :
  {
    PROVIDE(__start_fs_data = .);
    KEEP(*(.fs_data))
    PROVIDE(__stop_fs_data = .);
  } &amp;gt; RAM

} INSERT AFTER .data;

SECTIONS
{
  .mem_section_dummy_rom :
  {
  }
  .crypto_data :
  {
    PROVIDE(__start_crypto_data = .);
    KEEP(*(SORT(.crypto_data*)))
    PROVIDE(__stop_crypto_data = .);
  } &amp;gt; FLASH
  .log_const_data :
  {
    PROVIDE(__start_log_const_data = .);
    KEEP(*(SORT(.log_const_data*)))
    PROVIDE(__stop_log_const_data = .);
  } &amp;gt; FLASH
    .nrf_queue :
  {
    PROVIDE(__start_nrf_queue = .);
    KEEP(*(.nrf_queue))
    PROVIDE(__stop_nrf_queue = .);
  } &amp;gt; FLASH
  .dfu_trans :
  {
    PROVIDE(__start_dfu_trans = .);
    KEEP(*(SORT(.dfu_trans*)))
    PROVIDE(__stop_dfu_trans = .);
  } &amp;gt; FLASH
    .nrf_balloc :
  {
    PROVIDE(__start_nrf_balloc = .);
    KEEP(*(.nrf_balloc))
    PROVIDE(__stop_nrf_balloc = .);
  } &amp;gt; FLASH
    .svc_data :
  {
    PROVIDE(__start_svc_data = .);
    KEEP(*(.svc_data))
    PROVIDE(__stop_svc_data = .);
  } &amp;gt; FLASH
  .sdh_ble_observers :
  {
    PROVIDE(__start_sdh_ble_observers = .);
    KEEP(*(SORT(.sdh_ble_observers*)))
    PROVIDE(__stop_sdh_ble_observers = .);
  } &amp;gt; FLASH
  .sdh_state_observers :
  {
    PROVIDE(__start_sdh_state_observers = .);
    KEEP(*(SORT(.sdh_state_observers*)))
    PROVIDE(__stop_sdh_state_observers = .);
  } &amp;gt; FLASH
  .sdh_stack_observers :
  {
    PROVIDE(__start_sdh_stack_observers = .);
    KEEP(*(SORT(.sdh_stack_observers*)))
    PROVIDE(__stop_sdh_stack_observers = .);
  } &amp;gt; FLASH
  .sdh_req_observers :
  {
    PROVIDE(__start_sdh_req_observers = .);
    KEEP(*(SORT(.sdh_req_observers*)))
    PROVIDE(__stop_sdh_req_observers = .);
  } &amp;gt; FLASH
  .sdh_soc_observers :
  {
    PROVIDE(__start_sdh_soc_observers = .);
    KEEP(*(SORT(.sdh_soc_observers*)))
    PROVIDE(__stop_sdh_soc_observers = .);
  } &amp;gt; FLASH

} INSERT AFTER .text

INCLUDE &amp;quot;nrf_common.ld&amp;quot;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I have tried flashing BL+SD, and it does advertise.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I also tried BL+SD+Settings+ APP, and Bootloader advertises in this occasion too, when i switch it using a button, to put it into bootloader mode.&lt;/p&gt;
&lt;p&gt;And, i ALSO tried SD+APP, and the application works.&lt;/p&gt;
&lt;p&gt;The problem is, when the application is flashed along with the bootloader, it does not advertise, i can still see the blue LED, (but it does not blink, which is how i know whether it is advertising or not).&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader causes NRF52840 to stop advertising</title><link>https://devzone.nordicsemi.com/thread/155702?ContentTypeID=1</link><pubDate>Fri, 02 Nov 2018 09:24:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5731719-8c51-4f09-a19a-b2cb4cbcbc03</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Can you send me the linker script for you application? I want to make sure that you&amp;#39;re allocating enough memory for the BL. If the bootloader advertises when you only flash the BL+SD, then its highly likely that the issue is in the application. So could you try to debug the application after you have flashed the SD+BL+Settings+ APP?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader causes NRF52840 to stop advertising</title><link>https://devzone.nordicsemi.com/thread/155619?ContentTypeID=1</link><pubDate>Thu, 01 Nov 2018 15:58:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e2be0f1-088d-4ded-bb53-d24ed9db7ccd</guid><dc:creator>Shri1395</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I installed the micro_ecc directory in external directory in the SDK 15.0&lt;/p&gt;
&lt;p&gt;I generated a private key, and then a public key corresponding to that private key using these commands.&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;nrfutil.exe keys generate private.key
&lt;/code&gt;&lt;/pre&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;nrfutil keys display --key pk --format code private.key --out_file public_key.c&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then, i am using these commands to make the bootloader, and merge the settings file with it. And then program it into the custom NRF52840 board.&lt;/p&gt;
&lt;pre&gt;nrfutil settings generate --family NRF52840 --application ..\Firmware\Version\s140\armgcc\_build\nrf52840_xxaa.hex --application-version 2 --bootloader-version 1 --bl-settings-version 1  settingsV10.hex&lt;br /&gt;cd secure_bootloader\Version_ble\armgcc&lt;/pre&gt;
&lt;pre&gt;make&lt;br /&gt;cd ..\..\..&lt;br /&gt;mergehex -m secure_bootloader\Version_ble\armgcc\_build\nrf52840_xxaa_s140.hex settingsV10.hex -o bootloader.hex&lt;/pre&gt;
&lt;pre&gt;&lt;br /&gt;nrfjprog --family NRF52 -e&lt;br /&gt;nrfjprog --program ..\..\components\softdevice\s140\hex\s140_nrf52_6.0.0_softdevice.hex --family NRF52 --sectoranduicrerase --reset&lt;br /&gt;nrfjprog --program ..\Firmware\Version\s140\armgcc\_build\nrf52840_xxaa.hex --family NRF52 --sectoranduicrerase --reset&lt;br /&gt;nrfjprog --program bootloader.hex --family NRF52 --sectoranduicrerase --reset&lt;br /&gt;&lt;br /&gt;rm settingsV10.hex&lt;br /&gt;rmdir secure_bootloader\Version_ble\armgcc\_build /s /Q&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader causes NRF52840 to stop advertising</title><link>https://devzone.nordicsemi.com/thread/155564?ContentTypeID=1</link><pubDate>Thu, 01 Nov 2018 13:25:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a88b5848-0888-4235-a7e4-443c2ba94b5f</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Could you explain more about what commands you are using now then? If you want you can upload the files and we can take a look at them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader causes NRF52840 to stop advertising</title><link>https://devzone.nordicsemi.com/thread/155427?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 19:24:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b324865-0a5f-4f08-a086-2979b80842d3</guid><dc:creator>Shri1395</dc:creator><description>&lt;p&gt;I&amp;#39;ve tried that. It does not work. As far as i know, there seems to be an image problem with the application hex file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader causes NRF52840 to stop advertising</title><link>https://devzone.nordicsemi.com/thread/155360?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 14:13:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4eb923ee-9196-4bfe-9657-3c3cda8a1332</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The bootloader hex file will write to the UICR, so you should not run --sectoranduicrerase in any of the three program commands after you run eraseall.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader causes NRF52840 to stop advertising</title><link>https://devzone.nordicsemi.com/thread/154966?ContentTypeID=1</link><pubDate>Mon, 29 Oct 2018 21:02:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c31502ba-5470-4c02-8e8b-cd2ceeb9d263</guid><dc:creator>Shri1395</dc:creator><description>&lt;p&gt;No that was a typing mistake. I&amp;#39;ve tried both bootloaderV10.hex and settingsV10.hex. they dont work with the application. The bootloader works i.e. it advertises when i switch it to bootloader mode, but the application does not work&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader causes NRF52840 to stop advertising</title><link>https://devzone.nordicsemi.com/thread/154959?ContentTypeID=1</link><pubDate>Mon, 29 Oct 2018 20:05:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa8530dc-45b1-482c-98bc-43e798ba5d8f</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;OK, I was blind: Your posted nrfjprog commands never flash the generated file&lt;/p&gt;
&lt;pre&gt;bootloaderV10.hex&lt;/pre&gt;
&lt;p&gt;You can also simply flash the settingsV10.hex with nrfjprog as the last step.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader causes NRF52840 to stop advertising</title><link>https://devzone.nordicsemi.com/thread/154916?ContentTypeID=1</link><pubDate>Mon, 29 Oct 2018 15:24:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e76aa85e-8b25-4100-beab-a5299b875511</guid><dc:creator>Shri1395</dc:creator><description>&lt;p&gt;The debugger actually doesn&amp;#39;t show up any problem. It programmes all three things without any problem. But, if you are saying, it needs a checksum, does it need to be generated separately, then merged with the settings file, and then, again merge that settings with the bootloader file?&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader causes NRF52840 to stop advertising</title><link>https://devzone.nordicsemi.com/thread/154744?ContentTypeID=1</link><pubDate>Sat, 27 Oct 2018 08:16:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b47097e-edfb-4024-a9e2-92cc680214f1</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;The bootloader won&amp;#39;t run the application without the correct checksum in it settings page - which is written either during DFU or manually generated with nrfutil.&lt;/p&gt;
&lt;p&gt;You can verify this behaviour with a debugger.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader causes NRF52840 to stop advertising</title><link>https://devzone.nordicsemi.com/thread/154719?ContentTypeID=1</link><pubDate>Fri, 26 Oct 2018 16:32:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:187a3688-0925-406e-a528-d9e1ea1a6226</guid><dc:creator>Shri1395</dc:creator><description>&lt;p&gt;The problem is not the DFUTarget, advertising. The problem is, once i upload the soft device and application hex files along with the bootloader, or when i upload the package, the application stops advertising.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader causes NRF52840 to stop advertising</title><link>https://devzone.nordicsemi.com/thread/154585?ContentTypeID=1</link><pubDate>Fri, 26 Oct 2018 00:06:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b23750d-2f6e-466c-9350-491d233c38b2</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;You either have to flash the application with the bootloader or generate the &amp;quot;bootloader settings page&amp;quot; with &amp;quot;nrfutil&amp;quot; and flash it via debugger.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The bootloader should advertise itself as &amp;quot;DfuTarget&amp;quot; when running, with a different bluetooth address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>