<?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>Getting weird behavior from the board while adding the application version</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12002/getting-weird-behavior-from-the-board-while-adding-the-application-version</link><description>Hi all, 
 I&amp;#39;m trying to add application version in the signed bootloader to prevent the downgrade of application. So I&amp;#39;m directly writing the application version to the flash like 
 attribute ((section(&amp;quot;.appVerStartAddress&amp;quot;))) volatile uint32_t m_application_version</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Feb 2016 13:41:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12002/getting-weird-behavior-from-the-board-while-adding-the-application-version" /><item><title>RE: Getting weird behavior from the board while adding the application version</title><link>https://devzone.nordicsemi.com/thread/45430?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2016 13:41:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86827808-853b-4774-83f7-af6a00bb4e28</guid><dc:creator>Pavan kumar</dc:creator><description>&lt;p&gt;If I reset just after pstorage_clear() no data written to the flash&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting weird behavior from the board while adding the application version</title><link>https://devzone.nordicsemi.com/thread/45429?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2016 11:36:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ae8fff5-474c-4795-8310-591bb9faf6b4</guid><dc:creator>Pavan kumar</dc:creator><description>&lt;p&gt;Thanks for you response Vidar I&amp;#39;m using gcc and I attached the linker script.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting weird behavior from the board while adding the application version</title><link>https://devzone.nordicsemi.com/thread/45428?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2016 11:27:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b42ec2e2-9886-49f8-90e9-342e26f57e4b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It sounds like the changes in your scatter/linker file has caused the start address to be move upwards in flash. Are you using GCC or Keil? Can you share the changes you made to the linker script so I can try it here?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update 22/2 - Verified linker settings&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Ok, so the linker settings were correct. I can&amp;#39;t think of any obvious reasons as to why only the first 200 bytes are &amp;quot;lost&amp;quot; considering that the start address is hardcoded within the softdevice. Is it possible that the the device is being reset shortly after the call to dfu_activate_app()-&amp;gt;pstorage_clear() in dfu_dual_bank.c?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>