<?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>Possible to write to flash in the app error handler?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41678/possible-to-write-to-flash-in-the-app-error-handler</link><description>What would be the best way to store configuration and fault information in flash when the app_error_handler is called? It seems like all the libraries available are purely async so I don&amp;#39;t know if they would work for me.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Dec 2018 22:15:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41678/possible-to-write-to-flash-in-the-app-error-handler" /><item><title>RE: Possible to write to flash in the app error handler?</title><link>https://devzone.nordicsemi.com/thread/162390?ContentTypeID=1</link><pubDate>Tue, 18 Dec 2018 22:15:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c7b06e1-7b72-4bdc-85a5-c40349d43929</guid><dc:creator>Richard D.</dc:creator><description>&lt;p&gt;The&amp;nbsp;GPREGRET registers are available if your data fits in 16 bits (2x8)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Possible to write to flash in the app error handler?</title><link>https://devzone.nordicsemi.com/thread/162357?ContentTypeID=1</link><pubDate>Tue, 18 Dec 2018 16:59:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e03b8cc-af03-4b83-92c5-0c383f4d3b14</guid><dc:creator>pablitorun</dc:creator><description>&lt;p&gt;I was able to get it to work following the instructions here&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/33530/ram-variables-exchange-between-bootloader-and-application"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/33530/ram-variables-exchange-between-bootloader-and-application&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The key seemed to be making sure it was in it&amp;#39;s own section and page for both the bootloader and app.&amp;nbsp; Not sure why that would matter, but I am for sure not an expert on the linker.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Possible to write to flash in the app error handler?</title><link>https://devzone.nordicsemi.com/thread/162191?ContentTypeID=1</link><pubDate>Tue, 18 Dec 2018 00:58:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5e1cef3-f1c5-4675-ae5f-6a9bec04725c</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Never tried it with a bootloader.&lt;/p&gt;
&lt;p&gt;I guess you&amp;#39;d need to make sure that &lt;em&gt;neither&lt;/em&gt; the bootloader &lt;em&gt;nor&lt;/em&gt; the app cleared the &amp;quot;persistent&amp;quot; area ... ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Possible to write to flash in the app error handler?</title><link>https://devzone.nordicsemi.com/thread/162189?ContentTypeID=1</link><pubDate>Tue, 18 Dec 2018 00:12:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdf67570-445b-4fd9-8080-d1d75bc4c00d</guid><dc:creator>pablitorun</dc:creator><description>&lt;p&gt;Yeah I was wondering if that would be the best, having trouble getting that working with the bootloader however.&lt;br /&gt;&lt;br /&gt;Without the bootloader it seems to work great.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Possible to write to flash in the app error handler?</title><link>https://devzone.nordicsemi.com/thread/162184?ContentTypeID=1</link><pubDate>Mon, 17 Dec 2018 22:36:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf3267c1-dc83-453f-a009-fbe3478b742a</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Save the stuff to a RAM area that doesn&amp;#39;t get initialised at startup, then do a reset.&lt;/p&gt;
&lt;p&gt;When the code re-starts, save the stuff from RAM to Flash ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>