<?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>Secure Bootloader Downloads app but stays in Bootloader on Custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29066/secure-bootloader-downloads-app-but-stays-in-bootloader-on-custom-board</link><description>My DFU is staying in the bootloader, even after successful download of the application package. 
 I have modified the secure bootloader for my custom PCB (removed the GPIO for the button check), so that is not an issue. 
 I can make the DFU &amp;quot;work&amp;quot; if</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Jan 2018 08:11:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29066/secure-bootloader-downloads-app-but-stays-in-bootloader-on-custom-board" /><item><title>RE: Secure Bootloader Downloads app but stays in Bootloader on Custom board</title><link>https://devzone.nordicsemi.com/thread/115219?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2018 08:11:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08e17a53-f04b-4551-93aa-fee0e7697e17</guid><dc:creator>Challen</dc:creator><description>&lt;p&gt;Hi,Kevin，i meet the problem in SDK13.1，too.I set the FDS_VIRTUAL_PAGES to 240.I can&amp;#39;t understand what you mean.Could you tell me more about it and paste the code out?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Bootloader Downloads app but stays in Bootloader on Custom board</title><link>https://devzone.nordicsemi.com/thread/115218?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2017 20:01:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3c0a0c8-a24d-4d46-9e69-65b5896fbb62</guid><dc:creator>Kevin s</dc:creator><description>&lt;p&gt;The error was in the pages_init function, FDS_PAGE_UNDEFINED was the type and it was not erased, so therefore FDS could not use it and returned FDS_ERR_NO_PAGES.
I have some hardcoded memory locations in my app, and I did not account for the FDS pages set in the sdk_config.h file. I reduced FDS pages to the minimum (2) and moved my hardcoded memory to not interfere.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Bootloader Downloads app but stays in Bootloader on Custom board</title><link>https://devzone.nordicsemi.com/thread/115217?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2017 07:09:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68fab5b1-b8e4-4bf4-8112-58bfbf27418d</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Could you post the error code from fds_init?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Bootloader Downloads app but stays in Bootloader on Custom board</title><link>https://devzone.nordicsemi.com/thread/115216?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2017 04:20:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc7beb00-a689-45da-9a65-7ccdad70c19a</guid><dc:creator>Kevin s</dc:creator><description>&lt;p&gt;Actually, we have an I2C RGB hardware driver, so I added some TWI code. I also have a watchdog and am feeding it in the bootloader according to some of your recommendations. I was getting the every other DFU fail problem mentioned elsewhere, but Hung solved that problem in another post; &amp;quot;Buttonless Secure DFU with WDT needs DFU twice&amp;quot;.
So now, I&amp;#39;m getting intermittent failures when I power down the UUT and power back up. I have traced it down to the fds_init function failing in the peer_data_storage.c file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Bootloader Downloads app but stays in Bootloader on Custom board</title><link>https://devzone.nordicsemi.com/thread/115214?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 09:35:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd40fcf4-42b1-474d-b380-73470af01bd5</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Ok, so you added some PWM code to your bootloader and that resulted in the bootloader functioning properly?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Bootloader Downloads app but stays in Bootloader on Custom board</title><link>https://devzone.nordicsemi.com/thread/115211?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2017 18:21:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7f4aef7-1062-4b18-8e8b-0ed55f6a1e87</guid><dc:creator>Kevin s</dc:creator><description>&lt;p&gt;OK, I put some RGB LED drives in my bootloader and some delays so I could see the LED Color produced for debugging and user purposes and now the DFU is working consistently. Because I&amp;#39;m using a custom board, I took out all the development board led on/off commands. Maybe there was some race condition when I did this....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Bootloader Downloads app but stays in Bootloader on Custom board</title><link>https://devzone.nordicsemi.com/thread/115212?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2017 17:23:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b1ea5d7-9a8e-4c22-89a5-4fbf412ea573</guid><dc:creator>Kevin s</dc:creator><description>&lt;p&gt;More information; I have made another app package; this one with app version 2.
It does not matter which package I DFU; it will only go to the app on even number of transfers, no matter which DFU package I download.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Bootloader Downloads app but stays in Bootloader on Custom board</title><link>https://devzone.nordicsemi.com/thread/115213?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2017 15:07:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8af6cf25-69d6-4ad0-a8a5-d1ac998ec9b5</guid><dc:creator>Kevin s</dc:creator><description>&lt;p&gt;Sure, I was in the middle of changing my application version numbers, so now it is 1 and 4.&lt;/p&gt;
&lt;p&gt;Also, if I DFU the exact same package twice it works, 3 times no, 4 times yes. Interesting.
For the initial programming&lt;/p&gt;
&lt;p&gt;nrfutil settings generate --family NRF52 --application app.hex --application-version 1 --bootloader-version 2 --bl-settings-version 1 app_valid.hex&lt;/p&gt;
&lt;p&gt;For the update DFU package&lt;/p&gt;
&lt;p&gt;nrfutil pkg generate --hw-version 52 --sd-req 0x8C --application-version 4 --application app.hex --key-file ....\OTA_files\private.pem Stick_dfu_r1.3.1.zip&lt;/p&gt;
&lt;p&gt;Also for reference, SDK 12.1, SD 3.0.0, IAR 7.70 (workbench 7.5), not sure about MDK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Bootloader Downloads app but stays in Bootloader on Custom board</title><link>https://devzone.nordicsemi.com/thread/115215?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2017 06:43:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92e2c8d2-11fc-44ee-8e99-75e7729c99f3</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Kevin, could you post the nrfutil commands you&amp;#39;re using to generate the settings hex and the firmware image?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>