<?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>Package for BLE Secure DFU bootloader step by step guide for S132 PCA10040</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32686/package-for-ble-secure-dfu-bootloader-step-by-step-guide-for-s132-pca10040</link><description>Hi There, 
 I was trying to understand the step to create a test app for dfu bootloader update via BLE for PCA10040. Below is the documentation I read. 
 http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v14.2.0%2Fble_sdk_app_dfu_bootloader</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Jan 2019 14:16:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32686/package-for-ble-secure-dfu-bootloader-step-by-step-guide-for-s132-pca10040" /><item><title>RE: Package for BLE Secure DFU bootloader step by step guide for S132 PCA10040</title><link>https://devzone.nordicsemi.com/thread/163783?ContentTypeID=1</link><pubDate>Thu, 03 Jan 2019 14:16:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e1a223d-8ac8-4b74-b87b-b81117557c0d</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Could you please open a new devzone case?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Package for BLE Secure DFU bootloader step by step guide for S132 PCA10040</title><link>https://devzone.nordicsemi.com/thread/163621?ContentTypeID=1</link><pubDate>Thu, 03 Jan 2019 03:18:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:336523b1-3faf-420c-8a1c-0ba7b045497e</guid><dc:creator>tBStar</dc:creator><description>&lt;p&gt;I don&amp;#39;t have an external crystal, can it be this ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Package for BLE Secure DFU bootloader step by step guide for S132 PCA10040</title><link>https://devzone.nordicsemi.com/thread/163345?ContentTypeID=1</link><pubDate>Wed, 02 Jan 2019 04:40:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a84993ec-fdd4-4748-8b1b-60a676224cd0</guid><dc:creator>tBStar</dc:creator><description>&lt;p&gt;&lt;span&gt;Bj&amp;oslash;rn&amp;nbsp;,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am having the same issue where the bootloader doesn&amp;#39;t advertise, the only difference is that I am using a Raytac&amp;nbsp;MDBT42Q&amp;nbsp;nRF52832 module on a custom board (without leds). The set up I have is functional because when I flash the Espruino for MDBT42Q&amp;nbsp;firmware, it works. So I am missing something but can&amp;#39;t figure it out.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;I am using GCC and SES to build projects and for flashing, I am using Jlink, nRFgo and nrfjprog.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrfjprog version: 9.7.3&lt;br /&gt;JLinkARM.dll version: 6.40&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nRF SDK 15.2&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;SD&amp;nbsp;s132_nrf52_6.1.0_softdevice.hex&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Do I need to adjust the bootloader project to bypass any check?&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: Package for BLE Secure DFU bootloader step by step guide for S132 PCA10040</title><link>https://devzone.nordicsemi.com/thread/127772?ContentTypeID=1</link><pubDate>Wed, 11 Apr 2018 09:17:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9b1f04c-29ea-4b23-8942-ff4513c3e42b</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;That&amp;#39;s weird. It should work out of the box.&amp;nbsp;Did you generate the hex file that you uploaded&amp;nbsp;(i.e. secure_dfu_ble_s132_pca10040.hex) with segger embedded studio. I tested that file &amp;amp; it worked out of the box.&lt;/p&gt;
&lt;p&gt;Another thing you can do is to compare the&amp;nbsp;flash memory of the nrf52 dk when you program with segger embedded studio &amp;amp; using nrfjprog.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can read the memory by using the following command:&lt;/p&gt;
&lt;p&gt;nrfjprog --memrd 0x000000 --n 0x080000 &amp;gt; test.txt&lt;/p&gt;
&lt;p&gt;Check how much flash memory your chip has at &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/memory.html?cp=2_1_0_7#memory" target="_blank" rel="noopener noreferrer"&gt;this link&lt;/a&gt;. If you have the 512 kB version, check &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk52.v0.9.1%2Fbledfu_memory.html" target="_blank" rel="noopener noreferrer"&gt;this link&lt;/a&gt;. There, you can see that you want to read 0x000000 to 0x080000. That is why the command above looks like it does. The last part of the command writes the content to a text file instead of to the command window.&lt;/p&gt;
&lt;p&gt;Then, you can open up the two txt files using Notepad++ for example, go to Plugins -&amp;gt; Plugin Manager &amp;amp; download the Compare feature. Finally, you can compare the two text files &amp;amp; see if you notice any differences between the two files.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Bjørn Kvaale&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Package for BLE Secure DFU bootloader step by step guide for S132 PCA10040</title><link>https://devzone.nordicsemi.com/thread/127511?ContentTypeID=1</link><pubDate>Tue, 10 Apr 2018 00:18:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b7449ab-da3a-4311-9165-4b7e3dd28b14</guid><dc:creator>inghowe83</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/bjorn-kvaale"&gt;Bjørn Kvaale&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the update. I have check my jlink version. BLE DFUTarg still not working, do you think its caused by segger project compiler setting? I use the default &lt;span&gt;DFUTarg&amp;nbsp;&lt;/span&gt;project.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1523319316072v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Here is the programming step&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1523319406291v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;nrf Connect on my phone with BLE enable, no DFUTarg appear.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1523319719294v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Package for BLE Secure DFU bootloader step by step guide for S132 PCA10040</title><link>https://devzone.nordicsemi.com/thread/127339?ContentTypeID=1</link><pubDate>Mon, 09 Apr 2018 06:52:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0fc9870-e3fa-407e-8acc-0f60f476925f</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Just tested your hex file. I received a weird error when I flashed the softdevice with nrfjprog (ERROR: The file specified could not be open for read.). Where you able to flash the softdevice to your device with nrfjprog?&lt;/p&gt;
&lt;p&gt;The steps I took were: nrfjrprog --eraseall (erases all flash, including UICR)&lt;/p&gt;
&lt;p&gt;flash sdk 14.2 softdevice with nrf go studio&lt;/p&gt;
&lt;p&gt;nrfjprog --program secure_dfu_ble_s132_pca10040.hex --verify&lt;/p&gt;
&lt;p&gt;Then, LEDs 1 &amp;amp; 3 turned on, indicating that the device is in bootloader mode. The nrf52 dk also started advertising as DFUTarg on nrf connect, so it seems everything worked like it should. If you are having difficulties with this, it seems there might be something wrong with nrfjprog (like mentioned before, maybe you are using the wrong JLINK version).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Package for BLE Secure DFU bootloader step by step guide for S132 PCA10040</title><link>https://devzone.nordicsemi.com/thread/126944?ContentTypeID=1</link><pubDate>Thu, 05 Apr 2018 00:23:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8406a3f-c5af-46ab-b22f-2ca278962bae</guid><dc:creator>inghowe83</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/bjorn-kvaale"&gt;Bjørn Kvaale&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I can flash the hex now but the ble blinky cannot detected/appear if I flash using the generated hex file(it only works if I use Build and Run only). Mind help test out my generated hex file? Thanks&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/secure_5F00_dfu_5F00_ble_5F00_s132_5F00_pca10040.hex"&gt;devzone.nordicsemi.com/.../secure_5F00_dfu_5F00_ble_5F00_s132_5F00_pca10040.hex&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Package for BLE Secure DFU bootloader step by step guide for S132 PCA10040</title><link>https://devzone.nordicsemi.com/thread/126899?ContentTypeID=1</link><pubDate>Wed, 04 Apr 2018 14:58:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75c88476-7806-458d-b353-2e4ab756e723</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;&lt;a href="https://www.segger.com/downloads/jlink#J-LinkSoftwareAndDocumentationPack" target="_blank" rel="noopener noreferrer"&gt;By version&lt;/a&gt;, click on &amp;quot;older versions&amp;quot; &amp;amp; you should easily be able to find the correct Jlink to download.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Package for BLE Secure DFU bootloader step by step guide for S132 PCA10040</title><link>https://devzone.nordicsemi.com/thread/126732?ContentTypeID=1</link><pubDate>Wed, 04 Apr 2018 03:18:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4eb8b3a8-2cec-454f-a8eb-107b4e782213</guid><dc:creator>inghowe83</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/bjorn-kvaale"&gt;Bjørn Kvaale&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks. But where can I obtain&amp;nbsp;&lt;span&gt;Jlink v6.12a? The seggar website only provides the latest Jlink.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Package for BLE Secure DFU bootloader step by step guide for S132 PCA10040</title><link>https://devzone.nordicsemi.com/thread/126584?ContentTypeID=1</link><pubDate>Tue, 03 Apr 2018 07:27:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60ef9a14-eeac-46e7-af59-d33be181392d</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;&lt;span&gt;As stated in the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.tools/dita/tools/nrf5x_command_line_tools/nrf5x_nrfjprogexe.html?cp=5_1_3" target="_blank" rel="noopener noreferrer"&gt;Nordic Infocenter&lt;/a&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Important:&lt;/span&gt;&amp;nbsp;This version of the&amp;nbsp;&lt;span&gt;nrfjprog&lt;/span&gt;&amp;nbsp;executable has been developed and tested for SEGGER software, JLink_V612a. It will most likely work with other versions of the SEGGER software, but keep in mind that there could be major changes that break the compatibility.&lt;/p&gt;
&lt;p&gt;Could you try testing with Jlink v6.12 to see if that fixes the issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Package for BLE Secure DFU bootloader step by step guide for S132 PCA10040</title><link>https://devzone.nordicsemi.com/thread/126370?ContentTypeID=1</link><pubDate>Thu, 29 Mar 2018 03:26:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:645c03f7-5e02-4624-8574-312512fad100</guid><dc:creator>inghowe83</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/bjorn-kvaale"&gt;Bjørn Kvaale&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here is my reply.&lt;/p&gt;
&lt;p&gt;Are you getting any error messages when you run the nrfjprog commands?&lt;/p&gt;
&lt;p&gt;Ans: No errors&lt;/p&gt;
&lt;p&gt;Or does everything build correctly, only that the bootloader does not advertise?&lt;/p&gt;
&lt;p&gt;Ans: Yes my segger compiler output should build complete, the bootloader does not advertise. I have try to push button 4 and reset the PCA10040&lt;/p&gt;
&lt;p&gt;I&amp;#39;m guessing you remembered to compile the bootloader with the correct public key &amp;amp; used the built hex file in your second nrfjprog command, right?&lt;/p&gt;
&lt;p&gt;Ans: Yes, I followed the step in the blog to build and I replace the dfu_public_key and regenerate the private_key&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1522293983912v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Which version of nrfjprog are you using?&lt;/p&gt;
&lt;p&gt;Ans:&lt;/p&gt;
&lt;p&gt;nrfjprog version: 9.7.2&lt;br /&gt;JLinkARM.dll version: 6.22d&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Package for BLE Secure DFU bootloader step by step guide for S132 PCA10040</title><link>https://devzone.nordicsemi.com/thread/126081?ContentTypeID=1</link><pubDate>Tue, 27 Mar 2018 10:16:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ef22700-f58c-4dc0-91a2-5802db4187da</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;It should work with both segger embedded studio &amp;amp; using nrjprog. It seems like both of your nrfjprog commands are correct. Are you getting any error messages when you run the nrfjprog commands? Or does everything build correctly, only that the bootloader does not advertise? I&amp;#39;m guessing you remembered to compile the bootloader with the correct public key &amp;amp; used the built hex file in your second nrfjprog command, right?&lt;/p&gt;
&lt;p&gt;Which version of nrfjprog are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Package for BLE Secure DFU bootloader step by step guide for S132 PCA10040</title><link>https://devzone.nordicsemi.com/thread/125909?ContentTypeID=1</link><pubDate>Mon, 26 Mar 2018 08:11:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed5c7e61-5136-4f3c-b95e-bf1aec51976e</guid><dc:creator>inghowe83</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/bjorn-kvaale"&gt;Bjørn Kvaale&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I test the step and program the softdevices using the following command.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;nrfjprog --program C:\nRF5_SDK_14.2.0_17b948a\components\softdevice\s132\hex\s132_nrf52_5.0.0_softdevice.hex --verify --chiperase -f NRF52&lt;br /&gt;nrfjprog --program C:\nRF5_SDK_14.2.0_17b948a\examples\dfu\bootloader_secure_ble\pca10040\ses\Output\Release\Exe\secure_dfu_ble_s132_pca10040.hex --verify -f NRF52&lt;/p&gt;
&lt;p&gt;I notice the DfuTarg won&amp;#39;t appear if I use nrfjprog to program the bootloader, while the dfutarg works&amp;nbsp;for segger build and run option.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Package for BLE Secure DFU bootloader step by step guide for S132 PCA10040</title><link>https://devzone.nordicsemi.com/thread/125677?ContentTypeID=1</link><pubDate>Fri, 23 Mar 2018 09:01:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:647c7b1c-c8e4-43af-8be6-76e3014c52ae</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;I would suggest following the &lt;a href="https://devzone.nordicsemi.com/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader" target="_blank" rel="noopener noreferrer"&gt;secure dfu blog post&lt;/a&gt; that you posted at the bottom. It&amp;nbsp;works for your PCA10040 board. An easy way to get started is just by updating the application on the nrf52 PCA10040 DK. The application you could update could be the Blinky example located at:&amp;nbsp;nRF5_SDK_14.2.0_17b948a\examples\peripheral\blinky\pca10040\s132\ses\&lt;/p&gt;
&lt;p&gt;Just follow the blog post &amp;amp; finish steps A to D. At the end, you should notice that the LEDs on your board start blinking one after the other in a loop. Then, you know that the DFU has been successful.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>