<?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>Trouble with buttonless DFU - bootloader settings crc fails</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21834/trouble-with-buttonless-dfu---bootloader-settings-crc-fails</link><description>Hi guys. I am struggling to get buttonless DFU to work in my owm application. I am using SDK12.2 with gcc on a pca10040 board with S132. 
 I have successfully followed this tutorial to get the buttonless DFU example working. 
 However, when I try to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 07 May 2017 10:45:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21834/trouble-with-buttonless-dfu---bootloader-settings-crc-fails" /><item><title>RE: Trouble with buttonless DFU - bootloader settings crc fails</title><link>https://devzone.nordicsemi.com/thread/85752?ContentTypeID=1</link><pubDate>Sun, 07 May 2017 10:45:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:513f383c-63df-45ba-a7f7-bfd86d7f9fe1</guid><dc:creator>dingari</dc:creator><description>&lt;p&gt;Great to hear!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble with buttonless DFU - bootloader settings crc fails</title><link>https://devzone.nordicsemi.com/thread/85753?ContentTypeID=1</link><pubDate>Sun, 07 May 2017 10:44:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:300f4707-c227-4d41-854c-9c964a9d6ee6</guid><dc:creator>Fredrik</dc:creator><description>&lt;p&gt;That was exactly my problem, thanks a lot. My application boots successfully now, but is unable to start the bootloader. I&amp;#39;ll fiddle with it and post a new question if I can&amp;#39;t figure it out.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt; I had to increase the number of vendor specific UUIDs from 1 to 2 before enabling the softdevice as the ble_dfu service uses its own 128 bit UUID:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ble_enable_params.common_enable_params.vs_uuid_count = 2;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;After this the softdevice required more RAM. After updating the linker script with the new RAM requirements everything worked perfectly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble with buttonless DFU - bootloader settings crc fails</title><link>https://devzone.nordicsemi.com/thread/85751?ContentTypeID=1</link><pubDate>Fri, 05 May 2017 15:28:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdaaca5b-809a-43b8-8d27-ae3170c628b2</guid><dc:creator>dingari</dc:creator><description>&lt;p&gt;Hmm, reminds me of a problem I had a few months back: &lt;a href="https://devzone.nordicsemi.com/question/120919/fs_err_unaligned_addr-with-buttonless-dfu/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble with buttonless DFU - bootloader settings crc fails</title><link>https://devzone.nordicsemi.com/thread/85750?ContentTypeID=1</link><pubDate>Fri, 05 May 2017 15:14:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4925e6f-4b15-428e-88ee-967f8235cf9c</guid><dc:creator>Fredrik</dc:creator><description>&lt;p&gt;Hi Dingari, thanks for your answer. I did update the public key in the bootloader as well.&lt;/p&gt;
&lt;p&gt;See the RTT output below:&lt;/p&gt;
&lt;p&gt;0&amp;gt;  :INFO:!!!!!!!!!!!!!!! Resetting bootloader settings !!!!!!!!!!!&lt;/p&gt;
&lt;p&gt;0&amp;gt;  :INFO:Erasing old settings at: 0x20002a18&lt;/p&gt;
&lt;p&gt;0&amp;gt;  :INFO:Erasing: 0x20002a18, num: 1&lt;/p&gt;
&lt;p&gt;0&amp;gt;  :INFO:Erase failed: 6&lt;/p&gt;
&lt;p&gt;0&amp;gt;  :ERROR:Erasing from flash memory failed.&lt;/p&gt;
&lt;p&gt;0&amp;gt;  APP_ERROR:ERROR:Fatal&lt;/p&gt;
&lt;p&gt;Error code 6 indicates FS_ERR_UNALIGNED_ADDR.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble with buttonless DFU - bootloader settings crc fails</title><link>https://devzone.nordicsemi.com/thread/85749?ContentTypeID=1</link><pubDate>Fri, 05 May 2017 13:15:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c058ba56-ca5b-49ae-843a-198f4307cdcb</guid><dc:creator>dingari</dc:creator><description>&lt;p&gt;Have you updated the Public Key in your bootloader?&lt;/p&gt;
&lt;p&gt;You need to sign your application package with a Private/Public key pair (as you are doing). You need to update the &lt;code&gt;dfu_public_key.c&lt;/code&gt; file of the bootloader source code with the corresponding public key. You can check this out to get the public key for a given key file: &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil#display-1"&gt;github.com/.../pc-nrfutil&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This was something I struggled with for a long time before finding this solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>