<?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>nrf52840 led save status</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42953/nrf52840-led-save-status</link><description>Hi guys, 
 i have an important request: 
 i have to enable/disable a led with nrf52840 and save its status in internal memory. 
 is possible? 
 Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Jan 2019 08:16:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42953/nrf52840-led-save-status" /><item><title>RE: nrf52840 led save status</title><link>https://devzone.nordicsemi.com/thread/168151?ContentTypeID=1</link><pubDate>Mon, 28 Jan 2019 08:16:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f71e11c-587e-4cf1-b2b0-7df6c28ccc6e</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Good point Andrew, FDS provides this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For this reason FDS should be a better choice for this application.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 led save status</title><link>https://devzone.nordicsemi.com/thread/167889?ContentTypeID=1</link><pubDate>Fri, 25 Jan 2019 11:57:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97dfff73-7a13-4591-97c5-f55fadf88f40</guid><dc:creator>awneil</dc:creator><description>[quote userid="2116" url="~/f/nordic-q-a/42953/nrf52840-led-save-status/167826"]Another simpler method[/quote]
&lt;p&gt;Other options include&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;battery backup&lt;/li&gt;
&lt;li&gt;external non-volatile memory&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;None of this is really specific to nRF52840 - the same would apply to any other microcontroller.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 led save status</title><link>https://devzone.nordicsemi.com/thread/167888?ContentTypeID=1</link><pubDate>Fri, 25 Jan 2019 11:55:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:267df086-bd4e-4390-8105-677bca3f1619</guid><dc:creator>awneil</dc:creator><description>[quote userid="2116" url="~/f/nordic-q-a/42953/nrf52840-led-save-status/167826"]use some kind of wear leveling[/quote]
&lt;p&gt;FDS does that for you - doesn&amp;#39;t it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 led save status</title><link>https://devzone.nordicsemi.com/thread/167826?ContentTypeID=1</link><pubDate>Fri, 25 Jan 2019 08:33:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90d7f92f-41b9-49b3-b9e8-7265ef73d3aa</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;If you want to store something permanently you can use the internal flash to store data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Two modules are provided in the SDK for accessing flash, namely &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/group__nrf__fstorage"&gt;fstorage&lt;/a&gt; and FDS. For a simple use case such as this I believe fstorage would be the best bet.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Examples for both can be found in the SDK:&lt;/p&gt;
&lt;p&gt;\nRF5_SDK_15.2.0_9412b96\examples\peripheral\flash_fstorage&lt;br /&gt;\nRF5_SDK_15.2.0_9412b96\examples\peripheral\flash_fds&lt;/p&gt;
&lt;p&gt;Please note that if you write and erase the same page in flash over and over it will eventually wear out. To prevent this you either have to use some kind of wear leveling algorithm to write to different parts of the flash rather than the same address over and over.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Another simpler method is to write to internal RAM most of the time, and only push the status to flash at a regular slower interval.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 led save status</title><link>https://devzone.nordicsemi.com/thread/167612?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 11:10:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:050b9f5f-8bea-4d91-b1eb-d58e8417424a</guid><dc:creator>awneil</dc:creator><description>[quote userid="76729" url="~/f/nordic-q-a/42953/nrf52840-led-save-status"]is possible?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>