<?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>Application does not start beside DFU bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25655/application-does-not-start-beside-dfu-bootloader</link><description>Hy everybody, 
 I&amp;#39;m trying to implement DFU bootloader in our custom board, starting from the &amp;quot;bootloader_secure_example&amp;quot;, where I just changed leds and button pins in order to adapt them to our board.
I successful flashed the soft device and the bootloader</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Feb 2018 14:07:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25655/application-does-not-start-beside-dfu-bootloader" /><item><title>RE: Application does not start beside DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/121092?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2018 14:07:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b9d29ea-3e7f-4da4-b9ff-7c53db3be245</guid><dc:creator>Massimo Pilia</dc:creator><description>&lt;p&gt;Hi Stian,&lt;/p&gt;
&lt;p&gt;we are migrating from nRF5_SDK_13.1.0_7ca7556 to nRF5_SDK_14.2.0_17b948a.&lt;/p&gt;
&lt;p&gt;Now we have some problems with the bootloader again.&lt;/p&gt;
&lt;p&gt;We can flash the application but then&amp;nbsp;&lt;span&gt;the board remains in bootloader mode, advertising as DfuTarg.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We also tried to perform a DFU with the same result.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It seams the bootloader doesn&amp;#39;t validate the application. But how can we debug it? If we use the macro NRF_DEBUG_ENABLE the compiler returns a no_space error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The only things we&amp;nbsp;changed are:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;the&amp;nbsp;SoftDevice requirements (from 0x98 to 0x9D) in the command used to generate the DFU packet;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;the macro&amp;nbsp;&amp;nbsp;NRF_SD_BLE_API_VERSION (from 4 to 5) in the keil option for target.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;Is there any other change we have to do during migration?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks a lot&lt;/p&gt;
&lt;p&gt;Massimo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application does not start beside DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/101091?ContentTypeID=1</link><pubDate>Fri, 20 Oct 2017 09:08:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66b4af65-afd9-4c63-8d62-1be6a991d9d3</guid><dc:creator>Massimo Pilia</dc:creator><description>&lt;p&gt;Hi Stian, more better!!!&lt;/p&gt;
&lt;p&gt;Just to notice, in the nRF51 when I perfom a DFU with the nRF Connect app this happens as a unique step whereas in the rRF52 there are two of them. I start the DFU process with my application, then the devise resets switching to dfuTarg and the firmware transfer continues in background.&lt;/p&gt;
&lt;p&gt;Why this difference?&lt;/p&gt;
&lt;p&gt;Thanks a lot!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application does not start beside DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/101090?ContentTypeID=1</link><pubDate>Fri, 20 Oct 2017 07:52:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3de361d4-c509-4e17-8adb-6453b88d2623</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Nice! I&amp;#39;m glad it worked! You can download the precompiled standalone .exe version of nrfutil from here: &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/releases"&gt;github.com/.../releases&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application does not start beside DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/101089?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2017 14:15:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10b59a22-cabe-4fce-b88d-89c09a2b9cd6</guid><dc:creator>Massimo Pilia</dc:creator><description>&lt;p&gt;Hi Stian, thanks a lot.&lt;/p&gt;
&lt;p&gt;This solve the problem!!!&lt;/p&gt;
&lt;p&gt;I created some scripts batch I call into keil in order to generate the &amp;quot;Bootloader Setting Page&amp;quot; and write it in the right position in flash. Everything works fine but I noticed the version 3.3.2 of nrfutil.exe comes inside a python package! So I was wondering if there is the possibility avoiding to use python, therefore the scripts I&amp;#39;d share do not need to refer to a python installation in the new machine!&lt;/p&gt;
&lt;p&gt;Greatings&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application does not start beside DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/101088?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 10:38:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49c980de-9d38-46e7-91e2-42140a1209f6</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;The problem is &lt;code&gt;FLASH_STORAGE_ADDRESS&lt;/code&gt; in &lt;strong&gt;flash_uc.h&lt;/strong&gt;. This is set to &lt;code&gt;0x7F000&lt;/code&gt;. This is used by the bootloader settings page. I changed it to &lt;code&gt;0x77000&lt;/code&gt; which is below the bootloader I used, and the application now works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application does not start beside DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/101087?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2017 08:04:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6070aac9-efd2-4ad4-8b39-5bb1a0849ecf</guid><dc:creator>Massimo Pilia</dc:creator><description>&lt;p&gt;Hi Stian, I removed the  &lt;code&gt;CONFIG_GPIO_AS_PINRESET&lt;/code&gt; define in the project settings of the bootloader project and something did appen, but there is still something does not work properly.
Now, if I perform a DFU firmware transfer I get the following behaviour:&lt;/p&gt;
&lt;p&gt;The board appears down but, if I push the button (mapped in the pin P0.06) then the application start properly. If then I do a reset, in that moment the board reboot as DfuTarg.&lt;/p&gt;
&lt;p&gt;I get the same behaviour if I flash only SD+BL(without settings), or  SD+BL(without settings)+APP, or SD+BL(with settings), or  SD+BL(with settings)+APP, before to perform the DFU.&lt;/p&gt;
&lt;p&gt;I also modified the Bootloader settings script:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfutil settings generate --family NRF52 --application nrf52832_xxaa.hex --application-version 1 --bootloader-version 1 --bl-settings-version 1 bl_settings.hex
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I&amp;#39;ll send you the application project as well.&lt;/p&gt;
&lt;p&gt;Thank you
Massimo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application does not start beside DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/101086?ContentTypeID=1</link><pubDate>Mon, 09 Oct 2017 14:41:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dd98b58-23ef-4c4e-b50d-4b06dbeef269</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, I had a look at your hex files, and I can also get the application to work but not app+BL. I think I found the issue. In your application you are using pin P21. This is the reset pin. Since your application is not configuring this as a reset pin, it works fine as a regular GPIO. However, the bootloader configures this as the reset pin (writing to the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uicr.html?cp=2_1_0_13_0_59#register.PSELRESET-0"&gt;PSELRESET&lt;/a&gt; registers), so then your application will not start if this pin is used as a GPIO.&lt;/p&gt;
&lt;p&gt;You can go to the bootloader project and remove the &lt;code&gt;CONFIG_GPIO_AS_PINRESET&lt;/code&gt; define in the project settings. This should get you a bit further. Let me know if things still don&amp;#39;t work. In that case maybe you can post your application project as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application does not start beside DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/101085?ContentTypeID=1</link><pubDate>Thu, 05 Oct 2017 08:29:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:767f5cb0-493a-433a-89d7-5a3cfd79afee</guid><dc:creator>Massimo Pilia</dc:creator><description>&lt;p&gt;In order to upload the files you ask me, I had to post a new answer...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application does not start beside DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/101081?ContentTypeID=1</link><pubDate>Thu, 05 Oct 2017 08:27:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95361e13-098f-493e-91a3-769c23c977d5</guid><dc:creator>Massimo Pilia</dc:creator><description>&lt;p&gt;Related to your previous comment, Stian, here you can find the hex-files (Application, Bootloader and, just to check, Bootloader-Settings):&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5430.Application.hex"&gt;Application.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0045.Bootloader.hex"&gt;Bootloader.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2251.Bootloader_5F00_settings.hex"&gt;Bootloader_settings.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please, let me know if there is something strange.
Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application does not start beside DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/101084?ContentTypeID=1</link><pubDate>Thu, 05 Oct 2017 07:31:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ee60847-2f9f-47fe-b874-6e9e72f32668</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Yes, you&amp;#39;re right that you have to generate the settings page if you want to flash SD, BL and app in production.&lt;/p&gt;
&lt;p&gt;Is it possible for you to post your hex-files here, both application and bootloader, so I can check for any inconsistencies?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application does not start beside DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/101083?ContentTypeID=1</link><pubDate>Thu, 05 Oct 2017 07:08:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f052dfcd-0d3e-409f-9787-c5bc5d5ca59d</guid><dc:creator>Massimo Pilia</dc:creator><description>&lt;p&gt;Hi Stian and thank you for your reply.&lt;/p&gt;
&lt;p&gt;Unfortunately, what you suggested does not work! I can successfully complete the file transfer but then it appears the board get stuck. It does not advertise at all (opposite when I do not use bootloader but only SD+Application).&lt;/p&gt;
&lt;p&gt;Furthermore, in production we&amp;#39;r going to need to flash the SD + Bootloader + Application with a programmer so in that case we&amp;#39;ll have to generate the settings page, wont we?&lt;/p&gt;
&lt;p&gt;Massimo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application does not start beside DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/101082?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 09:37:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69e92564-4460-444c-89d2-746aa8ea3cd1</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;You only need to generate the settings page if you plan on flashing the application using a programmer instead of uploading it through the DFU. If you upload the application through the DFU the bootloader automatically creates the settings page.&lt;/p&gt;
&lt;p&gt;Can you try to only flash SD and bootloader, and then upload the application using nRF Connect or similar, and see if that works?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>