<?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>MQTT Reset ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21357/mqtt-reset</link><description>In the release notes for the IOT SDK (which as the MQTT examples) it says: &amp;quot;Once BLE link is disconnected, lwIP example applications no longer get a global prefix. The only way to start using the examples with the global prefix again is to restart the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Apr 2017 11:47:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21357/mqtt-reset" /><item><title>RE: MQTT Reset ?</title><link>https://devzone.nordicsemi.com/thread/83661?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2017 11:47:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e4985b6-262a-4212-b614-61c6af8e9552</guid><dc:creator>Jim</dc:creator><description>&lt;p&gt;Found a workaround.  If I modify the linker file to this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;MEMORY
{
  FLASH (rx) : ORIGIN = 0x1f000, LENGTH = 0x61000
  /* Save area for config data */
  CONFIG(rw) :  ORIGIN = 0x20002800, LENGTH = 0x0100
  RAM (rwx) :  ORIGIN = 0x20002900, LENGTH = 0xd700
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;SECTIONS
{&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    .mysaveBlock 0x20002800 (NOLOAD) :
{
    KEEP(*(.mysaveBlock))
} &amp;gt; CONFIG
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;and then define the variable I need to save as:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;PEG_CONTROL __attribute__((section (&amp;quot;.mysaveBlock&amp;quot;))) pegControl;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This area (256 bytes) is NOT cleared on RESET and so retains my values.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>