<?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>Migrating from nRF SDK 17.0.2 to nRF connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102295/migrating-from-nrf-sdk-17-0-2-to-nrf-connect-sdk</link><description>Hi, 
 We are having the nRF 52840 based boards running in the field from last 2 years. We are using below combination of firmware in our curretn application 
 1. nRF SDK 17.0.2 
 2. BLE Mesh 4.2.0 
 3. soft device s140_7.0.1 
 4. Bootloader 
 The memory</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Aug 2023 12:25:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102295/migrating-from-nrf-sdk-17-0-2-to-nrf-connect-sdk" /><item><title>RE: Migrating from nRF SDK 17.0.2 to nRF connect SDK</title><link>https://devzone.nordicsemi.com/thread/443371?ContentTypeID=1</link><pubDate>Mon, 28 Aug 2023 12:25:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:909fff07-8c21-43e4-9d32-7298c6785ad5</guid><dc:creator>Ramachandra Reddy</dc:creator><description>&lt;p&gt;Please close the ticket or let me know how to close it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from nRF SDK 17.0.2 to nRF connect SDK</title><link>https://devzone.nordicsemi.com/thread/443368?ContentTypeID=1</link><pubDate>Mon, 28 Aug 2023 12:23:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52c153c1-bcb5-490b-be8f-6c0cf53ce3c4</guid><dc:creator>Ramachandra Reddy</dc:creator><description>&lt;p&gt;Hi Bui,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Thanks a lot for all the support, the task is completed.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Reagrds,&lt;/p&gt;
&lt;p&gt;Ram&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from nRF SDK 17.0.2 to nRF connect SDK</title><link>https://devzone.nordicsemi.com/thread/439743?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2023 14:45:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d82b8b3-39df-42ed-b75e-1cc2cd827a29</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Ram,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As far as I can see Vidar included the .hex just as a reference (so that you can test). But you should&amp;nbsp;generate the .hex by your own when you compile the application (or the example). Mcuboot hex file will be generated automatically when you generated the application hex.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want LDO instead of DCDC you can add your overlay inside&amp;nbsp;\ncs_application\peripheral_lbs_with_dfu\child_image\mcuboot\boards&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Same with application, you should put the overlay of your board inside boards folder.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Please be aware that the solution provided by Vidar will replace the nRF5 SDK bootloader. So you will only be able to do DFU via MCUBoot after the DFU update.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from nRF SDK 17.0.2 to nRF connect SDK</title><link>https://devzone.nordicsemi.com/thread/439548?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2023 15:05:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbb0a7d7-b720-4574-a2e1-09731e4068c5</guid><dc:creator>Ramachandra Reddy</dc:creator><description>&lt;p&gt;Hello Bui,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Yes as you said i have integrated the smp server to upload the image vusing dfu by fallowing the tutorial&amp;nbsp;&lt;a class="ui-contentpeek internal-link" href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu" data-contentid="fb6f7e6c9e8d462b9fd72295665391e7" data-contenttypeid="f7d226abd59f475c9d224a79e3f0ec07"&gt;Add DFU support to your application&lt;/a&gt;&lt;span&gt;&amp;nbsp; and it is working fine.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am able to able the device and able to perform the dfu update using smp server.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The problem is the device which are there in the field has nRF bootloder in it and need to update the NRF connect sdk build.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have used the below command to manupilate the memory information about soft device and bootloader&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;cmd:&lt;/strong&gt;&amp;nbsp;nrfutil pkg generate &lt;strong&gt;--bootloader&amp;nbsp; C:/Users/RamachandraReddy/Downloads/dfu_from_nrf5_SDK_to_NCS_demo/ncs_application/peripheral_lbs_with_dfu/build/mcuboot/zephyr/&lt;span style="background-color:#ff0000;"&gt;zephyr.hex&lt;/span&gt;&lt;/strong&gt; --bootloader-version 1 --hw-version 52 --sd-req 0xA9,0xCA,0xAE,0xB6 --softdevice ../build/zephyr/app_signed.hex --sd-boot-validation NO_VALIDATION --app-boot-validation NO_VALIDATION --key-file ../secure_dfu_keypair/dcs_private.pem ../output/BLE_FW_OTA_3.0.0_BL.zip&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;i am able to generate the required DFU file and able to update it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Here come the actual problem&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The bootloder which is used in the above command (highlighted in red) i got from the sample project&amp;nbsp;dfu_from_nrf5_SDK_to_NCS_demo from devzone(link:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/92774/hang-with-nrf5-sdk-17-1-0-bootloader-and-nrf-connect-sdk-2-1-0-application)"&gt;devzone.nordicsemi.com/.../hang-with-nrf5-sdk-17-1-0-bootloader-and-nrf-connect-sdk-2-1-0-application)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;, if i use the same mcuboot hex file then my development baord is working, but looks like the dcdc is not disable in the build because of which my custom board is not coming up,&lt;/p&gt;
&lt;p&gt;I tried to copy the entire folder and compile my self and generted the mcuboot hex file. using this the board is not coming up.&lt;/p&gt;
&lt;p&gt;I looked into the hex file data,&amp;nbsp; it looks like both the files has lot of difference and doesnt match.&lt;/p&gt;
&lt;p&gt;Could you please let me know how i can reprodue the mcuboot file same as one which is there it the sample project.&lt;/p&gt;
&lt;p&gt;I am attaching both the sample and mygenerted file for reference.&lt;/p&gt;
&lt;p&gt;1. sample file&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8508.zephyr.hex"&gt;devzone.nordicsemi.com/.../8508.zephyr.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2. My file :&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8508.zephyr.hex"&gt;devzone.nordicsemi.com/.../8508.zephyr.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is very much on priority since all our device need to upgrade to new firmware, Please support it&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am also attaching the sample project which is downloaded for your reference.&lt;/p&gt;
&lt;p&gt;code:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ncs_5F00_application.rar"&gt;devzone.nordicsemi.com/.../ncs_5F00_application.rar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I want to know how i can reproduce the same mcuboot hexpath:&amp;nbsp;C:\Users\RamachandraReddy\Downloads\dfu_from_nrf5_SDK_to_NCS_demo\ncs_application\peripheral_lbs_with_dfu\build\mcuboot\zephyr\zephyr.hex) file which is there in the sample project.&lt;/p&gt;
&lt;p&gt;which version of sdk is used to generate it.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Ram&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from nRF SDK 17.0.2 to nRF connect SDK</title><link>https://devzone.nordicsemi.com/thread/439420?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2023 07:34:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e347dfea-9cff-4d9c-9614-c55c085b39a3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Ram,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you please describe how exactly you combined MCUBoot and nRF5 SDK bootloader ? How the DFU process works now ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please be aware that MCUboot and application doesn&amp;#39;t run at the same time. What you integrated into the application most likely is the SMP server to receive image. The MCUBoot only does booting and image swapping.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would need to have the full picture of your implementation to tell why you have larger memory footprint.&lt;br /&gt;&lt;br /&gt;The simplified memory layout for MCUBoot would look like this:&amp;nbsp;&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/pastedimage1690961622514v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;New image is stored on the MCUBoot Secondary and will be swapped with MCUBoot primary (current app) by MCUBoot when rebooting if it marked for &amp;quot;confirm&amp;quot; or &amp;quot;test&amp;quot;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from nRF SDK 17.0.2 to nRF connect SDK</title><link>https://devzone.nordicsemi.com/thread/439410?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2023 06:57:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e195d2b6-59c1-4b43-99f9-248682be95c0</guid><dc:creator>Ramachandra Reddy</dc:creator><description>&lt;p&gt;HI Bui,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Thanks for your reply, I made the changes and it is working fine now.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; i have one doubt about the memory usage by bootloader.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Before using mcuboot my application use to occupy only 30% of memory but after including the MCUboot it occupied 75% of memory.&lt;/p&gt;
&lt;p&gt;If it take 75% then how where do we get space for slot 1 for swiping the program during DFU.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you please share any information about the memory structure before and after adding mcuboot&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Ram&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from nRF SDK 17.0.2 to nRF connect SDK</title><link>https://devzone.nordicsemi.com/thread/439311?ContentTypeID=1</link><pubDate>Tue, 01 Aug 2023 14:22:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94615987-8016-4ea5-943c-015d905d6d2c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Ram,&lt;/p&gt;
&lt;p&gt;My suggestion is to get familiar with the OTA DFU in NCS before you move to the next step is onto how you can have both DFUs support in your application.&amp;nbsp;&lt;br /&gt;Please try follow the guide here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu"&gt;Add DFU support to your application&lt;/a&gt;&amp;nbsp;, please test with a normal NCS application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also make sure you do a full erase before testing. Do you have 32kHz crystal on your custom board ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After you have verified that you can run MCUboot&amp;nbsp; on your custom board you will need to decide how you want to have both nRF5 bootloader and the MCUBoot on your board.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from nRF SDK 17.0.2 to nRF connect SDK</title><link>https://devzone.nordicsemi.com/thread/439011?ContentTypeID=1</link><pubDate>Mon, 31 Jul 2023 12:17:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a05a93e3-16bb-4960-bc80-24af6f87482c</guid><dc:creator>Ramachandra Reddy</dc:creator><description>&lt;p&gt;Hi Hellesvik,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks for your early response.&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;Also remember to create a partition for the softdevice that you do not use : How i can create the partition for this&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Also i am facing the weird&amp;nbsp;scenario with my custom board.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I have included the bootloader by setting the below flag in prj.cfg file&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU&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;/div&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;After build the i can see the below file in the build path got generated which confirms the bootloder is enabled.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:197px;max-width:197px;" height="197" src="https://devzone.nordicsemi.com/resized-image/__size/394x394/__key/communityserver-discussions-components-files/4/pastedimage1690805805039v1.png" width="197" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I have loding the merged.hex file from nrf connect programmer.&lt;/p&gt;
&lt;p&gt;The development board is booting up without any issue and the board is advertising but the custom board is not booting up i am not sure why the issue is, because without enabling the mcuboot (&lt;span&gt;CONFIG_BOOTLOADER_MCUBOOT&lt;/span&gt;&lt;span&gt;=y)&amp;nbsp;&lt;/span&gt;both development and custom board is working fine, could you please let us know the problem here.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Ram&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from nRF SDK 17.0.2 to nRF connect SDK</title><link>https://devzone.nordicsemi.com/thread/438490?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2023 11:06:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9c3502e-9323-46c0-89c9-95dbef5ab550</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
[quote user=""]&lt;span&gt;&amp;nbsp; &amp;nbsp; 1. Is there a way where i can use the old bootloder to upgrade the new connect SDK application code(without MCU Boot)&lt;/span&gt;[/quote]
&lt;p&gt;Yes. See &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/95859/one-bootloader-to-rule-them-all"&gt;One bootloader to rule them all&lt;/a&gt; , where I have discussed this with another custtomer&lt;/p&gt;
[quote user=""]&lt;span&gt;&amp;nbsp; &amp;nbsp; 2. how can i achieve&amp;nbsp;both old bootloader and MCUboot loader together.&lt;/span&gt;[/quote]
&lt;p&gt;Why would you need this?&lt;/p&gt;
[quote user=""]&lt;span&gt;&amp;nbsp; &amp;nbsp; 3. How can i remap the nRF connect application to load and run from required memory location while building using VS code.&lt;/span&gt;[/quote]
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_FLASH_LOAD_OFFSET"&gt;CONFIG_FLASH_LOAD_OFFSET&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also remember to create a partition for the softdevice that you do not use&lt;/p&gt;
[quote user=""]&lt;span&gt;&amp;nbsp; &amp;nbsp; 4. How can i view the partition information like below to check the memory details&lt;/span&gt;[/quote]
&lt;p&gt;You can either use &lt;a href="https://nrfconnect.github.io/vscode-nrf-connect/guides/memory_overview.html?h=partition#memory-report-for-partitions"&gt;VS Code Memory Report&lt;/a&gt; or &amp;quot;west build -t partition_memory_report&amp;quot;&lt;/p&gt;
[quote user=""]&lt;span&gt;&amp;nbsp; 5. What is the best way to do upgrade the NCS firmware using old bootloader.&lt;/span&gt;[/quote]
&lt;p&gt;See 1.&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>