<?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>`PM_PROVISION_ADDRESS` undeclared when using secure boot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112393/pm_provision_address-undeclared-when-using-secure-boot</link><description>Hello there! 
 I&amp;#39;m trying to enable secure boot via CONFIG_SECURE_BOOT and am currently getting the following error: 
 
 I&amp;#39;m using zephyr via sdk-nrf v2.6.1 
 Searching the sdk-nrf repo on github for `PM_PROVISION_ADDRESS` yields few results of interest</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Jun 2024 12:56:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112393/pm_provision_address-undeclared-when-using-secure-boot" /><item><title>RE: `PM_PROVISION_ADDRESS` undeclared when using secure boot</title><link>https://devzone.nordicsemi.com/thread/490649?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2024 12:56:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8c3892b-7ce2-4f21-a4fb-3b0388e54bfd</guid><dc:creator>3Nigma</dc:creator><description>&lt;p&gt;Found the actual reference to this behaviour in your link here:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_06_2D00_25-at-15.53.54.png" /&gt;&lt;/p&gt;
&lt;p&gt;Thank you very much, Einar.&lt;/p&gt;
&lt;p&gt;We can close this ticket.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: `PM_PROVISION_ADDRESS` undeclared when using secure boot</title><link>https://devzone.nordicsemi.com/thread/490643?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2024 12:45:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6bd54f3-1cb3-48a2-956d-23d26d9b1b0e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;That is a good find.&amp;nbsp;While not obvious, what&amp;nbsp;you are seeing is intentional and documented &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/nrf/config_and_build/multi_image.html#permanent_configuration_changes_to_child_images"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: `PM_PROVISION_ADDRESS` undeclared when using secure boot</title><link>https://devzone.nordicsemi.com/thread/490382?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2024 14:54:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8855f8c-8cb5-473f-bffb-6363bb76d355</guid><dc:creator>3Nigma</dc:creator><description>&lt;p&gt;Hey Einar,&lt;/p&gt;
&lt;p&gt;So I&amp;#39;ve dug into this a little bit more and here is what I found:&lt;/p&gt;
&lt;p&gt;You can reproduce it quite easily if you add CONFIG_SECURE_BOOT=y to prj.conf in the hello_world example &lt;strong&gt;AND&lt;/strong&gt; define an empty b0 child_image board overlay config in &lt;strong&gt;child_image/b0/boards/&amp;lt;board_name&amp;gt;.conf&lt;/strong&gt; .&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using the VS Code NRF extension and if you do this, you&amp;#39;ll get the following 2 extra cmake arguments added : &lt;strong&gt;b0_CONF_FILE&lt;/strong&gt; pointing to&amp;nbsp;&lt;strong&gt;child_image/b0/boards/&amp;lt;board_name&amp;gt;.conf&lt;/strong&gt;&amp;nbsp;and a &lt;strong&gt;b0_OVERLAY_CONFIG&lt;/strong&gt; pointing to&amp;nbsp;&lt;strong&gt;nrf/subsys/partition_manager/partition_manager_enabled.conf&lt;/strong&gt;&amp;nbsp;. When you do this, &lt;strong&gt;samples/bootloader/prj.conf&lt;/strong&gt; (which&amp;nbsp;enables the&amp;nbsp;CONFIG_SECURE_BOOT_STORAGE flag that adds the provision partition to the otp region by partion manager, defining PM_PROVISION_ADDRESS in the process&amp;nbsp;), doesn&amp;#39;t get added.&lt;/p&gt;
&lt;p&gt;If, on the other hand, you define a global child_image overlay for b0 in child_image/b0.conf , you only get a b0_OVERLAY_CONFIG pointing to child_image/b0.conf and the &lt;strong&gt;samples/bootloader/prj.conf&lt;/strong&gt; gets processed as expected.&lt;/p&gt;
&lt;p&gt;For me, it&amp;#39;s a bit confusing that &lt;strong&gt;child_image/b0.conf&lt;/strong&gt; is processed as an overlay while the &lt;strong&gt;child_image/b0/boards/&amp;lt;board&amp;gt;.conf&lt;/strong&gt; does not and takes down &lt;strong&gt;samples/bootloader/prj.conf&lt;/strong&gt; .&lt;/p&gt;
&lt;p&gt;Is there any logical reason for this behaviour?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for following up,&lt;/p&gt;
&lt;p&gt;Take care,&lt;/p&gt;
&lt;p&gt;V&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: `PM_PROVISION_ADDRESS` undeclared when using secure boot</title><link>https://devzone.nordicsemi.com/thread/490274?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2024 12:21:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7165fde3-88a1-462e-bdd3-12fdf297a46f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am not able to find other similar issues. Can you share your project configuration and how you enabled secure boot (where did. you put&amp;nbsp;CONFIG_SECURE_BOOT=y and what are your other configs, etc)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>