<?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>Stuck with bootloader sample</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92696/stuck-with-bootloader-sample</link><description>Dear Nordic Experts, 
 We are adding BLE functionality to an existing product so we have replaced its main micro-controller by the nRF52810. Our custom board is now in the fab so we are still working with our nRF52-DKs. We have ported our app quite seamlessly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Nov 2022 09:57:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92696/stuck-with-bootloader-sample" /><item><title>RE: Stuck with bootloader sample</title><link>https://devzone.nordicsemi.com/thread/395271?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2022 09:57:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27dd8036-82c4-4de9-b926-37b1196f9acf</guid><dc:creator>Bruno Miguelez</dc:creator><description>&lt;p&gt;We managed to make it work not exactly as the fota upgrades documentation said but using some of the code from the smp_svr sample.&lt;/p&gt;
&lt;p&gt;We are working on changing our app from 1.9.1 to 2.1.1, we will let you know if we have any issue swithching versions. Thanks for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck with bootloader sample</title><link>https://devzone.nordicsemi.com/thread/394057?ContentTypeID=1</link><pubDate>Fri, 04 Nov 2022 08:07:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:699ba3bc-359f-48e0-bc51-57ea6b7b04cd</guid><dc:creator>Vidar Berg</dc:creator><description>[quote user="Bruno Miguelez"]We then downloaded version 2.1.1 from nrf toolbox and we tried to flash that smp_svr sample and it worked perfectly. Our app is almost finished in version 1.9.1,&amp;nbsp; so we will try to change it to 2.1.1, this should be pretty straight forward right?.[/quote]
&lt;p&gt;The only big change I can think of that may require some migration effort is the introduction of Pin control: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/migration/migration_guide_1.x_to_2.x.html#pin-control-transition"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/migration/migration_guide_1.x_to_2.x.html#pin-control-transition&lt;/a&gt;. This will be relevant if you used custom DT overlay or board files in your existing project based on 1.9.1.&lt;/p&gt;
[quote user="Bruno Miguelez"]&lt;code&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;img_mgmt_register_group() and smp_bt_register() in the app&lt;/span&gt;) as well as the&amp;nbsp;&lt;span&gt;overlay-bt.conf overlay however it did not work for us, any suggestions?, is there a specific place in the code where we should add the functions above?&lt;/span&gt;[/quote]
&lt;p&gt;It should not matter where these functions are called. Have you enabled logging to see if there are any error messages? And did you get any build warnings?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck with bootloader sample</title><link>https://devzone.nordicsemi.com/thread/393823?ContentTypeID=1</link><pubDate>Thu, 03 Nov 2022 09:41:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f87becb1-602e-4e94-aab6-3941ecbbe1a8</guid><dc:creator>Bruno Miguelez</dc:creator><description>&lt;p&gt;We have now tested the hex file you sent and it worked fine, the phone was able to find the board and the dfu could be done. We then tried it again with version 1.9.1 and a different phone could not find the board but the one we used for version 2.1.1 could. However when trying to dfu with version 1.9.1 it did not work.&lt;/p&gt;
&lt;p&gt;We then downloaded version 2.1.1 from nrf toolbox and we tried to flash that smp_svr sample and it worked perfectly. Our app is almost finished in version 1.9.1,&amp;nbsp; so we will try to change it to 2.1.1, this should be pretty straight forward right?.&lt;/p&gt;
&lt;p&gt;We then tried building with version 2.1.1 the blinky sample adding the lines mentioned in the fota upgrades documentation (&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a class="reference external" title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_MCUMGR_CMD_OS_MGMT"&gt;&lt;code class="xref kconfig kconfig-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;CONFIG_MCUMGR_CMD_OS_MGMT&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;span&gt;,&amp;nbsp;&lt;/span&gt;&lt;a class="reference external" title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_MCUMGR_CMD_IMG_MGMT"&gt;&lt;code class="xref kconfig kconfig-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;CONFIG_MCUMGR_CMD_IMG_MGMT&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;span&gt;, and&amp;nbsp;&lt;/span&gt;&lt;a class="reference external" title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_MCUMGR_SMP_BT"&gt;&lt;code class="xref kconfig kconfig-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;CONFIG_MCUMGR_SMP_BT&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;in prj.conf and os_mgmt_register_group&lt;/span&gt;&lt;code class="xref c c-func docutils literal notranslate"&gt;&lt;span class="pre"&gt;(),&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;img_mgmt_register_group() and smp_bt_register() in the app&lt;/span&gt;) as well as the&amp;nbsp;&lt;span&gt;overlay-bt.conf overlay however it did not work for us, any suggestions?, is there a specific place in the code where we should add the functions above?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck with bootloader sample</title><link>https://devzone.nordicsemi.com/thread/393741?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 17:35:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:356129b2-a8c8-4022-a859-c859bf50401a</guid><dc:creator>Bruno Miguelez</dc:creator><description>&lt;p&gt;Yes, we are still working on our NRF52 DKs. I will try to flash the hex file and I will let you know if it works. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck with bootloader sample</title><link>https://devzone.nordicsemi.com/thread/393400?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2022 09:45:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffddc50e-4ccb-43b6-baca-f8fab5bb2e72</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Are you still using your nRF52 DKs to test with? The example should just work in that case.&lt;/p&gt;
&lt;p&gt;Could you try to flash the hex file below to see if you get the same result? It&amp;#39;s from the smp srv in SDK 2.1.1 built for nrf52dk_nrf52832.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3817.merged.hex"&gt;devzone.nordicsemi.com/.../3817.merged.hex&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck with bootloader sample</title><link>https://devzone.nordicsemi.com/thread/393319?ContentTypeID=1</link><pubDate>Mon, 31 Oct 2022 16:56:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e687dfd-a308-4ece-bbcf-99edfc47eca1</guid><dc:creator>Bruno Miguelez</dc:creator><description>&lt;p&gt;Just as you suggested, we forgot to build with the overlay-bt.conf overlay. However we have now tried it again, with the SMP server sample and with a different app adding in both the overlay-bt.conf, but the same thing happens. It still does not appear in the phone&amp;#39;s bluetooth near devices. Any idea of why this could be happening?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck with bootloader sample</title><link>https://devzone.nordicsemi.com/thread/392129?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 11:38:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc027cf8-b68a-415d-a2d8-055fb99b4e75</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad to hear that it&amp;#39;s not an issue to switch over the 52832.&lt;/p&gt;
[quote userid="120136" url="~/f/nordic-q-a/92696/stuck-with-bootloader-sample/392124"]So a change to the 832 will fix both issues right? So there is no need to add the SPI IC if we change to 832 right?[/quote]
&lt;p&gt;Probably yes, but it will depend on the size of your application.&lt;/p&gt;
[quote userid="120136" url="~/f/nordic-q-a/92696/stuck-with-bootloader-sample/392124"]We then tried with by flashing the SMP Server Sample app and got the same results. Do you have any idea of why this could be happening?[/quote]
&lt;p&gt;Did you remember to build with the overlay-bt.conf overlay? This will enable the FOTA over BLE support.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1666611368413v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Flash layout SMP SRV with BLE FOTA on &amp;#39;nrf52dk_nrf52832&amp;#39; and SDK v2.1.1 (MCUBoot size can be reduced to 24K if needed):&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1666611448629v2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck with bootloader sample</title><link>https://devzone.nordicsemi.com/thread/392124?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 11:22:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9c6e2fc-6c50-4098-ad93-a7d42962cd4b</guid><dc:creator>Bruno Miguelez</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;Thank you for your response. It is not a big issue for us to change from the 810 to the 832. However we don&amp;#39;t like that much the idea of adding a SPI Flash IC. From what we understood, what you tried to do was to follow the FOTA Uprades documentation with the external SPI flash IC and the 810 because the 810 doesn&amp;#39;t have enough Flash, but when trying this it turns out that it doesn&amp;#39;t have enough RAM either. So a change to the 832 will fix both issues right? So there is no need to add the SPI IC if we change to 832 right?&lt;/p&gt;
&lt;p&gt;We are working right now with the DK so it is not a big deal for us to change to the 832, in fact we have already tried to follow the same FOTA Upgrades documentation that you mentioned with the mcumgr with 832.&amp;nbsp; We added&amp;nbsp;&lt;a class="reference external" title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_MCUMGR_CMD_OS_MGMT"&gt;&lt;code class="xref kconfig kconfig-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;CONFIG_MCUMGR_CMD_OS_MGMT&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;span&gt;,&amp;nbsp;&lt;/span&gt;&lt;a class="reference external" title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_MCUMGR_CMD_IMG_MGMT"&gt;&lt;code class="xref kconfig kconfig-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;CONFIG_MCUMGR_CMD_IMG_MGMT&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;span&gt;, and&amp;nbsp;&lt;/span&gt;&lt;a class="reference external" title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_MCUMGR_SMP_BT"&gt;&lt;code class="xref kconfig kconfig-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;CONFIG_MCUMGR_SMP_BT&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&amp;nbsp;in prj.conf and os_mgmt_register_group&lt;code class="xref c c-func docutils literal notranslate"&gt;&lt;span class="pre"&gt;()&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;and&amp;nbsp;img_mgmt_register_group() in the app, as well as smp_bt_register(). Then we tried using the nrf Connect Device Manager app in our mobile phone to start BLE communication but it turns out the board wasn&amp;#39;t advertising or at least our phone couldn&amp;#39;t find it in its nearby bluetooth devices. We then tried with by flashing the SMP Server Sample app and got the same results. Do you have any idea of why this could be happening?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class="xref c c-func docutils literal notranslate"&gt;&lt;span class="pre"&gt;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;It is worth mentioning that all we need from the dfu is to replace the existing application with the new version, we don&amp;#39;t need to upgrade neither the softdevice or the bootloader itself, so what we would like is the most straight forward way of doing this through BLE. Thank you so much for your responses again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck with bootloader sample</title><link>https://devzone.nordicsemi.com/thread/391349?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2022 08:07:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:486603ad-9d76-497e-a087-271232c3aa93</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m afraid you will not be able to DFU over BLE working on the 52810 because of the limited amount RAM and FLASH you have available. You need to be able to fit the application and MCUBoot inside the internal flash as well as having enough RAM to include the DFU related modules. Also, for DFU over BLE, an external SPI flash IC will be required as the application needs a place to store the new FW image before it gets activated by the bootloader.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I did as a test&amp;nbsp; try to configure an example with external flash and BLE DFU support following the steps in &amp;quot;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf52.html#fota-upgrades"&gt;FOTA upgrades&lt;/a&gt;&amp;quot;, but I struggled to get the RAM usage below 40 K, which is way above what the 52810 has. So it does not look promising, unfortunately.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Memory layout for illustration&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1666165163921v1.png" alt=" " /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The B0 Bootloader (&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bootloader/README.html#nsib"&gt;nRF Secure Immutable Bootloader&lt;/a&gt;) is for added security and is targeted for the larger variants of the 52 family. It&amp;#39;s not suitable for the 52810 because of the memory constraints. It also does not handle DFU (the application and/or MCUBoot is responsible for that).&lt;/p&gt;
[quote user=""]nrfutil dfu serial -pkg /path/to/blinky_fast.zip -p /dev/tty.usbmodem0006825573701 -b 115200[/quote]
&lt;p&gt;nrfutil is for performing DFU over the Secure DFU protocol used in the nRF5 SDK. The equivalent tool for this in the nRF connect SDK is the mcumgr cli:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html#installing-the-mcumgr-cli"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html#installing-the-mcumgr-cli&lt;/a&gt;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I understand that it is not desirable to change the chip variant at this stage, but is it something you could consider? You can find an overview of the different nRF52 variants here: &lt;span&gt;&lt;a title="nRF52 Series" href="https://infocenter.nordicsemi.com/topic/struct_nrf52/struct/nrf52.html?cp=4"&gt;nRF52 Series&lt;/a&gt;&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: Stuck with bootloader sample</title><link>https://devzone.nordicsemi.com/thread/391316?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2022 04:43:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f64570e-6005-47be-b81e-5ba3568fe815</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Sorry for the late response, I would ask my colleague to help as I do not have experience with the older versions of bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck with bootloader sample</title><link>https://devzone.nordicsemi.com/thread/390765?ContentTypeID=1</link><pubDate>Fri, 14 Oct 2022 09:05:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f172aca-9451-4dd6-9aa9-69df13b8656d</guid><dc:creator>Bruno Miguelez</dc:creator><description>&lt;p&gt;We have checked UART configuration in both ends and tried with lower baudrates too, but we get the same result. We have also tried connecting an external UART cable directly to the pins instead of using the micro usb cable but it didn&amp;#39;t change anything either. We don&amp;#39;t really understand when does the board wait for dfu communication with pc. As we specified above, when adding the CONFIG_SECURE_BOOT=y it then prints out the messages above, so we know that it goes into the dfu code. However, in older versions we have read that it used to wait for button 4 to be held during a reset to stay in the dfu code and waiting for communication with the PC.&amp;nbsp;&lt;span&gt;We are not sure if ours is waiting for communication with the PC as it seems to go immediatly into the app image.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck with bootloader sample</title><link>https://devzone.nordicsemi.com/thread/390013?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2022 12:36:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d61fa630-6c86-4350-a94f-e75cbba02700</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Not an expert in the DFU stuff but it seems like your image package seems ok but the transfer is not able to go further because of the UART communication. Are you sure that the UART on both ends are configured correctly? (correct baudrate and correct flow control configured)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>