<?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 bootloader prevents to load app hex</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27378/dfu-bootloader-prevents-to-load-app-hex</link><description>Hi all, 
 I am on the DK-52 with the SDK 13.0.0. 
 After erasing the device, I follow this steps: 
 
 
 upload the softdevice 
 nrfjprog --reset --program s132_nrf52_4.0.2_softdevice.hex --family NRF52 
 
 
 upload the bootloader (bootloader_secure_ble</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Nov 2017 14:34:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27378/dfu-bootloader-prevents-to-load-app-hex" /><item><title>RE: DFU bootloader prevents to load app hex</title><link>https://devzone.nordicsemi.com/thread/108127?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2017 14:34:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffcd42e6-1fca-4ee2-8907-5fdeda6d1e3e</guid><dc:creator>fab</dc:creator><description>&lt;p&gt;Hi Hung Bui,
Thank you, you saved my day. Generating the bootloader settings made the trick. I am now able to upload the app firmware both from nrfjprog and form my mobile app.&lt;/p&gt;
&lt;p&gt;Maybe others are interested in the procedure that worked for me:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;1) Erase the device: nrfjprog -e --family NRF52 
2) Generate the bootloader settings: nrfutil settings generate --family NRF52 --application pollen_device.hex --application-version 0x01 --bootloader-version 0 --bl-settings-version 1 bootloader_setting.hex
3) Upload the settings: nrfjprog --program bootloader_setting.hex --family NRF52 
4) Upload the bootloader: nrfjprog --reset --program nrf52832_xxaa_s132.hex --family NRF52 
5) Upload the softdevice: rfjprog --reset --program s132_nrf52_4.0.2_softdevice.hex --family NRF52
6) Upload the app firmware: nrfjprog --reset --program s132_nrf52_4.0.2_softdevice.hex --family NRF52
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader prevents to load app hex</title><link>https://devzone.nordicsemi.com/thread/108126?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 12:02:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ed1f59f-3db2-4ff6-84a5-50491bc798df</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not so sure about the python issue, make sure you use python 2.7 also you can try using nRFConnect application to do DFU.&lt;/p&gt;
&lt;p&gt;If you plan to merge application, bootloader, softdevice, you can follow my guide &lt;a href="https://devzone.nordicsemi.com/blogs/1085/getting-started-with-nordics-secure-dfu-bootloader/"&gt;here&lt;/a&gt; at appendix 1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader prevents to load app hex</title><link>https://devzone.nordicsemi.com/thread/108125?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 08:46:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5361259e-06fd-4f4a-9703-365ab5981505</guid><dc:creator>fab</dc:creator><description>&lt;p&gt;Anyone? I stuck here. Is there any way to upload the app firmware once the bootloader is loaded without switching the bootloader in DFU mode? This is not a trivial question. I need a procedure to upload bootloader, softdevice and my own firmware for mass production and using DFU is not an option.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader prevents to load app hex</title><link>https://devzone.nordicsemi.com/thread/108121?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 17:39:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:565a2c00-e227-4a2d-ba94-e6d833960ce7</guid><dc:creator>fab</dc:creator><description>&lt;p&gt;Thanks, Aaron. As far as I understand, I cannot upload the app firmware using the nfrjprog anymore but I have to use the nrfutil. I have prepared the pkg file as usual:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfutil  pkg generate --hw-version 52 --sd-req 0x98 --application-version 0x01 --application pollen_device.hex --key-file priv.pem pollen_device_fw.zip. 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then I have tried: &lt;code&gt;nrfutil dfu ble -pkg pollen_device_fw.zip -ic NRF52&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;but I get this error: Fatal Python error: PyThreadState_Get: no current thread Abort trap: 6. I am on macOS 10.13.1. Is this the right procedure? Any suggestion?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader prevents to load app hex</title><link>https://devzone.nordicsemi.com/thread/108124?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 17:17:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edc74f93-0849-4b79-8fc6-6b90ec3e006b</guid><dc:creator>Aaron</dc:creator><description>&lt;p&gt;If you have a bootloader, the bootloader checks your app against the bootloader settings.  You need to flash updated settings when you update the app or else the bootloader won&amp;#39;t switch to it.  You need the nrfutil utility downloaded from Nordic, and &amp;quot;nrfutil settings generate ...&amp;quot; will generate a hex file to flash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader prevents to load app hex</title><link>https://devzone.nordicsemi.com/thread/108123?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 15:32:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dadaff2f-f31f-4535-a26d-43f0e94c614d</guid><dc:creator>fab</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;Thank you. You are right, my family option is wrong. It should be NRF52. Now my app firmware uploads correctly.
Unfortunately, the device remains in DFU mode and the app doesn&amp;#39;t start even turning the device off and then on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader prevents to load app hex</title><link>https://devzone.nordicsemi.com/thread/108122?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 14:56:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2892391-8d06-48d7-8cdf-c46c22749dc0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Fab,&lt;/p&gt;
&lt;p&gt;Shouldn&amp;#39;t the family be NRF52 instead of NRF5 ?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfjprog --reset --program pollen_device.hex --sectorerase --family NRF52
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>