<?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>SDK 17 DFU upgrade in application over serial transport fails</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63511/sdk-17-dfu-upgrade-in-application-over-serial-transport-fails</link><description>Hi Nordic Team, 
 I am trying DFU upgrade in application over serial transport. 
 Same as mentioned in nRF_SDK_15.3.0_background_dfu_3 example I got from one of the discussion thread. 
 While I have been successful in getting it working with SDK 15.3</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jul 2020 09:08:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63511/sdk-17-dfu-upgrade-in-application-over-serial-transport-fails" /><item><title>RE: SDK 17 DFU upgrade in application over serial transport fails</title><link>https://devzone.nordicsemi.com/thread/259382?ContentTypeID=1</link><pubDate>Fri, 10 Jul 2020 09:08:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:177ab60a-43c8-4469-ad5b-4dfeb97787bb</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Shishir,&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t just copy an example from one SDK to another. You need to port it. Please see the porting guides in the release notes of the Major SDK releases between 15.3.0 and 17.0.0. Among other things, you need to update the softdevice headers, and there are some softdevice API changes. I can&amp;#39;t compile the 15.3.0 projects in SDK17. If you have already ported it, I suggest that you upload the ported version instead of the 15.3.0 version.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t do this job for you. If you find it hard to port, I suggest you start by just copying the main.c file and your custom files, from 15.3.0 to 17.0.0 and try to compile. See what changes you need to do from there.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 17 DFU upgrade in application over serial transport fails</title><link>https://devzone.nordicsemi.com/thread/259253?ContentTypeID=1</link><pubDate>Thu, 09 Jul 2020 14:44:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5247b7b6-7429-40df-9390-fb1afca9c224</guid><dc:creator>Shishir</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Call to nrf_dfu_flash_erase() never returns. It goes into hard fault I guess.&lt;/p&gt;
&lt;p&gt;This call is not from bootloader but from sample application&amp;nbsp;&lt;span&gt;ble_app_hrs_w_serial_dfu which someone named vidar from your team created to show case background DFU functionality&amp;nbsp;with serial transport.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;ll try to upload my code post removing my own project specific code first.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Other&amp;nbsp;simpler way can be if you simply take application and bootoader code from example folder of below link and copy into SDK 17 at exactly same location and give it a try.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-c39136cb1d7c4b7bad35f35fd7d24c96/nRF_5F00_SDK_5F00_15.3.0_5F00_background_5F00_dfu_5F00_3.zip"&gt;https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-c39136cb1d7c4b7bad35f35fd7d24c96/nRF_5F00_SDK_5F00_15.3.0_5F00_background_5F00_dfu_5F00_3.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cheers,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Shishir&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 17 DFU upgrade in application over serial transport fails</title><link>https://devzone.nordicsemi.com/thread/259246?ContentTypeID=1</link><pubDate>Thu, 09 Jul 2020 14:28:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d54f5a3-5a79-417a-bab6-e935a122babd</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What does nrf_dfu_flash_erase() return? Do you have the possiblilty to debug? We are a bit short on staffing due to summer holidays in Norway, so I can&amp;#39;t dig into your project right now.This call is from your bootloader project, right? Not the application running buttonless_dfu or something?&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 17 DFU upgrade in application over serial transport fails</title><link>https://devzone.nordicsemi.com/thread/259139?ContentTypeID=1</link><pubDate>Thu, 09 Jul 2020 09:59:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe9f727f-1908-4b37-8ef2-c1919bc10215</guid><dc:creator>Shishir</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am using complete example from link below.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/46994/background-dfu-application-source-code"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/46994/background-dfu-application-source-code&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-c39136cb1d7c4b7bad35f35fd7d24c96/nRF_5F00_SDK_5F00_15.3.0_5F00_background_5F00_dfu_5F00_3.zip"&gt;https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-c39136cb1d7c4b7bad35f35fd7d24c96/nRF_5F00_SDK_5F00_15.3.0_5F00_background_5F00_dfu_5F00_3.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;as per the above thread I am using secure_bootloader example and&amp;nbsp;ble_app_hrs_w_serial_dfu application example.&lt;/p&gt;
&lt;p&gt;As it is withe thr SDK 15.3 it works just fine for me.&lt;/p&gt;
&lt;p&gt;But when tried to take same thing to SDK 17.0.0 it fails at location I mentioned earlier.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It fails/code crash in the code nrf_dfu_settings.c --&amp;gt; settings_write --&amp;gt; nrf_dfu_flash_erase.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In debug mode&amp;nbsp;execution never comes out of&amp;nbsp;nrf_dfu_flash_erase() function. When I pause execution it stops at&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; .thumb_func&lt;br /&gt; .weak SVC_Handler&lt;br /&gt;SVC_Handler:&lt;br /&gt; b .&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cheers,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Shishir&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 17 DFU upgrade in application over serial transport fails</title><link>https://devzone.nordicsemi.com/thread/259022?ContentTypeID=1</link><pubDate>Wed, 08 Jul 2020 14:36:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5916761-53c2-4cbe-82c7-bc8e05b755d6</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Shishir,&lt;/p&gt;
&lt;p&gt;What bootloader were you using in SDK15.3.0 for background DFU?&lt;/p&gt;
&lt;p&gt;I have no idea what this bootloader looks like, so I don&amp;#39;t know why it is not working.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]It fails/code crash in the code nrf_dfu_settings.c --&amp;gt; settings_write --&amp;gt; nrf_dfu_flash_erase. Trying to erase location 0xff000 I believe.[/quote]
&lt;p&gt;&amp;nbsp;How do you know that it crashes there? And what do you mean by crashing? Do you see it in the error handler?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>