<?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>How to define a variable whose value survives a reset?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21820/how-to-define-a-variable-whose-value-survives-a-reset</link><description>I want to define a variable whose value can survives a reset. Is it possible?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 May 2017 07:09:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21820/how-to-define-a-variable-whose-value-survives-a-reset" /><item><title>RE: How to define a variable whose value survives a reset?</title><link>https://devzone.nordicsemi.com/thread/85709?ContentTypeID=1</link><pubDate>Tue, 09 May 2017 07:09:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5a08d1d-aa57-43ed-8d45-79296d2c9f23</guid><dc:creator>Max</dc:creator><description>&lt;p&gt;I have resolves the problem by re-initialized BLE stack and services after sending the pulse train. So the original question is no longer needed for me either. Thank you very much for everyone who reply to my question. You do trigger my thought to reach a solution. I will close the question now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to define a variable whose value survives a reset?</title><link>https://devzone.nordicsemi.com/thread/85714?ContentTypeID=1</link><pubDate>Mon, 08 May 2017 12:15:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:305572af-56ce-4fc5-b941-c4984d1a0beb</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You should open a new question, it has nothing to do with your original question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to define a variable whose value survives a reset?</title><link>https://devzone.nordicsemi.com/thread/85715?ContentTypeID=1</link><pubDate>Mon, 08 May 2017 07:54:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a7d7de0-28fc-4e53-ba33-c44931ec1408</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;I think you can just drop the connection then? Or it does take too much time?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to define a variable whose value survives a reset?</title><link>https://devzone.nordicsemi.com/thread/85713?ContentTypeID=1</link><pubDate>Mon, 08 May 2017 07:03:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53eed076-39a4-4b94-af99-c1d7d15b12e6</guid><dc:creator>Max</dc:creator><description>&lt;p&gt;The problem is that I write to a characteristic to initiate the pulse train so the softdevice does interfere with the pulse trains if not disabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to define a variable whose value survives a reset?</title><link>https://devzone.nordicsemi.com/thread/85712?ContentTypeID=1</link><pubDate>Mon, 08 May 2017 06:52:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfe1a056-9a2f-4f73-8603-e52eaff4d8cf</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;I don&amp;#39;t think you need to disable sd to do that. just don&amp;#39;t scan/advertise etc, and your program flow should go uninterrupted i think.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to define a variable whose value survives a reset?</title><link>https://devzone.nordicsemi.com/thread/85711?ContentTypeID=1</link><pubDate>Mon, 08 May 2017 03:43:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d352ee5e-38cd-4da5-9f8a-7c5da8ab835c</guid><dc:creator>Max</dc:creator><description>&lt;p&gt;I am not sure whether I should open a new question and will describe what my problem really is:
I need to disable softdevice for my application to send a uninterrupted pulse trains on a general-purpose output pin. A sd_softdevice_disable() is issued before I send the pulse trains and sd_softdevice_enable(clock_source, NULL) is issued to re-enable softdevice. But I found that the chip seems to be reset. So my solution might be how to re-enable softdevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to define a variable whose value survives a reset?</title><link>https://devzone.nordicsemi.com/thread/85710?ContentTypeID=1</link><pubDate>Fri, 05 May 2017 08:55:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:716a2972-5488-4428-b43e-a5d631aad8d4</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;If you are talking about variables not initialized by compiler on startup then in IAR for example &lt;code&gt;__no_init uint32_t var;&lt;/code&gt; or &lt;a href="http://www.keil.com/support/man/docs/ca/ca_noinit.htm"&gt;In Keil&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to define a variable whose value survives a reset?</title><link>https://devzone.nordicsemi.com/thread/85717?ContentTypeID=1</link><pubDate>Fri, 05 May 2017 08:13:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdbc683f-7f64-46ce-9d9d-19e65dbccc2e</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;If by reset you mean reset without power cycle, search the forum for &amp;quot;memory retention&amp;quot; keywords. There is plenty of topics about that. If you want to power-cycle, use non-volatile memory as @Moritz suggested.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to define a variable whose value survives a reset?</title><link>https://devzone.nordicsemi.com/thread/85716?ContentTypeID=1</link><pubDate>Fri, 05 May 2017 08:09:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:381e27dc-4e0a-4897-8901-917c44c326b9</guid><dc:creator>Moritz</dc:creator><description>&lt;p&gt;You can write to flash and get the written values back. That does the fds library for you. There are some examples around the forum.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>