<?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>CONFIG_DISABLE_FLASH_PATCH purpose</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98928/config_disable_flash_patch-purpose</link><description>Hi 
 
 I see i get a cmake warning with DFU enabled with the following message: 
 
 
 whats the purpose of this? should i just have it always enabled in my conf, or for prod only? 
 
 it seems to include https://github.com/NordicPlayground/nRF52-flash</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 31 Mar 2025 09:34:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98928/config_disable_flash_patch-purpose" /><item><title>RE: CONFIG_DISABLE_FLASH_PATCH purpose</title><link>https://devzone.nordicsemi.com/thread/529721?ContentTypeID=1</link><pubDate>Mon, 31 Mar 2025 09:34:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:215aa637-ba64-479d-92b6-44fca63478a4</guid><dc:creator>Acho1952</dc:creator><description>&lt;p&gt;&lt;span&gt;This is useful for me.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/LairdCP/sdk-nrf/commit/9a9d1a5c4f5483a7c55b259df69346b702987238"&gt;https://github.com/LairdCP/sdk-nrf/commit/9a9d1a5c4f5483a7c55b259df69346b702987238&lt;/a&gt;&lt;span&gt; &lt;a href="https://flappydunk.io"&gt;flappy dunk&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_DISABLE_FLASH_PATCH purpose</title><link>https://devzone.nordicsemi.com/thread/421493?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2023 12:28:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20c78ad0-0e27-4c06-8781-4956cfc0d65c</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Well, it is not required to add flash patch code to each of your images. This code &lt;a href="https://github.com/NordicPlayground/nRF52-flash-patch/blob/master/example/flash_patch.c"&gt;flash_patch.c&lt;/a&gt;&amp;nbsp;checks whether the &lt;em&gt;flash_patch&lt;/em&gt; is disabled in the UICR and then disables it, if not already done. This is persistent until the next full chip erase. So maybe you can try doing something to suppress the warning in your code, but it&amp;#39;s totally up to you. And as long as it doesn&amp;#39;t interfere with your working, then I guess it&amp;#39;s okay?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can see the conditions where you get warnings in the link I had mentioned in the earlier comments:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2063.pastedimage1681993700654v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_DISABLE_FLASH_PATCH purpose</title><link>https://devzone.nordicsemi.com/thread/421483?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2023 12:13:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79ae7f42-0fb2-411b-be1c-189f4a62f645</guid><dc:creator>robsrick</dc:creator><description>&lt;p&gt;I&amp;#39;ve got DFU enabled via the following configuration so i assume it is multi-image but I don&amp;#39;t believe I control the other images?&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;# DFU Features&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;## MCUMGR&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_ZCBOR&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MCUMGR&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MCUMGR_CMD_IMG_MGMT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MCUMGR_CMD_OS_MGMT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_DISABLE_FLASH_PATCH&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;# Ensure an MCUboot-compatible binary is generated.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOOTLOADER_MCUBOOT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;## Enable the Bluetooth (unauthenticated) and shell mcumgr transports.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MCUMGR_SMP_BT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MCUMGR_SMP_BT_AUTHEN&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;## Some command handlers require a large stack.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE&lt;/span&gt;&lt;span&gt;=4096&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_DISABLE_FLASH_PATCH purpose</title><link>https://devzone.nordicsemi.com/thread/421477?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2023 12:07:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd02f8df-8955-430c-925e-5977c58ea58c</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is it a multi-image build? If so, then the warning might be for another image or core. Not for the one that you have actually disabled it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_DISABLE_FLASH_PATCH purpose</title><link>https://devzone.nordicsemi.com/thread/421451?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2023 10:46:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f25684db-a714-4b42-8d83-11d5fa1b0119</guid><dc:creator>robsrick</dc:creator><description>&lt;p&gt;attached&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0878.build.zip"&gt;devzone.nordicsemi.com/.../0878.build.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_DISABLE_FLASH_PATCH purpose</title><link>https://devzone.nordicsemi.com/thread/421447?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2023 10:40:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3db75622-5301-4af8-be64-d97dcf4510e5</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Could you share your build folder as a zip file here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_DISABLE_FLASH_PATCH purpose</title><link>https://devzone.nordicsemi.com/thread/421438?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2023 09:52:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d869855a-101d-4314-bcb9-ec3442f63f4b</guid><dc:creator>robsrick</dc:creator><description>&lt;p&gt;I can see that the line &amp;#39;&lt;span&gt;CONFIG_DISABLE_FLASH_PATCH&lt;/span&gt;&lt;span&gt;=y&amp;#39; is included in build/zephyr/.config but&amp;nbsp;FLASH_PATCH_WARN /CONFIG_FLASH_PATCH_WARN is not mentioned at all in there. Just did a pristine build to confirm and i definitely see the warning.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_DISABLE_FLASH_PATCH purpose</title><link>https://devzone.nordicsemi.com/thread/421432?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2023 09:41:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d1370d5-cd91-4fd2-aea0-5ed74bcbc24f</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Well, the warning should go away if you have enabled it. So could be a config issue. Could you maybe check the .config in your build folder to see if the flash patch is actually enabled?&lt;/p&gt;
&lt;p&gt;Because you can &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/lib/flash_patch/Kconfig#:~:text=depends%20on%20!DISABLE_FLASH_PATCH"&gt;see here&lt;/a&gt; that in order for the warning to happen, FLASH_PATCH_WARN must be enabled.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_DISABLE_FLASH_PATCH purpose</title><link>https://devzone.nordicsemi.com/thread/421422?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2023 09:12:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:041d8428-c817-46d8-a7c8-3c8156133893</guid><dc:creator>robsrick</dc:creator><description>&lt;p&gt;thanks. I saw even when&amp;nbsp;CONFIG_DISABLE_FLASH_PATCH=y I still get this cmake warning? is this intended?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_DISABLE_FLASH_PATCH purpose</title><link>https://devzone.nordicsemi.com/thread/421408?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2023 08:33:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8b9f56a-7bdb-4b56-843f-71c31cc9249d</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The CONFIG_DIABLE_FLASH_PATCH is used in order to work with&amp;nbsp;&lt;span&gt;CONFIG_HW_UNIQUE_KEY_LOAD.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please take a look at this:&amp;nbsp;&lt;a href="https://github.com/LairdCP/sdk-nrf/commit/9a9d1a5c4f5483a7c55b259df69346b702987238"&gt;https://github.com/LairdCP/sdk-nrf/commit/9a9d1a5c4f5483a7c55b259df69346b702987238&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Priyanka&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>