<?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>Dfu Single Bank Bootloader Settings not Saving after DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11528/dfu-single-bank-bootloader-settings-not-saving-after-dfu</link><description>Hi, 
 I am trying to get the dfu single bank bootloader ( github.com/.../nrf51-dfu-single-bank-ble) supplied by Nordic to work. I can successfully push firmware to my device using Android MCP, and can get my application to load by calling bootloader_app_start</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Feb 2016 19:02:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11528/dfu-single-bank-bootloader-settings-not-saving-after-dfu" /><item><title>RE: Dfu Single Bank Bootloader Settings not Saving after DFU</title><link>https://devzone.nordicsemi.com/thread/43587?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2016 19:02:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a73b543-c0e0-40f7-91b7-e5c4c450de58</guid><dc:creator>dfed</dc:creator><description>&lt;p&gt;Thanks Bjorn, Using the files you provided I found that I was linking pstorage.c instead of pstorage_raw.c which is why everything was not working. The single bank works for me now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dfu Single Bank Bootloader Settings not Saving after DFU</title><link>https://devzone.nordicsemi.com/thread/43586?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2016 08:25:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd411953-178a-45f0-9530-a147e53e08e6</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;You should not have to doanything else than switching from &lt;code&gt;dfu_dual_bank.c&lt;/code&gt; to &lt;code&gt;dfu_single_bank.c&lt;/code&gt;. I have attached a copy of SDK v9.0 where I have converted the S110 Dual Bank Bootloader to Single Bank to my answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dfu Single Bank Bootloader Settings not Saving after DFU</title><link>https://devzone.nordicsemi.com/thread/43585?ContentTypeID=1</link><pubDate>Mon, 01 Feb 2016 23:08:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:878740d8-b4cc-46a3-ab71-9da47473ff83</guid><dc:creator>dfed</dc:creator><description>&lt;p&gt;Hi Bjorn,
I switched to  SDK v9.0 S110 v8.0 and dfu_single_bank.c and still have trouble getting single bank to work. In dfu_init() the pstorage_register(&amp;amp;storage_module_param,&amp;amp;m_storage_handle_app) call returns error 7, which is block_size or block_count error. The problem is I can&amp;#39;t find anywhere that the block size is set for storage_module_param. Do I have to set that? Another error from dfu_prepare_func_app_erase() if my image size is 71492 bytes then the block_size needs to be 2 because image size could change later and image_size somehow has to always be divisible by block_size, since block_size is defined in the bootloader? Does DFU somehow pad the image size so it will be a multiple of block_size?
Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dfu Single Bank Bootloader Settings not Saving after DFU</title><link>https://devzone.nordicsemi.com/thread/43584?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2016 08:21:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c782f0e2-e092-4fd0-9bb8-ad8fb5dd8f79</guid><dc:creator>dfed</dc:creator><description>&lt;p&gt;Thanks, I will try that and update once I have made the change.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dfu Single Bank Bootloader Settings not Saving after DFU</title><link>https://devzone.nordicsemi.com/thread/43583?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2016 08:00:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76bb2ac6-5a6c-4109-ae02-9137f9062a01</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Instead of using the example on GitHub, which is based on SKD v6 and has not been maintained for some time, I recommend using SDK v9.0 and S110 v8.0.&lt;/p&gt;
&lt;p&gt;You can convert the S110 Dual Bank Bootloader to a Single Bank Bootloader by replacing only one file, &lt;code&gt;dfu_dual_bank.c&lt;/code&gt; with &lt;code&gt;dfu_single_bank.c&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;Attachments:&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8206.DualToSingleBank.pdf"&gt;DualToSingleBank.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8547.nRF51_5F00_SDK_5F00_v9_5F00_0.zip"&gt;nRF51_SDK_v9_0.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;-Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dfu Single Bank Bootloader Settings not Saving after DFU</title><link>https://devzone.nordicsemi.com/thread/43582?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2016 17:11:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a42a2fc6-a5a1-48fe-8318-2394a819b05e</guid><dc:creator>dfed</dc:creator><description>&lt;p&gt;The chip is rev 3, 256 KB Flash, 32 KB RAM.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dfu Single Bank Bootloader Settings not Saving after DFU</title><link>https://devzone.nordicsemi.com/thread/43581?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2016 10:39:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:312d3d5e-d548-49c1-bed6-f189106f5852</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Are you using a revision 2 chip?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>