<?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>FDS DATA Erase when NRF52840 Board OFF and ON</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112022/fds-data-erase-when-nrf52840-board-off-and-on</link><description>I used nRF52840 board with SDK 17_1_0 , 
 Using FDS I am able to read and write data into flash when nRF52840 board Continuous ON, 
 But when i Make nRF52840 board Power OFF and ON after FDS is not able to find out existing Record 
 and not able to read</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Jun 2024 20:53:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112022/fds-data-erase-when-nrf52840-board-off-and-on" /><item><title>RE: FDS DATA Erase when NRF52840 Board OFF and ON</title><link>https://devzone.nordicsemi.com/thread/488930?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2024 20:53:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47763c65-23d7-43f7-a4e8-63892fd76014</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Good!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I guess that the chip was re-programmed when you power cycled it, causing the record to disappear. After disabling APPROTECT it saw that it was already programmed with the correct application, so it didn&amp;#39;t reprogram it again.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS DATA Erase when NRF52840 Board OFF and ON</title><link>https://devzone.nordicsemi.com/thread/488613?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 08:46:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5530ab5-663c-4396-b1a0-9864053b5f2a</guid><dc:creator>ChiragBhavsar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;in debug mode I take a one default value like 0x02 ,first i read the it value if not available then i write it,&lt;/p&gt;
&lt;p&gt;second time i debug the program and i read value and i check variable value in WATCH and show 0x02,&lt;/p&gt;
&lt;p&gt;After i OFF and ON the nrf52840 Kit and I&amp;nbsp;&lt;span&gt;debug the program and i read value and i check variable value in WATCH and show 0,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I also put a break point in&amp;nbsp;fds_record_find but record is not found&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If&amp;nbsp;readback protection then how we can read it?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I did&amp;#39;t used&amp;nbsp;&amp;quot;nrfjprog --recover&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;EDIT:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now My problem is solve I disable the&amp;nbsp;APPROTECT,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;in firmware i wrote below function&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;void approtect_hw_disable(void)&lt;br /&gt;{&lt;br /&gt; if ((NRF_UICR-&amp;gt;APPROTECT &amp;amp; UICR_APPROTECT_PALL_Msk) &lt;br /&gt; == (UICR_APPROTECT_PALL_Msk))&lt;br /&gt; {&lt;br /&gt; NRF_NVMC-&amp;gt;CONFIG = NVMC_CONFIG_WEN_Wen &amp;lt;&amp;lt; NVMC_CONFIG_WEN_Pos;&lt;br /&gt; while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy) {}&lt;br /&gt; NRF_UICR-&amp;gt;APPROTECT = (UICR_APPROTECT_PALL_HwDisabled &amp;lt;&amp;lt; UICR_APPROTECT_PALL_Pos);&lt;br /&gt; while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy) {}&lt;br /&gt; NRF_NVMC-&amp;gt;CONFIG = NVMC_CONFIG_WEN_Ren &amp;lt;&amp;lt; NVMC_CONFIG_WEN_Pos;&lt;br /&gt; while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy) {}&lt;br /&gt; NVIC_SystemReset();&lt;br /&gt; } &lt;br /&gt;}&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS DATA Erase when NRF52840 Board OFF and ON</title><link>https://devzone.nordicsemi.com/thread/488611?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 08:35:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1c95f65-b3f2-410c-a88e-c3d39d177c8c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I believe the v2.0.1 has the nRF with the old APPROTECT, and the v3.0.0 and later has the new version with the new APPROTECT (readback protection).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is why I asked whether you needed to recover, either using &amp;quot;nrfjprog --recover&amp;quot;, or if you were asked to do so somewhere in the process of reattaching the debugger after you power cycled it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, the v3.0.0 and later versions of the DK has a different debugger (which you can probably see), but that shouldn&amp;#39;t really matter.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Perhaps you can describe to me how you are testing this. How do you monitor what&amp;#39;s going on? Logging? UART log? RTT log? And are you ever asked if you want to recover the device?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS DATA Erase when NRF52840 Board OFF and ON</title><link>https://devzone.nordicsemi.com/thread/488602?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 07:32:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e263024b-d254-4d0d-ab24-b3bcbdd95b97</guid><dc:creator>ChiragBhavsar</dc:creator><description>&lt;p&gt;Hii,&lt;/p&gt;
&lt;p&gt;I observed that i did&amp;#39;t get this problem on PCA10056 V2.0.1,&lt;/p&gt;
&lt;p&gt;but in&amp;nbsp;&lt;span&gt;&amp;nbsp;PCA10056 V3.0.0 &amp;amp;&amp;nbsp;&amp;nbsp;PCA10056 V3.0.2, I observed this problem, &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;so is there any change in this kit?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS DATA Erase when NRF52840 Board OFF and ON</title><link>https://devzone.nordicsemi.com/thread/488567?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2024 21:20:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db7d8dc7-7405-4eb6-974a-89eb0055c8b6</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Do you wait for the FDS callback event after writing the record before power cycling the device?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there some way for me to reproduce what you are seeing?&lt;/p&gt;
&lt;p&gt;Did you by chance recover the device (nrfjprog --recover) after turning it off and on again? (you should not, so if you didn&amp;#39;t, there is no need to do so).&lt;/p&gt;
&lt;p&gt;Where in the flash did you put your FDS pages? If you are not sure, is it possible to upload an application that is able to reproduce what you are seeing?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>