<?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>SN data in flash is lost</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49972/sn-data-in-flash-is-lost</link><description>I put SN on page0 of nRF52832&amp;#39;s flash, page0 is protected(page 0 only has sn data); 
 But SN will be lost sometimes; 
 PLS help, thanks!</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jul 2019 07:04:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49972/sn-data-in-flash-is-lost" /><item><title>RE: SN data in flash is lost</title><link>https://devzone.nordicsemi.com/thread/199928?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 07:04:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ce7c352-33d6-4e8e-8a31-b0a0e04b31c7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Could you try to update your Jlink driver? v.5.12f is quite old, they are currently on version 6.46k:&amp;nbsp;&lt;a href="https://www.segger.com/downloads/jlink/#J-LinkSoftwareAndDocumentationPack"&gt;https://www.segger.com/downloads/jlink/#J-LinkSoftwareAndDocumentationPack&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SN data in flash is lost</title><link>https://devzone.nordicsemi.com/thread/199918?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 06:03:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65258dd2-a682-4ac4-a8ea-804b796da6d4</guid><dc:creator>visionwang</dc:creator><description>&lt;p&gt;SN is written to flash by application code;&amp;nbsp; When SN is correct, data in page is correct,too;&amp;nbsp; some of nrf52832 cann&amp;#39;t be read&amp;nbsp; because JLink don&amp;#39;t know&amp;nbsp;&lt;span&gt;nrf52832, why?&lt;/span&gt;&lt;img alt="Jlink can't find Nrf52832" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1563861673_2800_1_2900_.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SN data in flash is lost</title><link>https://devzone.nordicsemi.com/thread/199761?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 11:54:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e23d3d89-ef8e-4d85-831a-a15ceb84df70</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Do you use a programmer to set the SN in production, or is it written to flash by your application code? Also, on the failing unit, try to read out the whole flash page starting at 0x68000 and check if all bits are &amp;#39;1&amp;#39; or if some are set to &amp;#39;0&amp;#39;. The page is likely overwritten by application code if some are zero.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Reading flash with nrfjprog&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;nrfjprog --memrd 0x68000 --n 4096&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SN data in flash is lost</title><link>https://devzone.nordicsemi.com/thread/199430?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2019 07:32:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8298772-077c-4d1b-a425-a044b8d6bbad</guid><dc:creator>visionwang</dc:creator><description>&lt;p&gt;&lt;span id="w_18"&gt;it occurs during mass production,&amp;nbsp;The proportion is 1%，so it is hard to reappear&amp;nbsp;;&lt;/span&gt;&lt;span class="" id="w_19"&gt;&amp;nbsp;writing SN by using&amp;nbsp;&lt;/span&gt;&lt;span class="" id="w_25"&gt;barcode&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="" id="w_26"&gt;gun&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span id="w_28"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="" id="w_29"&gt;to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="" id="w_30"&gt;scan&lt;span&gt;&amp;nbsp;two-bar codes on the device.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SN data in flash is lost</title><link>https://devzone.nordicsemi.com/thread/199423?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2019 07:11:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5378f84-27f7-498d-9b1e-e2e70d6c0aa8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Are you writing the SN with the programmer, or is it written at runtime by the app? The UICR section should be well suited for storage of serial numbers. Can you try to store it at address 0x100010A0 and see if you get the same result?&lt;/p&gt;
[quote user="visionwang"]And I don&amp;#39;t use BPROT to protect the region, because it is nothing to do with DFU;[/quote]
&lt;p&gt;&amp;nbsp;BPROT allows you to protect flash pages.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SN data in flash is lost</title><link>https://devzone.nordicsemi.com/thread/199413?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2019 06:16:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1cedb02-cf98-4ced-a8d8-65073214daff</guid><dc:creator>visionwang</dc:creator><description>&lt;p&gt;After loading software to nRF52832, writing SN into 52832, I am sure SN is writen correctly, because I can read out correctly; The starting address is 0x68000, and the size of SN is 12 bytes.&amp;nbsp; but&amp;nbsp;after&amp;nbsp;power is off and on many times,&amp;nbsp;&amp;nbsp;sometimes SN is&amp;nbsp; lost.&lt;/p&gt;
&lt;p&gt;And I don&amp;#39;t use BPROT to protect the region, because it is nothing to do with DFU;&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SN data in flash is lost</title><link>https://devzone.nordicsemi.com/thread/199237?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2019 11:22:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1956c3ea-a6b9-4c90-a0b8-0a0fdf1a2118</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m afraid we will need more information to understand how the data could become lost. E.g., when and how is the SN stored, number of bytes, at what flash address, is BPROT used to protect the region, etc?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>