<?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>Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113550/downgrade-protection-works-only-for-the-app_core--image-and-not-for-the-net-core--image</link><description>Hallo, 
 we are using the nrf5340 and the ncs Version 2.6.1. 
 I activated the software downgrade protection as described here Downgrade protection (nordicsemi.com) . 
 Then I made some simultaneious FOTA updates (App-image + Net-image) by using the nRF</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Apr 2025 19:21:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113550/downgrade-protection-works-only-for-the-app_core--image-and-not-for-the-net-core--image" /><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/530321?ContentTypeID=1</link><pubDate>Wed, 02 Apr 2025 19:21:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfcf8b24-f61c-4d9a-9501-df66ba2b0539</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This discussion is not suitable for&amp;nbsp;&lt;span&gt;SDK 2.9.0. Please create a new support case for your issue.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/530181?ContentTypeID=1</link><pubDate>Wed, 02 Apr 2025 09:18:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ade2995-4e0d-4f34-b523-fcab112f7bab</guid><dc:creator>Esnoar@CicloSport</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am following this issue because I have the same use case and I am trying to enable this configuration on the b0n image in the Network Core (nRF5340 as well) but I can not make this work. I am using sysbuild on SDK 2.9.0 so I guess it should be handled differently but can not figure out how.&lt;/p&gt;
&lt;p&gt;Can you maybe explain to me where exactly should I add this configuration?&lt;/p&gt;
&lt;p&gt;My NetCore image is &amp;quot;ipc_radio&amp;quot;. I have tried adding&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;set(ipc_radio_b0n_CONFIG_PCD_READ_NETCORE_APP_VERSION y)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;in sysbuild.cmake and CMakeLists.txt but nothing seems to work,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/500428?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 13:05:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06542eae-f068-457e-a062-8790395d6c8a</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Good to know it works, and thanks for the feedback. I will forward it to the internal.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/500421?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 12:35:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68084107-1ea9-473c-b57f-be6545b265bc</guid><dc:creator>Georg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thank you for your example. The example works as expected.&lt;/p&gt;
&lt;p&gt;Our application is working now, too.&lt;/p&gt;
&lt;p&gt;The problem was that I forgot to update the&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_FW_INFO_FIRMWARE_VERSION in child_image/hci_ipc.conf when creating a new version,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;It would be be nice to add the issues we discussed&amp;nbsp; here also on your homepage.&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/bootloaders_dfu/mcuboot_nsib/bootloader_downgrade_protection.html"&gt;Downgrade protection (nordicsemi.com)&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thank your for the support.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Georg&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/500078?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2024 21:19:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0e172f6-c179-4370-843f-6b17469fe8a2</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I add the following code in the main.c of&amp;nbsp;zephyr\samples\bluetooth\hci_ipc\ to get version number:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	printk(&amp;quot;Board config: %s\n&amp;quot;, CONFIG_BOARD);
	printk(&amp;quot;CONFIG_FW_INFO_FIRMWARE_VERSION: %d\n&amp;quot;, CONFIG_FW_INFO_FIRMWARE_VERSION );
	printk(&amp;quot;build time: &amp;quot; __DATE__ &amp;quot; &amp;quot; __TIME__ &amp;quot;\n&amp;quot;);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I followed your steps to upgrade &amp;amp; downgrade, and g&lt;span&gt;ot &amp;quot;&amp;nbsp;&lt;/span&gt;&lt;span&gt;insufficient version in secondary slot&amp;quot; and reverted to&amp;nbsp;&lt;/span&gt;&lt;span&gt;APP-Core = V2, NET-Core = V2&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. APP-Core = V1, NET-Core = V1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Fota Update with V2 Zip file&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3.&amp;nbsp; APP-Core = V2, NET-Core = V2&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4. Fota Update with V1 dfu_application.zip or&amp;nbsp;net_core_app_update.bin file (for downgrading)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;=&amp;gt; Got &amp;quot; insufficient version in secondary slot&amp;quot; and reverted to&amp;nbsp;APP-Core = V2, NET-Core = V2&lt;/span&gt;&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/pastedimage1724793242374v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Here is my test project&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/peripheral_5F00_lbs_5F00_downProtect.7z"&gt;devzone.nordicsemi.com/.../peripheral_5F00_lbs_5F00_downProtect.7z&lt;/a&gt; for NCS v2.6.1.&amp;nbsp;specify Kconfig file for B0n with&amp;nbsp;CMakeLists.txt.&lt;br /&gt;West build and flash Command:&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build -p -b nrf5340dk_nrf5340_cpuapp -d build_nrf5340dk_nrf5340_cpuapp &amp;amp;&amp;amp; west flash --build-dir build_nrf5340dk_nrf5340_cpuapp --recover&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Beware that this code/configuration is not fully tested or qualified and should be considered provided “as-is”. Please test it with your application and let me know if you find any issues.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/499602?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2024 14:04:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da3301c6-f20c-47b1-8199-f58b15208a54</guid><dc:creator>Georg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;after deleting the build directory and creating a new V1 zip file and a new V2 zip file I got the same results as described in my last mail.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. APP-Core = V1, NET-Core = V1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Fota Update with V2 Zip file&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3.&amp;nbsp; APP-Core = V2, NET-Core = V2&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4. Fota Update with V1 Zip file (downgrading)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;5. APP-Core = V2,&amp;nbsp;&lt;strong&gt;NET Core= V1&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The problem still exists. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After programming a new Version I always read out the memory of the nrf5340 and checked which version is programmed in the APP-Core and the NET-Core.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Do you have an example that works ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Georg&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/499423?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 16:36:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01acc190-6819-4b71-b811-8383b89cb850</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please try to delete the build folder and build again. It should work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t want to modify anything of the&amp;nbsp;&lt;span&gt;nrf\samples\nrf5340\netboot, you can &lt;/span&gt;&lt;span&gt;build the project with this config for&amp;nbsp;netboot(b0n)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;-Dhci_ipc_b0n_CONFIG_PCD_READ_NETCORE_APP_VERSION=y&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/499414?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 15:32:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ed627dc-753a-4309-81d0-48b98532cb25</guid><dc:creator>Georg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Ignore my last 2 messages&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After adding CONFIG_PCD_READ_NETCORE_APP_VERSION=y to&amp;nbsp;nrf\samples\nrf5340\netboot&lt;/span&gt;&lt;span&gt;\&lt;/span&gt;&lt;span&gt;prj.conf I see that&amp;nbsp;`&lt;code&gt;CONFIG_PCD_READ_NETCORE_APP_VERSION&lt;/code&gt;&amp;nbsp;is set in&amp;nbsp;&lt;code&gt;hci_ipc/b0n/zephyr/.config&lt;/code&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/pastedimage1724340590150v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now the application boots and&amp;nbsp; Mcuboot&amp;nbsp; doesn&amp;#39;t hang in the &amp;quot;do while&amp;quot; loop.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But downgrade protection doesn&amp;#39;t still work for the net core.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. APP-Core = V1, NET-Core = V1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Fota Update with V2&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3.&amp;nbsp; APP-Core = V2, NET-Core = V2&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4. Fota Update with V1 (downgrading)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;5. APP-Core = V2, &lt;strong&gt;NET Core= V1&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Georg&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/499361?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 11:40:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0335fceb-a96a-40cb-b5bc-1c59e06dad4a</guid><dc:creator>Georg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I set&amp;nbsp;&lt;span&gt;CONFIG_PCD_READ_NETCORE_APP_VERSION=y in&amp;nbsp;nrf\samples\nrf5340\netboot\prj.conf&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When loooking into MyProject\build\hci_ipc\b0n\zephyr\.config&amp;nbsp; the&amp;nbsp;CONFIG_PCD_READ_NETCORE_APP_VERSION is commented out.&lt;/span&gt;&lt;/p&gt;
&lt;div&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/pastedimage1724325344820v1.png" alt=" " /&gt;&lt;/div&gt;
&lt;p&gt;The problem (hanging in the do while loop) still exists.&lt;/p&gt;
&lt;p&gt;What to do next ?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Georg&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/499323?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 08:30:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99a327c6-4156-439f-9937-58aee4559d17</guid><dc:creator>Georg</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;there is no subdirectory &amp;quot;/b0n/zephyr&amp;quot; under the directory &amp;quot;/ncs/v2.6.1/zephyr/samples/bluetooth/hci_ipc&amp;quot; in the ncs sdk 2.6.1.&lt;/p&gt;
&lt;p&gt;&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/pastedimage1724315215158v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Georg&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/499266?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2024 19:34:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7072613-43f0-41f6-a308-ba35b0bb0ea5</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Add&amp;nbsp;CONFIG_PCD_READ_NETCORE_APP_VERSION=y to&amp;nbsp;nrf\samples\nrf5340\netboot&lt;span&gt;\&lt;/span&gt;prj.conf and &lt;span&gt;&lt;span dir="ltr"&gt;check whether `&lt;code&gt;CONFIG_PCD_READ_NETCORE_APP_VERSION&lt;/code&gt; is set in &lt;code&gt;hci_ipc/b0n/zephyr/.config&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/499166?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2024 08:09:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12aa89ee-0d5f-4bc0-8f65-100faa4b512b</guid><dc:creator>Georg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;are there some new ideas concerning this problem ?&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Georg&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/498479?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 13:59:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f86401df-546b-4e59-ac09-844ba78bc042</guid><dc:creator>Georg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;no, it doesn&amp;#39;t work. The system doesn&amp;#39;t boot and hangs still in the &amp;quot;do while&amp;quot; of the mcuboot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/498477?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 13:53:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35d4798b-3aba-4bc8-9ee3-c212b02b0449</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Sounds it works as expected now with your configs files. Right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/498449?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 11:41:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e00690c-08bb-4c89-8886-16fba1ccbde5</guid><dc:creator>Georg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;this is what I added to the config files to activate the downgrade protection in complete.&lt;/p&gt;
&lt;p&gt;mcuboot.conf under child_image folder:&lt;/p&gt;
&lt;p&gt;CONFIG_BOOT_VERSION_CMP_USE_BUILD_NUMBER=y&lt;/p&gt;
&lt;p&gt;CONFIG_MCUBOOT_DOWNGRADE_PREVENTION=y&lt;/p&gt;
&lt;p&gt;CONFIG_FW_INFO=y&lt;br /&gt; CONFIG_PCD_APP=y&lt;br /&gt; CONFIG_PCD_READ_NETCORE_APP_VERSION=y&lt;/p&gt;
&lt;p&gt;hci_ipc.conf under&amp;nbsp;child_image folder:&lt;/p&gt;
&lt;p&gt;CONFIG_FW_INFO_FIRMWARE_VERSION=2&lt;/p&gt;
&lt;p&gt;b0n.conf under&amp;nbsp;child_image folder:&lt;/p&gt;
&lt;p&gt;CONFIG_PCD_READ_NETCORE_APP_VERSION=y&lt;/p&gt;
&lt;p&gt;prj.conf:&lt;/p&gt;
&lt;p&gt;CONFIG_FW_INFO=y&lt;br /&gt; CONFIG_PCD_APP=y&lt;br /&gt; CONFIG_PCD_READ_NETCORE_APP_VERSION=y&lt;/p&gt;
&lt;p&gt;Since my last mail, I added only the 3 config switches in the prj.conf file.&lt;/p&gt;
&lt;p&gt;The application doesn&amp;#39;t boot and the mcuboot hangs in the loop as described above.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Georg&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/498315?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 14:13:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97b022a3-927f-4227-808d-ecef3a7d62c6</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Did you add&lt;span&gt;&lt;span dir="ltr"&gt; &lt;code&gt;CONFIG_PCD_READ_NETCORE_APP_VERSION&lt;/code&gt;&amp;nbsp;for b0n? This option must be enabled in APP, MCUboot, and &lt;strong&gt;b0n&lt;/strong&gt; configuration (when b0n is not configured, than application hangs after reboot).&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/498247?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 11:14:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0becbfcf-8369-4864-ab2e-492a263a6b7f</guid><dc:creator>Georg</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the program hangs&amp;nbsp; in the &amp;quot;do while&amp;quot; loop&amp;nbsp; of the function: network_core_pcd_cmdset in the file pcd.c&lt;/p&gt;
&lt;p&gt;The command_status is PCD_STATUS_READ_VERSION&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;tatic int network_core_pcd_cmdset(uint32_t cmd, const void *src_addr, size_t len, bool wait)
{
	int err;
	enum pcd_status command_status;

	/* Ensure that the network core is turned off */
	nrf_reset_network_force_off(NRF_RESET, true);

	err = pcd_cmd_write(cmd, src_addr, len, PCD_NET_CORE_APP_OFFSET);
	if (err != 0) {
		LOG_INF(&amp;quot;Error while writing PCD cmd: %d&amp;quot;, err);
		return err;
	}

	enum pcd_status initial_command_status = pcd_fw_copy_status_get();

	nrf_reset_network_force_off(NRF_RESET, false);
	LOG_INF(&amp;quot;Turned on network core&amp;quot;);

	if (!wait) {
		return 0;
	}

	do {
		/* Wait for 1 second to avoid issue where network core
		 * is unable to write to shared RAM.
		 */
		k_busy_wait(1 * USEC_PER_SEC);

		command_status = pcd_fw_copy_status_get();
	} while (command_status == initial_command_status);
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Georg&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/498244?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 10:53:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab48d69d-672b-4c7a-aa12-d9b3734b763d</guid><dc:creator>Georg</dc:creator><description>&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;the problem with the error is solved.&lt;/p&gt;
&lt;p&gt;After flashing the software with the additional config switches, our software doesn&amp;#39;t boot any more&lt;/p&gt;
&lt;p&gt;It seems that the software hangs in the bootoloader.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Rest regards,&lt;/p&gt;
&lt;p&gt;Georg&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/498215?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 08:36:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03574bc5-e018-4b11-819e-a90100e6ddfb</guid><dc:creator>Georg</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;thank you for your answer and sorry for my late reply.&lt;/p&gt;
&lt;p&gt;Up to now I didn&amp;#39;t a have file&amp;nbsp;&lt;span&gt;b0n.conf&amp;nbsp;. So I created this file with only this entry.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_PCD_READ_NETCORE_APP_VERSION=y&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I tried your solution but get some errors during build.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-- west build: generating a build system&lt;br /&gt;Loading Zephyr default modules (Zephyr base).&lt;br /&gt;-- Application: C:/Projekte/BleCan_CAB11A&lt;br /&gt;-- CMake version: 3.21.0&lt;br /&gt;-- Found Python3: C:/ncs/toolchains/cf2149caf2/opt/bin/python.exe (found suitable version &amp;quot;3.9.13&amp;quot;, minimum required is &amp;quot;3.8&amp;quot;) found components: Interpreter &lt;br /&gt;-- Cache files will be written to: C:/DevTools/ncs/v2.6.1/zephyr/.cache&lt;br /&gt;-- Zephyr version: 3.5.99 (C:/DevTools/ncs/v2.6.1/zephyr)&lt;br /&gt;CMake Error at C:/DevTools/ncs/v2.6.1/zephyr/cmake/modules/version.cmake:76 (math):&lt;br /&gt; math cannot parse the expression: &amp;quot;(2 &amp;lt;&amp;lt; 16) + ( &amp;lt;&amp;lt; 8) + (0)&amp;quot;: syntax&lt;br /&gt; error, unexpected exp_SHIFTLEFT (16).&lt;br /&gt;Call Stack (most recent call first):&lt;br /&gt; C:/DevTools/ncs/v2.6.1/zephyr/cmake/modules/zephyr_default.cmake:129 (include)&lt;br /&gt; C:/DevTools/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)&lt;br /&gt; C:/DevTools/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)&lt;br /&gt; CMakeLists.txt:14 (find_package)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;CMake Error at C:/DevTools/ncs/v2.6.1/zephyr/cmake/modules/version.cmake:77 (math):&lt;br /&gt; math cannot parse the expression: &amp;quot;(2 &amp;lt;&amp;lt; 24) + ( &amp;lt;&amp;lt; 16) + (0 &amp;lt;&amp;lt; 8) +&lt;br /&gt; (2408081002)&amp;quot;: syntax error, unexpected exp_SHIFTLEFT (16).&lt;br /&gt;Call Stack (most recent call first):&lt;br /&gt; C:/DevTools/ncs/v2.6.1/zephyr/cmake/modules/zephyr_default.cmake:129 (include)&lt;br /&gt; C:/DevTools/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)&lt;br /&gt; C:/DevTools/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)&lt;br /&gt; CMakeLists.txt:14 (find_package)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Georg&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/497633?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2024 13:03:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f3541d5-dd4f-4412-aa64-7e453d0f40b9</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To enable the netcore downgrade protection use FW_INFO_FIRMWARE_VERSION and add the following kconfigs:&lt;/p&gt;
&lt;p&gt;mcuboot.conf under child_image folder:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_FW_INFO=y&lt;br /&gt;&lt;/span&gt;&lt;span&gt;CONFIG_PCD_APP=y&lt;br /&gt;&lt;/span&gt;&lt;span&gt;CONFIG_PCD_READ_NETCORE_APP_VERSION=y&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;hci_ipc.conf under&amp;nbsp;child_image folder:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_FW_INFO_FIRMWARE_VERSION=2&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;b0n.conf under&amp;nbsp;child_image folder:&lt;br /&gt;CONFIG_PCD_READ_NETCORE_APP_VERSION=y&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/497513?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2024 16:31:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43d952ca-1e3d-48c6-aeca-4b78ba557d18</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;I will update if the team has anything.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/497429?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2024 07:27:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:877fc256-f8b0-46c8-98c4-302c3c9782b3</guid><dc:creator>Georg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thank you.&lt;/p&gt;
&lt;p&gt;I hope you find a solution because we want to use this feature in our product.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Georg&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/497396?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2024 01:42:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b25796e4-4b84-4582-935b-9a9e9254b36b</guid><dc:creator>responsible_duck</dc:creator><description>&lt;p&gt;Hi just wanted to add that we just found the same issue so can confirm a reproducible offender.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/497358?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2024 14:18:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a465585a-4c6d-4f1d-9d87-3d1809952b78</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry, it&amp;#39;s &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-Device-Manager"&gt;nRF Connect Device Manager&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for finding the root cause. I will report to the internal.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Downgrade protection works only for the app_core -image-and not for the net-core -image</title><link>https://devzone.nordicsemi.com/thread/497296?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2024 09:35:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11e79c37-b02e-4324-a197-6ea187d23bd2</guid><dc:creator>Georg</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;thank you for your answer.&lt;/p&gt;
&lt;p&gt;When looking in the google play store I can&amp;#39;t find&amp;nbsp;the nRF Device app.&lt;/p&gt;
&lt;p&gt;There is a nRF Device Manager app but here I can&amp;#39;t find the option to read out&amp;nbsp;the version.&lt;/p&gt;
&lt;p&gt;Which app do you mean?&lt;/p&gt;
&lt;p&gt;To get different versions for the net-image I added a version string in the main program of the net-core-image like this:&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/7271.P1.png" /&gt;&lt;/p&gt;
&lt;p&gt;After updating the device I read out the memory of the nrf5340 (with the Programmer) and check the version string like this:&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/pastedimage1723022445569v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;What I found out during debugging is that the version of the net image get lost when MCUboot transfers the net-core-image from the secondary slot to the primary slot. The version information which is placed in the header of the&amp;nbsp;net_core_app_update.bin image is not programmed into the net core (primary slot). MCUboot assumes that the version of the net-core-image is 0.0.0, this means that downgrade prevention doesn&amp;rsquo;t work.&lt;/p&gt;
&lt;p&gt;See the function &lt;em&gt;boot_read_image_header_hook&lt;/em&gt;_in the file &lt;em&gt;nrf_hooks.c&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;pre class="ui-code" data-mode="text"&gt;int boot_read_image_header_hook_(int img_index, int slot, struct image_header *img_head)
{
	if (img_index == 1 &amp;amp;&amp;amp; slot == 0) {
		img_head-&amp;gt;ih_magic = IMAGE_MAGIC;
		img_head-&amp;gt;ih_hdr_size = PM_MCUBOOT_PAD_SIZE;
		img_head-&amp;gt;ih_load_addr = PM_MCUBOOT_PRIMARY_1_ADDRESS;
		img_head-&amp;gt;ih_img_size = PM_CPUNET_APP_SIZE;
		img_head-&amp;gt;ih_flags = 0;
		img_head-&amp;gt;ih_ver.iv_major = 0;
		img_head-&amp;gt;ih_ver.iv_minor = 0;
		img_head-&amp;gt;ih_ver.iv_revision = 0;
		img_head-&amp;gt;ih_ver.iv_build_num = 0;
		img_head-&amp;gt;_pad1 = 0;
		return 0;
	}

	return BOOT_HOOK_REGULAR;
}
&lt;/pre&gt;&lt;/em&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Georg&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>