<?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>switch uECC bootloader to oberon via DFU?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98910/switch-uecc-bootloader-to-oberon-via-dfu</link><description>Hi All, 
 I am looking to issue a new bootloader to my devices running my application code. These devices currently have a bootloader that was compiled with the uECC library. In building the new bootloader I was wondering if I could use oberon as the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Jun 2023 19:30:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98910/switch-uecc-bootloader-to-oberon-via-dfu" /><item><title>RE: switch uECC bootloader to oberon via DFU?</title><link>https://devzone.nordicsemi.com/thread/430072?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2023 19:30:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1df48a7-a1b7-4594-9238-0e82282956d0</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Patrick,&lt;/p&gt;
&lt;p&gt;Note: I just deleted&amp;nbsp;an answer I posted ~10 minutes ago which contain incorrect information. The correct information is here:&lt;/p&gt;
&lt;p&gt;It has been a very long time since&amp;nbsp;my last reply. My sincerest apology for the wait.&lt;/p&gt;
&lt;p&gt;I looked into it and here are the conclusions:&lt;/p&gt;
&lt;p&gt;Changing the crypto backend to Oberon will always result in a bigger&amp;nbsp;size than uECC. It is to the extent that the size of the bootloader will be too big to fit into the bootloader region. &lt;br /&gt;The default size is documented in &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_bootloader.html?cp=9_5_2_3_5_0_7#lib_bootloader_memory"&gt;the Memory&amp;nbsp;Layout section&lt;/a&gt;&amp;nbsp;of the Bootloader doc.&lt;/p&gt;
&lt;p&gt;Therefore,&amp;nbsp;if you change into the Oberon crypto backend, the memory layout, including the start address of the bootloader must be changed. This means that during the upgrade, there is a window of time&amp;nbsp;during the DFU process where&amp;nbsp;the data where the MBR expects the bootloader reset handler to be is overwritten/not correct.&lt;/p&gt;
&lt;p&gt;This is very risky when done on an in-field product, because a flash write failure or power failure can brick the device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Therefore, I don&amp;#39;t really recommend&amp;nbsp;changing the crypto backend to Oberon. The benefit is not worth this risk.&lt;/p&gt;
&lt;p&gt;I hope that is alright, since uECC is working for you now.&lt;/p&gt;
&lt;p&gt;Once again, I am very sorry about the long wait and the (deleted) wrong answer.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: switch uECC bootloader to oberon via DFU?</title><link>https://devzone.nordicsemi.com/thread/424607?ContentTypeID=1</link><pubDate>Tue, 09 May 2023 14:29:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19b572f8-0702-4606-9e78-80b920c33591</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Patrick,&lt;/p&gt;
&lt;p&gt;My apology for the long wait. Please know that I am still around. However, I am still recovering from the high loading time and still haven&amp;#39;t been able to look into it yet.&amp;nbsp;There is a holiday here next week, so it will be another high loading wave and some days off, but I will&amp;nbsp;try to get to this as soon as I can.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: switch uECC bootloader to oberon via DFU?</title><link>https://devzone.nordicsemi.com/thread/423055?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2023 16:44:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:787f83b7-88f2-42a5-b5eb-f66f0cbf3f55</guid><dc:creator>patjshan</dc:creator><description>&lt;p&gt;No Problem! in the meantime I have found the compiled uECC library files that the original bootloader was compiled with, and I have recompiled a new bootloader with these files in the nrf5 17.1.0 SDK and the new softdevice and application code, so this is no longer a pressing issue. I am however still curious if for whatever reason the in the future we need to make changes to the bootloader whether or not this type of update would be possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: switch uECC bootloader to oberon via DFU?</title><link>https://devzone.nordicsemi.com/thread/423014?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2023 13:37:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:722be3a2-f668-4aae-a4c8-3996bf70dec3</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Patrick,&lt;/p&gt;
&lt;p&gt;I am unfamiliar with DFU across SDK versions. I will need to read about it, and most likely need to&amp;nbsp;seek some internal help as well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I hope you can wait for a few days. On top of the time necessary, my team is facing high loading due to some unavailability, and&amp;nbsp;there is one holiday here on Monday next week.&lt;/p&gt;
&lt;p&gt;My apology for the inconvenience.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: switch uECC bootloader to oberon via DFU?</title><link>https://devzone.nordicsemi.com/thread/422840?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2023 17:27:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6fc4686-48f4-41cd-bcd3-8df61985067f</guid><dc:creator>patjshan</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;this is the response I get in nrf connect for desktop when I try to upload the OTA package containing the new softdevice and bootloader pair.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;2023-04-27T16:41:09.355Z ERROR DFU failed with error: When writing &amp;#39;EXECUTE&amp;#39; command to Control Point Characteristic of DFU Target: Operation code 4 (EXECUTE) failed on DFU Target. Result code 4 (INSUFFICIENT_RESOURCES).&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;the memory layout on the existing application is based on SDK 15.3.0 ble_app_buttonless example, and adjusted according to a devzone post that I can&amp;#39;t find right now but basically it said that the reserved_flash section needed to be shifted by 4kB in 15.3.0 so thats been done. I have the MBR, then the s132 softdevice ver 6.1.1, than my application code (about 100kB) then FDS data, then the bootloader and bootloader settings pages. beow is the example of what my flash placement file looks like&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;ProgramSection load=&amp;quot;no&amp;quot; name=&amp;quot;.reserved_flash&amp;quot; start=&amp;quot;$(FLASH_PH_START) + 0x1000&amp;quot; size=&amp;quot;$(FLASH_START)-$(FLASH_PH_START) - 0x1000&amp;quot; /&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The bootloader in the current application was compiled with uECC library but I&amp;#39;m having difficulty rebuilding the library on my new machine due to network security issues. Thus I am interested in recompiling a new bootloader with the Oberon library and also in moving to the latest nrf5 sdk 17.1.0 and ver 7.2.0 of the softdevice. I have a full image of the firmware compiled n the 17.1.0 SDK that runs fine when all flashed to the chip together and 17.1.0 bootloader is flashed it can perform an OTA (I uploaded the same-version application code via OTA to it and it went through). Now I just need to figure out what order of updates need to be made to take my existing application code that uses the s132 ver 6.1.1 and bootloader with uECC library and eventually end up with the s132 ver 7.2.0, the application code that is compatible with the new version of softdevice, and the bootloader based on the Oberon library.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: switch uECC bootloader to oberon via DFU?</title><link>https://devzone.nordicsemi.com/thread/421522?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2023 13:34:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87059353-da3a-4394-b5b2-0ddabc73171e</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi patjshan,&lt;/p&gt;
&lt;p&gt;Do you have:&lt;/p&gt;
&lt;p&gt;- The memory layout is in your&amp;nbsp;existing devices?&lt;br /&gt;- The start address and size of the application and bootloader&amp;nbsp;on the existing devices?&lt;br /&gt;- The start address and size of the new bootloader built with the Oberon library?&lt;/p&gt;
&lt;p&gt;Could you please confirm if the DFU process failed with&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__sdk__nrf__dfu__req__handler.html#gga654d8446f2996253016f7c7713124094af54a2806ebcbd3d5b5675fe3d9a7d5c5"&gt;NRF_DFU_RES_CODE_INSUFFICIENT_RESOURCES&lt;/a&gt;&amp;nbsp;at &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_dfu_transport.html?cp=9_1_3_5_2_0_1#lib_dfu_transport_op_create"&gt;the Create Request step&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>