<?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_update() not working when called before start_bootloader()</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23593/pstorage_update-not-working-when-called-before-start_bootloader</link><description>Hello iam using softdevice 110 and SDK 10.0.0, i have implimented dfu in my project, i want to update a region in EEPROM by calling pstorage_update() function before calling start_bootloader() in dfu_app_handler.c, i have written code in function dfu_app_on_dfu_evt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Jul 2017 10:23:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23593/pstorage_update-not-working-when-called-before-start_bootloader" /><item><title>RE: pstorage_update() not working when called before start_bootloader()</title><link>https://devzone.nordicsemi.com/thread/92705?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 10:23:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b45b2ee-6693-48aa-80f7-106111219dc6</guid><dc:creator>sunil kumar</dc:creator><description>&lt;p&gt;exactly that was the reason, thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pstorage_update() not working when called before start_bootloader()</title><link>https://devzone.nordicsemi.com/thread/92704?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2017 08:40:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ff1482b-60a7-4dcc-92a2-1eb00276f74c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sunil,&lt;/p&gt;
&lt;p&gt;When you call pstorage_update() the flash won&amp;#39;t be written right away. It will queue the command and then send the update command to softdevice. Then the softdevice will schedule the flash execution. So if you call bootloader_start() right after pstorage_update(), the chip will reset before the flash operation is executed.&lt;/p&gt;
&lt;p&gt;What you need to do is to wait for the call back of pstorage to make sure the flash is updated properly, before you call bootloader_start().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>