<?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>Bootloader and pstorage</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8620/bootloader-and-pstorage</link><description>Hi, 
 I&amp;#39;m in the process of transitioning my application and associated bootloader from SDK 7.2.0 to SDK 9.0.0. 
 I can compile both my application and bootloader now against SDK 9.0.0 
 One thing I have found is that dfu_dual_bank.c in SDK 7.2.0 used</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 08 Aug 2015 13:48:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8620/bootloader-and-pstorage" /><item><title>RE: Bootloader and pstorage</title><link>https://devzone.nordicsemi.com/thread/31542?ContentTypeID=1</link><pubDate>Sat, 08 Aug 2015 13:48:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11052fa5-0cb4-48a6-a046-2eb09e289f8b</guid><dc:creator>TheBarrelShifter</dc:creator><description>&lt;p&gt;All working now :-)&lt;/p&gt;
&lt;p&gt;Thanks again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader and pstorage</title><link>https://devzone.nordicsemi.com/thread/31541?ContentTypeID=1</link><pubDate>Sat, 08 Aug 2015 13:02:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e696a0f6-da19-4888-bdfd-77ae6661fb23</guid><dc:creator>TheBarrelShifter</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a question maybe you are able to answer tomchy....&lt;/p&gt;
&lt;p&gt;When performing an update of the bootloader itself, are you creating the zip file with a binary or hex?
Also, what are you doing in relation to the bootloader_settings block, and also the NRF_UICR_BOOT_START_BLOCK?&lt;/p&gt;
&lt;p&gt;I have created a linker script that strips this out, and am creating a binary of the bootloader code only (missing out the settings and START_BLOCK register) - However, I am unable to get the update to complete successfully. When the unit reboots it doesn&amp;#39;t seem to be executing any code.&lt;/p&gt;
&lt;p&gt;Please could you share your experiences in performing bootloader updates?&lt;/p&gt;
&lt;p&gt;Positive news is that I now seem to be able to perform softdevice updates since your pointer in the right direction, whereas this was not working correctly before.&lt;/p&gt;
&lt;p&gt;Many thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader and pstorage</title><link>https://devzone.nordicsemi.com/thread/31540?ContentTypeID=1</link><pubDate>Sat, 08 Aug 2015 12:44:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65456af4-b32a-4c70-a5f9-8d43ac4e0436</guid><dc:creator>TheBarrelShifter</dc:creator><description>&lt;p&gt;Thanks for the pointer in the right direction.&lt;/p&gt;
&lt;p&gt;Seems to solve some of the problems I was seeing - The first thing I notice is that it&amp;#39;s much slower, and often times out during a transfer. Need to look into this some more.&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader and pstorage</title><link>https://devzone.nordicsemi.com/thread/31539?ContentTypeID=1</link><pubDate>Sat, 08 Aug 2015 12:26:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3badb64-9467-4c55-995c-0ad490077861</guid><dc:creator>tomchy</dc:creator><description>&lt;p&gt;I faced that problem about a week ago. The thing is bootloader still doesn&amp;#39;t use &amp;#39;regular&amp;#39; PStorage, but instead of using &amp;#39;raw&amp;#39; calls - it uses different implementation which has regular function names. Just look into makefile or sources list - you will see file called &amp;#39;pstorage_raw.c&amp;#39;. It has even less checks than &amp;#39;raw&amp;#39; PStorage. The purpose of creating this file was to reduce code size for bootloaders.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader and pstorage</title><link>https://devzone.nordicsemi.com/thread/31538?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2015 19:43:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:478ab4cd-e014-465d-8778-b1a3aea3c79e</guid><dc:creator>TheBarrelShifter</dc:creator><description>&lt;p&gt;The transition appears to have happened between SDK 8.0.0 and SDK 8.1.0&lt;/p&gt;
&lt;p&gt;Have a look at components/libraries/bootloader_dfu/dfu_dual_bank.c&lt;/p&gt;
&lt;p&gt;In SDK 8.0.0 all calls to pstorage are the &amp;#39;raw&amp;#39; variant, e.g. pstorage_raw_register
In SDK 8.1.0 all calls to pstorage are the &amp;#39;normal&amp;#39; variant, e.g. pstorage_register&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t believe that this is intentional - The call to pstorage_register will definitely fail because of the aforementioned missing setup of the block_size and block_count members of pstorage_module_param_t.&lt;/p&gt;
&lt;p&gt;Having changed the calls in SDK 9.0.0 to use the &amp;#39;raw&amp;#39; variants of the pstorage functions I can get the bootloader to work. However, it does not fill me with faith that these issues are present in what should be a more mature version of the code.&lt;/p&gt;
&lt;p&gt;What is the recommended STABLE and TESTED version of the SDK to be using please?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>