<?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 from SDK 2.4.2 to SDK 1.9.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103834/downgrade-from-sdk-2-4-2-to-sdk-1-9-1</link><description>We are working to updated the SDK to version 2.4.2 running on nRF5340 SoC. Current the firmware is working fine except when we tested to downgrade the firmware back with the firmware using SDK 1.9.1. After we OTA the firmware back, the netcore is not</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Oct 2023 14:42:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103834/downgrade-from-sdk-2-4-2-to-sdk-1-9-1" /><item><title>RE: downgrade from SDK 2.4.2 to SDK 1.9.1</title><link>https://devzone.nordicsemi.com/thread/449883?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 14:42:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6de87a5-b553-437e-8f7c-3f0c4fcbee17</guid><dc:creator>Leiser</dc:creator><description>&lt;p&gt;We&amp;nbsp;had informed we will not allow to downgrade the version using OTA after we had release the firmware using Softdevice controller and SDK 2.4.2. My company accepted that.&lt;/p&gt;
&lt;p&gt;Thanks for the help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: downgrade from SDK 2.4.2 to SDK 1.9.1</title><link>https://devzone.nordicsemi.com/thread/449868?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 13:59:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0de8cf59-1479-4fe5-abf0-e464158dfdf1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Leiser,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sigurd is away and I will take over the ticket in the mean time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So what happening here is that the controller has been updated from Zephyr controller in SDK v1.9.1 to Softdevice controller in v2.4.2 ?&amp;nbsp;&lt;br /&gt;And when you try to revert it back it was not possible to downgrade ?&amp;nbsp;&lt;br /&gt;I&amp;#39;m not so sure if it&amp;#39;s actually feasible to downgrade the controller at all. There must be some logic need to be turned of to do so because it&amp;#39;s normally not allowed to downgrade due to security reason. An attacker can try to downgrade the stack to exploit security holes in previous version of the stack.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: downgrade from SDK 2.4.2 to SDK 1.9.1</title><link>https://devzone.nordicsemi.com/thread/449396?ContentTypeID=1</link><pubDate>Mon, 09 Oct 2023 15:45:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18ef634d-a0d6-4af3-bcb0-a93ae0b45352</guid><dc:creator>Leiser</dc:creator><description>&lt;p&gt;My co-work made some test.&amp;nbsp;And the preliminary result is pointing not to the SDK version but the use of Soft device instead of Zephyr controller. Our firmware with SDK 1.9.1 use Zephyr controller. When we updated to SDK 2.4.2, we starting using Soft device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: downgrade from SDK 2.4.2 to SDK 1.9.1</title><link>https://devzone.nordicsemi.com/thread/448370?ContentTypeID=1</link><pubDate>Fri, 29 Sep 2023 14:08:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:077188d5-5ed1-422f-b4ab-16cf171a7cde</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Ah, that makes more sense then.&lt;/p&gt;
[quote user="Leiser"]&amp;nbsp;How this&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_LOG_BACKEND_FS"&gt;CONFIG_LOG_BACKEND_FS&lt;/a&gt;&amp;nbsp;works?&amp;nbsp;[/quote]
&lt;p&gt;This will save logs to a selected file system . Then you can read out the logs using whatever method you want.&lt;br /&gt;Maybe the easiest is to use the SMP Server sample and its &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html#download-file-from-file-system"&gt;file system functionality&lt;/a&gt;. Our nRF Device Manager application for mobile also can read from file systems over SMP.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: downgrade from SDK 2.4.2 to SDK 1.9.1</title><link>https://devzone.nordicsemi.com/thread/448219?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2023 20:50:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92d114d4-8a58-4711-84b6-f4929298e59f</guid><dc:creator>Leiser</dc:creator><description>&lt;p&gt;Sorry, I made a mistake in my last message. I&amp;#39;m using a customize board with no UART available. I will see how can I debug this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: downgrade from SDK 2.4.2 to SDK 1.9.1</title><link>https://devzone.nordicsemi.com/thread/448196?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2023 14:57:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a9a4c31-f975-4d24-9b25-1c3d9dfd96c7</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Leiser"]I&amp;#39;m not using&amp;nbsp;a customize board.[/quote]
&lt;p&gt;Then I suggest that you just log using UART&amp;nbsp; for the DK. (standard log over the USB)&lt;br /&gt; That usually works well for me for bootloader logging&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: downgrade from SDK 2.4.2 to SDK 1.9.1</title><link>https://devzone.nordicsemi.com/thread/448023?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2023 17:50:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45f6a9f4-e068-4dbc-af9b-f4ecb07b5ea7</guid><dc:creator>Leiser</dc:creator><description>&lt;p&gt;I&amp;#39;m not using&amp;nbsp;a customize board.&amp;nbsp;How this&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_LOG_BACKEND_FS"&gt;CONFIG_LOG_BACKEND_FS&lt;/a&gt;&amp;nbsp;works?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: downgrade from SDK 2.4.2 to SDK 1.9.1</title><link>https://devzone.nordicsemi.com/thread/447765?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2023 14:15:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b1de181-1f2a-4239-ae81-dac64b94d904</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;I think it is time to try to make logging work at this point.&lt;/p&gt;
&lt;p&gt;Do you have the option to do serial logging from the device?&lt;/p&gt;
[quote user=""]After 4 days working in this issue I saw the MCU boot messages only twice.[/quote]
&lt;p&gt;It is impractical, but I think you need to reset the RTT logger everytime you reboot the DK. &lt;/p&gt;
&lt;p&gt;Alternatively, you can try to use &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_LOG_BACKEND_FS"&gt;CONFIG_LOG_BACKEND_FS&lt;/a&gt;, to write logs to a file, and then read it from the file later.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: downgrade from SDK 2.4.2 to SDK 1.9.1</title><link>https://devzone.nordicsemi.com/thread/447093?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2023 13:12:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c9c4232-1cd8-43ee-b232-bcd3619e91eb</guid><dc:creator>Leiser</dc:creator><description>&lt;p&gt;It did not fix. I had tried that before I had opened this ticket.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: downgrade from SDK 2.4.2 to SDK 1.9.1</title><link>https://devzone.nordicsemi.com/thread/447090?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2023 13:07:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bb2b546-cabc-4198-9aa4-ba7c5be4511a</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Leiser"]&lt;p&gt;I just try and now the child image partition from SDK 2.4.2 is not matching the child partition from SDK 1.9.2,&lt;/p&gt;
&lt;p&gt;The b0n end address from SDK 1.9.1 build is 0x1008600 and build using SDK 2.4.2 the b0n and address is 0x1008580. This cause because the size is different 0x8600 and 0x8580 respectively.&lt;/p&gt;[/quote]
&lt;p&gt;Aha, try to force the same size for both, and see if that fixes this&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: downgrade from SDK 2.4.2 to SDK 1.9.1</title><link>https://devzone.nordicsemi.com/thread/447083?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2023 12:56:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48b1107a-3114-4c0f-81a6-f6f776204282</guid><dc:creator>Leiser</dc:creator><description>&lt;p&gt;I just try and now the child image partition from SDK 2.4.2 is not matching the child partition from SDK 1.9.2,&lt;/p&gt;
&lt;p&gt;The b0n end address from SDK 1.9.1 build is 0x1008600 and build using SDK 2.4.2 the b0n and address is 0x1008580. This cause because the size is different 0x8600 and 0x8580 respectively.&lt;/p&gt;
&lt;p&gt;The pm_static.yml, you described, will do the same for the nRF5340 app core. But right now, this is not my issue because the partition generated automatically by the partition manager match in both builds.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: downgrade from SDK 2.4.2 to SDK 1.9.1</title><link>https://devzone.nordicsemi.com/thread/447082?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2023 12:56:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:479611b8-f9df-49f1-95cf-a89f54f2a56b</guid><dc:creator>Leiser</dc:creator><description>&lt;p&gt;I just try and now the child image partition from SDK 2.4.2 is not matching the child partition from SDK 1.9.2,&lt;/p&gt;
&lt;p&gt;The b0n end address from SDK 1.9.1 build is 0x1008600 and build using SDK 2.4.2 the b0n and address is 0x1008580. This cause because the size is different 0x8600 and 0x8580 respectively.&lt;/p&gt;
&lt;p&gt;The pm_static.yml, you described, will do the same for the nRF5340 app core. But right now, this is not my issue because the partition generated automatically by the partition manager match in both builds.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: downgrade from SDK 2.4.2 to SDK 1.9.1</title><link>https://devzone.nordicsemi.com/thread/447078?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2023 12:48:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b72a9c5-3a2d-489c-8ba5-c597d3b239ea</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Leiser"]This is working because after I added it I saw the partitions_CPUNET.yml from the SDK 2.4.2 build is exactly the same the one generated by the SDK 1.9.1 build.[/quote]
&lt;p&gt;Yea, that should be enough to check this then.&lt;br /&gt;In this case, I do not think that static partitioning is the issue anymore.&lt;/p&gt;
&lt;p&gt;I will look more into this tomorrow, to see if I can see any other things that may cause the issue.&lt;/p&gt;
[quote user="Leiser"]&lt;span&gt;I will try what you wrote. I will let you know.&lt;/span&gt;[/quote]
&lt;p&gt;I do not think this is necessary, as you were able to verify that the partitioning did not change.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: downgrade from SDK 2.4.2 to SDK 1.9.1</title><link>https://devzone.nordicsemi.com/thread/447070?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2023 12:13:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3258d46-9abb-4293-9b62-991ad4937f5c</guid><dc:creator>Leiser</dc:creator><description>&lt;p&gt;As far I know for the net core (child image) the file does need to be named as pm_static.yml. The pm_static.yml must the name for the app core.&lt;/p&gt;
&lt;p&gt;The pm.yml I got from the build using SDK1.9.1. I took the file&amp;nbsp;generated for the child image by the partition manager. I copied the file from my SDK1.9.1 build, folder &amp;lt;SDK1.9.1 project root folder &amp;gt;\build\hci_rpmsg\partitions_CPUNET.yml, renamed it to pm.yml, copied to my SDK2.4.2 files on&amp;nbsp;&lt;span&gt;&amp;lt;SDK2.4.2 project root folder &amp;gt;c&lt;/span&gt;&lt;span&gt;hild_image\pm.yml.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I changed the VS Code build file to include om the Extra CMake arguments the following:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Dhci_rpmsg_PM_STATIC_YML_FILE:STRING=&amp;quot;C:/nRF5340-samples/nrf5340/app_core/test/peripheral_hr_sdk2.4.2/child_image/pm.yml&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is working because after I added it I saw the partitions_CPUNET.yml from the SDK 2.4.2 build is exactly the same the one generated by the SDK 1.9.1 build.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will try what you wrote. I will let you know.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: downgrade from SDK 2.4.2 to SDK 1.9.1</title><link>https://devzone.nordicsemi.com/thread/446988?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2023 07:47:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d57e0c07-5bc4-4586-9f49-7543dce9267c</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;That file is named pm.yml.&lt;/p&gt;
&lt;p&gt;Did you rename this?&lt;/p&gt;
&lt;p&gt;Can you explain where you get this file, and how you are using it?&lt;/p&gt;
&lt;p&gt;I see that the file you send does not have static partitions for mcuboot, mcuboot_primary or mcuboot_secondary.&lt;br /&gt;Can I suggest that you do this to do static partitioning?&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;First, build your application without static partitioning.&lt;/li&gt;
&lt;li&gt;Copy project/build/partitions.yml --&amp;gt; project/pm_static.yml
&lt;ol&gt;
&lt;li&gt;Note: pm_static.yml will automatically be detected by the build system, due to its specific name&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Copy project/pm_static.yml to both projects for v2.4.2 and v1.9.1&lt;/li&gt;
&lt;li&gt;Rebuild both applications.&lt;/li&gt;
&lt;li&gt;Flash first application.&lt;/li&gt;
&lt;li&gt;Now try DFU&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: downgrade from SDK 2.4.2 to SDK 1.9.1</title><link>https://devzone.nordicsemi.com/thread/446911?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 14:04:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8654bcf-6e2b-45b7-ad35-c68e26bace6c</guid><dc:creator>Leiser</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/pm.zip"&gt;devzone.nordicsemi.com/.../pm.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here the file I&amp;#39;m using.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: downgrade from SDK 2.4.2 to SDK 1.9.1</title><link>https://devzone.nordicsemi.com/thread/446767?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 06:44:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44307681-5f70-481b-a5cb-86221c7bb864</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Can you upload the pm_static.yml you used now?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: downgrade from SDK 2.4.2 to SDK 1.9.1</title><link>https://devzone.nordicsemi.com/thread/446681?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2023 13:36:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23fda402-8a35-4943-9d5f-7fd544d22e3c</guid><dc:creator>Leiser</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It was not at beginning, the bon size was smaller and the start address was the same. But, now I added static partition to make the partition with the same size for the child image and this change did not fix the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: downgrade from SDK 2.4.2 to SDK 1.9.1</title><link>https://devzone.nordicsemi.com/thread/446458?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2023 12:51:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cad46d21-ad92-44d0-a437-9dfe84395ffa</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is your &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/bootloaders_and_dfu/bootloader.html#static-partition-requirement-for-dfu"&gt;partitioning static&lt;/a&gt; between the updates?&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></channel></rss>