<?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>pstorage_register() called twice in bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7978/pstorage_register-called-twice-in-bootloader</link><description>The bootloader in SDK 8.1.0 (at /nRF51_SDK_8.1.0 examples/dfu/bootloader) calls pstorate_register() twice. The first time as part of bootloader_init(), then on bootloader_dfu_start(). 
 The first call works for me and the second call asserts. I thought</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Jul 2015 12:52:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7978/pstorage_register-called-twice-in-bootloader" /><item><title>RE: pstorage_register() called twice in bootloader</title><link>https://devzone.nordicsemi.com/thread/28588?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2015 12:52:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf625e43-ff1b-4fca-806e-dd03173efd0d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Eliot: There is also another change from SDK 8.0 to SDK v8.1 is that in the DFU bootloader in SDK v8.1 we use pstorage_raw.c, when in SDK v8.0 it&amp;#39;s pstorage.c. You may need to update this also.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pstorage_register() called twice in bootloader</title><link>https://devzone.nordicsemi.com/thread/28589?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2015 12:40:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b71a3f4f-865b-4d79-b582-771d23e1fdab</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;That was it, thank you! PSTORAGE_MAX_APPLICATIONS was 1 in SDK 8.0.0 and I had ported my bootloader over from 8.0.0 without updating it to 2. The second call was going into the APP_ERROR_HANDLER().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pstorage_register() called twice in bootloader</title><link>https://devzone.nordicsemi.com/thread/28587?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2015 09:24:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8aeb74f-7cf4-4037-b9f9-27e2cc7b8e53</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Eliot Stock: I don&amp;#39;t see any issue when calling pstorage_register twice. One is used for storing bootloader setting, and one is used for storing DFU image(s).
Which issue do you have on the second call  ? Have you made sure you set PSTORAGE_MAX_APPLICATIONS = 2 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>