<?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 Fails on nRF5280, loop on nRF Connect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94375/dfu-fails-on-nrf5280-loop-on-nrf-connect</link><description>Hi, 
 I&amp;#39;m developing on the current setup: 
 
 nRF52833 DK, emulating an nRF52820. 
 Soft Device 113 version 7.2.0 
 SDK 17.1.0, with updated MDK (see link ) 
 IAR EW ARM 9.30 
 
 I&amp;#39;m having issues with the DFU on my project. I included the secure bootloader</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Dec 2022 13:08:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94375/dfu-fails-on-nrf5280-loop-on-nrf-connect" /><item><title>RE: DFU Fails on nRF5280, loop on nRF Connect</title><link>https://devzone.nordicsemi.com/thread/398976?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2022 13:08:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe91878a-31ba-4106-a727-785cc6339a2c</guid><dc:creator>Federico</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Found it. It was the bootloader linker file, there was not enough RAM allocated for the SoftDevice. Since I migrated the project from a S112 example, the linker was set for that amount of RAM:&lt;/p&gt;
&lt;p&gt;define symbol __ICFEDIT_region_RAM_start__&amp;nbsp; &amp;nbsp;= 0x200022c8;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After migrating to S113, it appears that amount of RAM is not enough. So I changed it to what the secure_bootloader example has for this SoftDevice (which is exactly what&amp;nbsp;nrf_sdh_ble_enable returns). Now DFU is successful. As the bootloader project doesn&amp;#39;t have a log, I didn&amp;#39;t see the error as you&amp;#39;d see in app when starting the SoftDevice fails.&lt;/p&gt;
&lt;p&gt;The new config is:&lt;/p&gt;
&lt;p&gt;define symbol __ICFEDIT_region_RAM_start__&amp;nbsp; &amp;nbsp;= 0x20002608; /* This is taken from calling nrf_sdh_ble_enable(), calculated at runtime by the SoftDevice. */&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Fails on nRF5280, loop on nRF Connect</title><link>https://devzone.nordicsemi.com/thread/398950?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2022 11:33:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8b0b56a-cbe2-410e-b4f1-02db9d9c90c9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Federico,&amp;nbsp;&lt;br /&gt;I don&amp;#39;t&amp;nbsp; see any reason it shouldn&amp;#39;t work. Have you tried to do the change with a normal application (not bootloader) and check if it works ? (only softdevice + bootloader)&amp;nbsp;&lt;br /&gt;You may want to try testing with the bootloader debug version and step into the code to see what caused the issue.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Please make sure you make an full chip erase before testing there is a chance that there was something in the UICR that has not been erased from the previous bootloader.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Fails on nRF5280, loop on nRF Connect</title><link>https://devzone.nordicsemi.com/thread/398845?ContentTypeID=1</link><pubDate>Fri, 02 Dec 2022 21:17:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87bee57d-9073-46be-98c6-004f9de733a4</guid><dc:creator>Federico</dc:creator><description>&lt;p&gt;Hi Hung, thanks for answering both questions. Let&amp;#39;s try to solve this one first.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried what you said in step 1: &amp;quot;&lt;span&gt;Flash only softdevice + bootloader. Try to do DFU update a ble_app_hrs for example&lt;/span&gt;&amp;quot;.&lt;/p&gt;
&lt;p&gt;I did this with&amp;nbsp;&amp;quot;ble_app_uart_pca10100_s112&amp;quot; instead of ble_app_hrs because it supports PCA10100e. For the bootloader image, I compiled the secure_bootloader example &amp;quot;secure_bootloader_ble_s112_pca10100e&amp;quot;. This worked without issue. I flashed it, saw the device as DFUTarg, ran the DFU and ended up with a device &amp;quot;Nordic UART&amp;quot;. So that worked.&lt;/p&gt;
&lt;p&gt;I then tried to do the same thing with my&amp;nbsp;bootloader hex file but it didn&amp;#39;t work. I can&amp;#39;t see the device as DFUTarg. This is very&amp;nbsp;interesting, because my bootloader code basically has zero differences from the&amp;nbsp;&amp;nbsp;example &amp;quot;&lt;span&gt;secure_bootloader_ble_s112_pca10100e&amp;quot;. The two differences that I can see are: the public key and the soft device. I changed the softdevice to 113 instead of 112 to have DLE. The way I did this was to change the includes in the preprocessor from 112 to 113, change the define from S112 to S113 and swap the soft device binary. Is this correct? Or did I miss something? Could this be the issue?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;EDIT: I went back to SoftDevice 112 on my bootloader code and now I can see it as DFUTarg, so this seems like the obvious reason, I must&amp;#39;ve forgotten something when changing the soft devices. What do I need to do to change the &amp;quot;secure_bootloader_ble_s112_pca10100e&amp;quot; example to be able to run with S113? Keep in mind I&amp;#39;m using the 52833DK emulating a 52820.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Fails on nRF5280, loop on nRF Connect</title><link>https://devzone.nordicsemi.com/thread/398326?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2022 12:29:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee4ef1be-55ca-43b7-92a6-88bae7f7936f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Federico,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;It seems that the application managed to jump to the bootloader but then the bootloader rejected the DFU image:&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/pastedimage1669811160090v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We need to check why it doesn&amp;#39;t want to do DFU update.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My suggestion to test is not to start with the buttonless example.&amp;nbsp;&lt;br /&gt;Please try the following:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. Flash only softdevice + bootloader. Try to do DFU update a ble_app_hrs for example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. Flash softdevice + bootloader + ble_app_hrs + bootloader setting. Create a new image of ble_app_hrs and create a new DFU .zip file with incremented firmware version. Try to do DFU to update to this new ble_app_hrs via FOTA. You can enter DFU mode by holding a button when reset.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3. Flash softdevice + bootloader + buttonless application + bootloader setting. Create a new image of buttonless application with new firmware version and create a .zip file. Do DFU update.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>