<?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>Flashing firmware without erasing factory data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110336/flashing-firmware-without-erasing-factory-data</link><description>Hi there 
 I&amp;#39;m working on nRF5340 chip and looking for a way to preserve the factory data that is saved in factory_data region. I tried playing around with the factory data related configs in Kconfig file, the closest config about preserve the factory</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 May 2024 06:56:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110336/flashing-firmware-without-erasing-factory-data" /><item><title>RE: Flashing firmware without erasing factory data</title><link>https://devzone.nordicsemi.com/thread/481914?ContentTypeID=1</link><pubDate>Mon, 06 May 2024 06:56:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2145ebf3-889a-4df7-973b-865d75572e5d</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Simon is away for a vacation so I will continue to help here in the meantime.&lt;/p&gt;
[quote user="Yuelin.Li"]he subsequent flash without erase in VS code will not erase the factory data region any more.[/quote]
&lt;p&gt;Great to hear!&lt;/p&gt;
&lt;p&gt;Good luck with your project onwards and let us know if you need any more help&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing firmware without erasing factory data</title><link>https://devzone.nordicsemi.com/thread/481848?ContentTypeID=1</link><pubDate>Fri, 03 May 2024 16:19:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36724898-90f5-4f22-a579-1a6a611881f4</guid><dc:creator>Yuelin.Li</dc:creator><description>&lt;p&gt;Not sure what happened, but after a full restart of my laptop, setting&amp;nbsp;&lt;span&gt;CONFIG_CHIP_FACTORY_DATA_BUILD&amp;nbsp;to no and flash the firmware, the subsequent flash without erase in VS code will not erase the factory data region any more. Thanks for your help!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing firmware without erasing factory data</title><link>https://devzone.nordicsemi.com/thread/481197?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 06:24:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44b86a14-1e01-4c3b-b87c-1af35e0fa11a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;FICR (factory stored data) is stored on the flash memory no matter what, even with a chip erase/JTAG flash. UICR is what you&amp;#39;re referring to, that can be preserved between DFU, but will be reloaded with a full chip erase/flash.&lt;/p&gt;
&lt;p&gt;We have this API reference for the FICR/UICR HAL:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfx/drivers/icr/index.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfx/drivers/icr/index.html#&lt;/a&gt;. The FICR HAL is used to get data from the FICR, and the UICR HAL is for managing the UICR.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing firmware without erasing factory data</title><link>https://devzone.nordicsemi.com/thread/481182?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2024 20:53:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd91e1fb-3364-4ca8-9a02-cd08be89ae2f</guid><dc:creator>Yuelin.Li</dc:creator><description>&lt;p&gt;Hi Susheel,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for the response. When you say during firmware updates, do you mean via DFU? So for JTAG flash there&amp;#39;s no way to preserve factory data, but for updating via MCUBoot, the factory data can be preserved. Is that correct?&lt;/p&gt;
&lt;p&gt;In terms of utilizing UICR or FICR, is there any page management API/logic other than directly write/read on an address?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Yuelin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing firmware without erasing factory data</title><link>https://devzone.nordicsemi.com/thread/480894?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2024 12:56:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fd1dd8d-3a9b-4aed-9095-023a17072351</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;In the preparation of &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/matter/nrfconnect_factory_data_configuration.html#preparing_factory_data_partition_on_a_device"&gt;factory data section&lt;/a&gt;&amp;nbsp;you are creating a separate partition in pm_static.yml called factory_data which will be preserved during firmware updates.&amp;nbsp;I do not think you can protect part of flash memory (which is not UICR or FICR) from sectorerase when using nrfjprog. It is possible to cut access to debugger overall but not part of memory.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing firmware without erasing factory data</title><link>https://devzone.nordicsemi.com/thread/480302?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 22:42:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d751123-b5ab-45a9-850f-f9e5d476ea10</guid><dc:creator>Yuelin.Li</dc:creator><description>&lt;p&gt;Hi Maria,&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t see the document you referred discussing preserve flashed factory data after the initial flash, or any parameter to skip erasing the factory data region in subsequential firmware flashes.&lt;/p&gt;
&lt;p&gt;Is there a way to preserve factory data from being erased from subsequential firmware flashes? How can I ensure --&lt;span&gt;sectorerase param doesn&amp;#39;t erase the factory data region? I went through the nrfjprog page:&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrf_cltools%2FUG%2Fcltools%2Fnrf_nrfjprogexe.html"&gt;Nordic Semiconductor Infocenter&lt;/a&gt; but didn&amp;#39;t find any option to skip erasing factory data region.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Playing around with&amp;nbsp;&lt;/span&gt;CONFIG_CHIP_FACTORY_DATA_BUILD seems not changing the region to be erased before flashing as well.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Yuelin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing firmware without erasing factory data</title><link>https://devzone.nordicsemi.com/thread/479475?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2024 13:58:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bcd2d0e-2502-4f05-82bc-e3e76e88e46f</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello Yuelin, &lt;/p&gt;
&lt;p&gt;Please see the documentation on configuring factory data for Matter &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/matter/nrfconnect_factory_data_configuration.html"&gt;here&lt;/a&gt;, specifically the section on &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/matter/nrfconnect_factory_data_configuration.html#programming_factory_data"&gt;programming factory data&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>