<?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 not jumping to Application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17670/dfu-not-jumping-to-application</link><description>Hi, 
 I have a DFU issue. Using Visual GDB IDE and gcc tool chain. 
 I Can get my signed application generated into zip then DFU it into the device which all works.
Once I get that far I expect it to jump to the application.
It passes CRC etc then</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Nov 2016 08:55:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17670/dfu-not-jumping-to-application" /><item><title>RE: DFU not jumping to Application</title><link>https://devzone.nordicsemi.com/thread/67980?ContentTypeID=1</link><pubDate>Wed, 16 Nov 2016 08:55:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:308258b9-75de-4dca-ae5c-08cc32b84e19</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@mcau1:&lt;/p&gt;
&lt;p&gt;When you update the softdevice, the application will be erased to get space for the softdevice image. You need to re-update your application. You can have a look at my presentation &lt;a href="https://devzone.nordicsemi.com/blogs/683/a-presentation-on-how-nrf51-dfu-works/"&gt;here&lt;/a&gt;. It&amp;#39;s for older DFU bootloader but the principles are the same.&lt;/p&gt;
&lt;p&gt;Edit: Sorry for the buttonless part, It was for another case. It&amp;#39;s possible to update the softdevice and application at once. They won&amp;#39;t be send in the same DFU process, but the DFU master will try to update the softdevice first and then update the application after that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU not jumping to Application</title><link>https://devzone.nordicsemi.com/thread/67982?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2016 23:40:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bf6a8aa-90d1-4243-9448-145a76a2586f</guid><dc:creator>mcau1</dc:creator><description>&lt;p&gt;I tried creating an application plus softdevice and it seemed to work use this command
rfutil pkg generate --hw-version 52 --sd-req 0x8C --softdevice SD.hex --application-version 4 --application ble_det_blue_v2_AppOnly.hex --key-file Key2.pem  DetBlueSD.zip
However I am not sure that the softdevice updated or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU not jumping to Application</title><link>https://devzone.nordicsemi.com/thread/67981?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2016 23:29:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f609693-7f67-4b32-aa95-243d64919890</guid><dc:creator>mcau1</dc:creator><description>&lt;p&gt;Ok I did not know this detail. On the Visual GDB the default is to generate the output with the softdevice in the one hex file.
After removing the softdevice from the hex file it all worked well.
If I want to update the softdevice to generate the package do I use this command?
nrfutil pkg generate --hw-version 52 --sd-req 0x8C --softdevice SD.hex --key-file Key2.pem  DetBlueSD.zip
(It did not seem to work, It generated a package but after uploading it my device was stuck in bootloader mode which makes me think that I corrupted the application.) Also can I update the application and the softdevice all at once?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU not jumping to Application</title><link>https://devzone.nordicsemi.com/thread/67979?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2016 13:53:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a52eb84-fb61-4ddc-8a5d-039c2a91903c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@mcau1: What do you have in the blinky.hex ? Seems that you merge the softdevice with the application ?&lt;/p&gt;
&lt;p&gt;&amp;quot;Application&amp;quot; means application, not application + softdevice.&lt;/p&gt;
&lt;p&gt;The blinky.bin is not encrypted, it simply binary file, generated from the .hex file, since it&amp;#39;s binary you can&amp;#39;t &amp;quot;read&amp;quot; it using text editor.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU not jumping to Application</title><link>https://devzone.nordicsemi.com/thread/67976?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2016 21:30:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5adbb30d-153c-46a8-ae3c-857d32fd5b8e</guid><dc:creator>mcau1</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Stuff.zip"&gt;Stuff.zip&lt;/a&gt;
Hi,
I put the blinky project in here also the package and the hex for the bootloader.
The bootloader does a whole lot of LED flashing which is to help me debug it but otherwise is pretty straight and standard.
It runs on the PCA10040 board.
The Blinky project works but it does the same as my project when I bootload it in.
I used this command line to generate the package.
nrfutil pkg generate --hw-version 52 --sd-req 0x8C --application-version 4 --application Blinky.hex --key-file Key2.pem  BlinkyDFU.zip
The bootloader is compiled with the same key.
As you can easily see the binary in the package is encrypted or corrupted.
Really appreciate any help on this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU not jumping to Application</title><link>https://devzone.nordicsemi.com/thread/67971?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2016 09:45:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7764d93b-18ae-4601-8be8-2e2c92954957</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I don&amp;#39;t think the binary would be encrypted. Have you double check  ? You can use a hextobin.exe or fromelf.exe&lt;/p&gt;
&lt;p&gt;I would suggest you to test with the blinky example. If you can reproduce the issue, you can send me your .hex, .zip and the bootloader to analyse.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU not jumping to Application</title><link>https://devzone.nordicsemi.com/thread/67978?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2016 08:10:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e3ebc9d-109d-4b59-8788-d6a76a4dd452</guid><dc:creator>mcau1</dc:creator><description>&lt;p&gt;It seems like when I create the package it takes the hex input file and creates 3 files in the zip. 1 file is Binary (seems to be encrypted, I thought it was just going to be signed.) This is done by nrfutil.
However after bootloading when I readback the device I see the encrypted data not decrypted.
Is the problem nrfutil call or the bootloader?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU not jumping to Application</title><link>https://devzone.nordicsemi.com/thread/67977?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2016 03:27:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d02a49a1-db27-45ea-9e26-5b5be89cebe4</guid><dc:creator>mcau1</dc:creator><description>&lt;p&gt;Not sure why but it seems like the actual address of the reset handler is corrupted somehow.
If I have a look at what my program wants at address 0x1f004 I see 0x12911 in the file generated by my compiler but after programming the package this has changed to an out of bounds 0x1exxx value.
Not sure if it is the bootloader or nrfutil or what is causing this but will get to the bottom of it soon.
Still appreciate any help if someone else has encounted the same issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU not jumping to Application</title><link>https://devzone.nordicsemi.com/thread/67975?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 10:14:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88a4637e-4bed-4fbd-87f6-dabc93e6344c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@mcau1: Have you try to run your application in debug mode and see if the PC actually jump to the reset handler in your application ?&lt;/p&gt;
&lt;p&gt;You can also try to test with some simple example for example blinky project. Just to check if the bootloader manages to branch to the application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU not jumping to Application</title><link>https://devzone.nordicsemi.com/thread/67974?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 08:48:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:992ff2de-6a8d-4acf-8255-41a6af36046a</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;OK
Your tags show as 130 110 dfu ota not S132&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU not jumping to Application</title><link>https://devzone.nordicsemi.com/thread/67973?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 07:38:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ff0aa04-36c9-43ee-95f0-65bd637ecbdf</guid><dc:creator>mcau1</dc:creator><description>&lt;p&gt;I am using the SDK12.1 the softdevice version is listed as S132 in the toolchain but not sure if that is correct.
According to this page
&lt;a href="https://developer.nordicsemi.com/nRF5_SDK/nRF51_SDK_v8.x.x/doc/8.1.0/s130/html/a00102.html"&gt;developer.nordicsemi.com/.../a00102.html&lt;/a&gt;
The application can start at 0x18000 however it seems that the softdevice I am using goes up to about 0x1e740 so the address I have does make sense.&lt;/p&gt;
&lt;p&gt;I also checked with readback that the application is loaded which it is.&lt;/p&gt;
&lt;p&gt;Also that the softdevice is still intact. Still not sure why the code does not run at this point.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU not jumping to Application</title><link>https://devzone.nordicsemi.com/thread/67972?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 05:19:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a88c6e28-d621-4f0c-9e51-896012d5d8ca</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Which SDK version are you using ? SDK 12.01 ? SD 2.x ?&lt;/p&gt;
&lt;p&gt;Do you mean that you code is jumping to the application at address 0x1f000 ?
i.e is that were you loaded your application binary (this isnt the normal address for S130 binaries is it ?)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>