<?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>Weak handler when writing to GPREGRET?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23044/weak-handler-when-writing-to-gpregret</link><description>Hi, 
 I&amp;#39;m trying to use the GPREGRET register to save some state across resets. It seems to work as documented, but I&amp;#39;m getting the following error after each write operation to the register: 
 :ERROR:Fatal
:INFO:Hit weak handler
 
 Interestingly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Jun 2017 14:58:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23044/weak-handler-when-writing-to-gpregret" /><item><title>RE: Weak handler when writing to GPREGRET?</title><link>https://devzone.nordicsemi.com/thread/90674?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 14:58:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70823f27-ca0f-47c1-930d-780cecbb3dad</guid><dc:creator>Javier Cardona</dc:creator><description>&lt;p&gt;Hi Daniel,&lt;/p&gt;
&lt;p&gt;Thanks!  I&amp;#39;ll test tonight and report, but this seems to be right answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weak handler when writing to GPREGRET?</title><link>https://devzone.nordicsemi.com/thread/90673?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 14:25:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e586f3be-9c5a-4fd9-9c65-6de00ec58f3f</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;You need to use the function &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v4.0.2/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html?cp=2_3_0_1_1_2_7_2_16#ga62737e6515d380aa3eeba6582d061592"&gt;sd_power_gpregret_set()&lt;/a&gt;. When the softdevice is enabled, you have restricted access to the POWER register(see this &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.sds/dita/softdevices/s130/sd_resource_reqs/hw_block_interrupt_vector.html?cp=2_3_0_0_6_0"&gt;link&lt;/a&gt;), so you need to use the API(sd_power_gpregret_set() in this case).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weak handler when writing to GPREGRET?</title><link>https://devzone.nordicsemi.com/thread/90675?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 13:41:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fde82fa3-fb61-4320-9645-bc8f927a6851</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;Hello Javier Cardona&lt;/p&gt;
&lt;p&gt;Unfortunately I have not been able to reproduce your error.&lt;/p&gt;
&lt;p&gt;Would you be able to upload your code here so I can take a look at it?&lt;/p&gt;
&lt;p&gt;If your project is confidential you can create a mypage case at &lt;a href="http://www.nordicsemi.com/"&gt;Nordicsemi.com&lt;/a&gt; and refer to this case.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jørn Frøysa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weak handler when writing to GPREGRET?</title><link>https://devzone.nordicsemi.com/thread/90672?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 03:03:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:187c1a00-3f39-48b0-a2d2-ceddbc4c6a58</guid><dc:creator>Javier Cardona</dc:creator><description>&lt;p&gt;I can confirm that the same problem appears on the nrf52 (PCA10040).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weak handler when writing to GPREGRET?</title><link>https://devzone.nordicsemi.com/thread/90671?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 02:00:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e20ed688-7cbf-427c-9953-6f5aeac6468d</guid><dc:creator>Javier Cardona</dc:creator><description>&lt;p&gt;Hi RK,&lt;/p&gt;
&lt;p&gt;Thanks for the response.  Details below:&lt;/p&gt;
&lt;p&gt;sdk: nRF5_SDK_13.0.0_04a0bfd
softdevice: s132_nrf52_4.0.2_softdevice.hex
This is a custom board based on the NRF52832
The software is based on the nrf uart example code.
The error is out of the uart debug console.
I will also try to run the code on the nrf52-dk and report back to this thread.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weak handler when writing to GPREGRET?</title><link>https://devzone.nordicsemi.com/thread/90670?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2017 02:25:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d9d9a4d-1b5a-49e2-8aa7-9c3f1c16f4af</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;you&amp;#39;re getting that error where? What software/hardware/SDK etc are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>