<?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>DFU Package overlapping segment</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107542/dfu-package-overlapping-segment</link><description>I am kind of dumbly following a guide and got as far as collecting the .hex files and attempting to merge a dfu package using the nrf-command-line-tools; 
 
 
 
 So this error is lost on me. Guidance would be greatly appreciated. 
 
 Thanks, 
 Kevin </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 27 Jan 2024 17:40:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107542/dfu-package-overlapping-segment" /><item><title>RE: DFU Package overlapping segment</title><link>https://devzone.nordicsemi.com/thread/466338?ContentTypeID=1</link><pubDate>Sat, 27 Jan 2024 17:40:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84af4170-da7c-43a6-bb8f-f8cb17d365ec</guid><dc:creator>kclamb2015@gmail.com</dc:creator><description>&lt;p&gt;I&amp;#39;m not really sure why it didn&amp;#39;t take the enviroment path but the following fixed it;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;PS C:\SDK\nRF5_SDK_17.1.0_ddde560\external\micro-ecc&amp;gt; $env:Path += &amp;quot;;C:\Program Files (x86)\xpack-windows-build-tools-4.4.1-2\bin&amp;quot;
PS C:\SDK\nRF5_SDK_17.1.0_ddde560\external\micro-ecc&amp;gt; .\build_all.bat&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Package overlapping segment</title><link>https://devzone.nordicsemi.com/thread/465917?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2024 06:54:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e46ddda-9caf-4ddd-b269-95fba1aef92a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Kevin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It looks like you are almost there. The problem now is that the script fails to run because make.exe is not found in PATH. The second picture you posted shows that you have added the path to the toolchain, but not the path&amp;nbsp;to GNU Make.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Package overlapping segment</title><link>https://devzone.nordicsemi.com/thread/465894?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2024 00:19:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f160f64e-c171-43d9-8e2d-ac66c20c4c00</guid><dc:creator>kclamb2015@gmail.com</dc:creator><description>&lt;p&gt;Hey Vidar&lt;/p&gt;
&lt;p&gt;I ran the&amp;nbsp;gcc-arm-none-eabi-9-2020-q2-update-win32.exe and it looks like it autopopulated this all, but chime in if you see something wrong please;&lt;/p&gt;
&lt;p&gt;1)&amp;nbsp;&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/2024_2D00_01_2D00_24-19_5F00_05_5F00_50_2D00_Clipboard.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2)&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/2024_2D00_01_2D00_24-19_5F00_08_5F00_59_2D00_Edit-environment-variable.png" /&gt;&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/2024_2D00_01_2D00_24-19_5F00_12_5F00_03_2D00_Windows-PowerShell.png" /&gt;&lt;/p&gt;
&lt;p&gt;3) Then these errors;&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/2024_2D00_01_2D00_24-19_5F00_15_5F00_29_2D00_Windows-PowerShell2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sorry this windows scripting stuff isn&amp;#39;t my strong suit, so definitely appreciate you helping me work through it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Kevin Lamb&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Package overlapping segment</title><link>https://devzone.nordicsemi.com/thread/465766?ContentTypeID=1</link><pubDate>Wed, 24 Jan 2024 11:05:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7bf892e-db94-4d37-9755-43e12ad138ba</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, you need to run the Makefile to build the uECC library (micro_ecc_lib_nrf52.a), and it sounds like you were on the right track.&lt;/p&gt;
&lt;p&gt;To build Makefile projects in the SDK, you need to have GNU Make installed and available in PATH, in addition to the GNU ARM Embedded toolchain.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Steps to build uECC&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;1. Download the GCC toolchain at &lt;a href="https://developer.arm.com/downloads/-/gnu-rm/9-2020-q2-update"&gt;https://developer.arm.com/downloads/-/gnu-rm/9-2020-q2-update&lt;/a&gt;&amp;nbsp;and run the installer. Then, ensure that the &amp;#39;GNU_INSTALL_ROOT&amp;#39; path in /nRF5_SDK_17.1.0_ddde560/components/toolchain/gcc/Makefile.windows corresponds with your installation directory.&lt;/p&gt;
&lt;p&gt;2. Download a version of GNU Make (make.exe) and add the location of this executable to the PATH so that it can be called from the terminal. I&amp;#39;ve been using the GNU Make version bundled with this package:&amp;nbsp;&lt;a href="https://github.com/xpack-dev-tools/windows-build-tools-xpack/releases/"&gt;https://github.com/xpack-dev-tools/windows-build-tools-xpack/releases/&lt;/a&gt;. You can run &amp;#39;make --version&amp;#39; from powershell afterwards to check that it is working.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3. From the terminal, run the&amp;nbsp;build_all.bat script in&amp;nbsp;/nRF5_SDK_17.1.0_ddde560/external/micro-ecc to fetch uECC source code from github and build all variants of the uECC library.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Package overlapping segment</title><link>https://devzone.nordicsemi.com/thread/465671?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 17:54:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e05eba30-dd77-4ce0-bf6b-d4cbe953c3e1</guid><dc:creator>kclamb2015@gmail.com</dc:creator><description>&lt;p&gt;Okay I see the placement differences. Thanks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I changed things to use&amp;nbsp;&lt;span&gt;/examples/dfu/secure_bootloader/pca10056e_s112_ble_debug&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It seems to generate a error after building;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cannot find ../../../../../external/micro-ecc/nrf52nf_armgcc/armgcc/micro_ecc_lib_nrf52.a: No such file or directory&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I think the disconnect for me is&amp;nbsp;in step &lt;strong&gt;B1a. Compile the uECC library&amp;nbsp;&lt;/strong&gt;of &lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader" rel="noopener noreferrer" target="_blank"&gt;the guide&lt;/a&gt;. I assume this process generates the micro_ecc_lib_nrf52.a file? But I&amp;nbsp;cannot seem to have it &lt;em&gt;make&lt;/em&gt; for me via PowerShell. I tried &lt;em&gt;Makefile&lt;/em&gt; since that seems to be the name of the file in the folder. Still nothing. Thoughts?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Kevin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Package overlapping segment</title><link>https://devzone.nordicsemi.com/thread/465554?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 12:32:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81a7a207-5ed2-4aa8-9522-962f7139e3cc</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;No worries. Thank you for providing the additional context.&lt;/p&gt;
[quote user="kclamb2015@gmail.com"]secure_bootloader example (with some modifications for nrf52811).[/quote]
&lt;p&gt;Which specific project configuration did you use? Projects with &amp;#39;pca10056&lt;strong&gt;e&lt;/strong&gt;&amp;#39; in their names already have the correct linker and startup files for the nRF52811. The only change required for these projects&amp;nbsp;to run on&amp;nbsp;a 52811 is described here:&amp;nbsp;&lt;a title="Transferring the project to nRF52811 hardware" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/nrf52811_user_guide.html?cp=9_1_5_1_3#ug_52811_project"&gt;Transferring the project to nRF52811 hardware&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
[quote user="kclamb2015@gmail.com"]I&amp;#39;m not sure where the bootloader starts but it looks like it was complaining about address&amp;nbsp;&lt;span&gt;0x00102014.&lt;/span&gt;[/quote]
&lt;p&gt;&lt;span style="text-decoration:line-through;"&gt;It appears that merge is printing the address as a decimal value, so the actual address is really 0x19000, not&amp;nbsp;0x00102014. However, I&amp;#39;m not sure which of the hex files have overlapping data at this address. As a test, maybe try to merge only the&amp;nbsp;OSL_Bootloader.hex with&amp;nbsp;OSL_Firmware.hex to see if you get the same error.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Edit: I&amp;nbsp;see the problem now: it is the bootloader image that overlaps with the application. The bootloader is supposed to be placed at the end of the flash, as illustrated here:&amp;nbsp;&lt;a title="Memory layout" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_bootloader.html?cp=9_1_3_5_0_7#lib_bootloader_memory"&gt;Memory layout&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Please try to build and program the project in&amp;nbsp;/examples/dfu/secure_bootloader/pca10056e_s112_ble_debug and see if it will run on your board. I also recommend you&amp;nbsp;take&amp;nbsp;a look at the&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;Getting started with Nordic&amp;#39;s Secure DFU bootloader, a step by step guide&lt;/a&gt;&amp;nbsp;if you have not already.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Package overlapping segment</title><link>https://devzone.nordicsemi.com/thread/465184?ContentTypeID=1</link><pubDate>Sat, 20 Jan 2024 17:43:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1b07594-2ab3-43da-9c9d-a89f07d46159</guid><dc:creator>kclamb2015@gmail.com</dc:creator><description>&lt;p&gt;Wow I really failed to give a bit of context in my previous post, apologies. So this time around I generated a new bootloader hex from the secure_bootloader example (with some modifications for nrf52811).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s my latest bout with the powershell;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;PS \ota_dfu_util&amp;gt; .\nrf-command-line-tools\bin\nrfjprog.exe --program OSL_Bootloader.hex --verify
[ #################### ]   0.294s | Program file - Done programming
[ #################### ]   0.165s | Verify file - Done verifying
PS ota_dfu_util&amp;gt; .\nrf-command-line-tools\bin\nrfjprog.exe --memrd 0x10001014
0x10001014: FFFFFFFF                              |....|
PS \ota_dfu_util&amp;gt; .\nrf-command-line-tools\bin\mergehex.exe --merge OSL_DFU_Settings.hex OSL_Bootloader.hex s112_nrf52_7.2.0_softdevice.hex OSL_Firmware.hex --output OSL_DFU_Package.hex
Parsing input files.
Merging file &amp;quot;OSL_DFU_Settings.hex&amp;quot; into output.
Merging file &amp;quot;OSL_Bootloader.hex&amp;quot; into output.
Merging file &amp;quot;s112_nrf52_7.2.0_softdevice.hex&amp;quot; into output.
Merging file &amp;quot;OSL_Firmware.hex&amp;quot; into output.
Overlapping segments detected at address 102400.ERROR: The hex files cannot be merged since there are conflicts.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure where the bootloader starts but it looks like it was complaining about address&amp;nbsp;&lt;span&gt;0x00102014.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;PS \ota_dfu_util&amp;gt; .\nrf-command-line-tools\bin\nrfjprog.exe --memrd 0x00102400
0x00102400: 00000000                              |....|&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;Update: Looking at the datasheet for nrf58211 it looks like the UICR starts at 0x10001000;&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/pastedimage1705773607611v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;PS \ota_dfu_util&amp;gt; .\nrf-command-line-tools\bin\nrfjprog.exe --memrd 0x10000000
0x10000000: 55AA55AA                              |.U.U|
PS \ota_dfu_util&amp;gt; .\nrf-command-line-tools\bin\nrfjprog.exe --memrd 0x10001000
0x10001000: FFFFFFFF                              |....|&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is the memory parameters for the application;&lt;br /&gt;FLASH_PH_START=0x0&lt;br /&gt;FLASH_PH_SIZE=0x30000&lt;br /&gt;RAM_PH_START=0x20000000&lt;br /&gt;RAM_PH_SIZE=0x6000&lt;br /&gt;FLASH_START=0x19000&lt;br /&gt;FLASH_SIZE=0x17000&lt;br /&gt;RAM_START=0x20002EA0&lt;br /&gt;RAM_SIZE=0x3160&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(These were acquired by the datasheets/the program telling me the memory space needed and help from &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/105846/nrf52811-w-soft-device-s140"&gt;this ticket&lt;/a&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is the output when programming the application via SES and then running;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;lt;error&amp;gt; app: No bootloader was found&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh: State request: 0x00000000&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh: State change: 0x00000000&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh: State change: 0x00000001&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: RAM starts at 0x20002EA0&lt;br /&gt;&amp;lt;info&amp;gt; app: device reset&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 &amp;lt;error&amp;gt; is after using&amp;nbsp;.\nrf-command-line-tools\bin\nrfjprog.exe --program OSL_Bootloader.hex --verify.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I noticed&amp;nbsp;I got the same error from&amp;nbsp;nrfjprog when I loaded the bootloader directly from SES.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The memory parameters for the bootloader are;&lt;br /&gt;FLASH_PH_START=0x0&lt;br /&gt;FLASH_PH_SIZE=0x30000&lt;br /&gt;RAM_PH_START=0x20000000&lt;br /&gt;RAM_PH_SIZE=0x6000&lt;br /&gt;FLASH_START=0x19000&lt;br /&gt;FLASH_SIZE=0xE000&lt;br /&gt;RAM_START=0x20000000&lt;br /&gt;RAM_SIZE=0x6000&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;There&amp;#39;s a bit of a gap in my understanding of bootloaders so maybe more education needed in this situation?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Package overlapping segment</title><link>https://devzone.nordicsemi.com/thread/464993?ContentTypeID=1</link><pubDate>Fri, 19 Jan 2024 10:12:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7dfa392-b4f2-4856-8e88-58984bf5845c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello Kevin,&lt;/p&gt;
&lt;p&gt;Sorry, but I don&amp;#39;t see any errors in the &amp;#39;mergehex.exe&amp;#39; output you posted. Did you mean to post something else? Also, which bootloader project did you use?&amp;nbsp;&lt;/p&gt;
[quote user="kclamb2015@gmail.com"]&amp;lt;error&amp;gt; app: No bootloader was found[/quote]
&lt;p&gt;Do you see this after programming the merged &amp;#39;OSL_DFU_Package.hex&amp;#39; file to your board? Either way, please read out the UICR register at 0x10001014. This register should contain the start address of the bootloader if it was correctly programmed.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Reading the UICR register with nrfjprog.exe&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ nrfjprog --memrd 0x10001014&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Package overlapping segment</title><link>https://devzone.nordicsemi.com/thread/464924?ContentTypeID=1</link><pubDate>Thu, 18 Jan 2024 22:16:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d062c871-4632-41e8-906d-55fe0ba5dbb5</guid><dc:creator>kclamb2015@gmail.com</dc:creator><description>&lt;p&gt;&amp;lt;error&amp;gt; app: No bootloader was found&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh: State request: 0x00000000&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh: State change: 0x00000000&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh: State change: 0x00000001&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: RAM starts at 0x20002EA0&lt;br /&gt;&amp;lt;info&amp;gt; app: device reset&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;FLASH_PH_START=0x0&lt;br /&gt;FLASH_PH_SIZE=0x30000&lt;br /&gt;RAM_PH_START=0x20000000&lt;br /&gt;RAM_PH_SIZE=0x6000&lt;br /&gt;FLASH_START=0x19000&lt;br /&gt;FLASH_SIZE=0x17000&lt;br /&gt;RAM_START=0x20002EA0&lt;br /&gt;RAM_SIZE=0x3160&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>