<?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>secure bootloader switch to application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17552/secure-bootloader-switch-to-application</link><description>Hi, 
 I&amp;#39;m trying to program the bootloader together with an application+SD132 3.0 on the nrf52, but my device gets stuck with the bootloader when I finish programming it. 
 The steps I&amp;#39;ve done are those: 
 1-Program the SD132 3.0.
2-Prepare the settings</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Nov 2016 15:41:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17552/secure-bootloader-switch-to-application" /><item><title>RE: secure bootloader switch to application</title><link>https://devzone.nordicsemi.com/thread/67489?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2016 15:41:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75ee4405-0669-4f1f-a0d4-51317d0689a2</guid><dc:creator>vea45</dc:creator><description>&lt;p&gt;I know but your server was returning an error when I was trying to edit it... Your bootloader (the precompiled one) with my app doesn&amp;#39;t work. I&amp;#39;m going to send you both files.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: secure bootloader switch to application</title><link>https://devzone.nordicsemi.com/thread/67488?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2016 15:23:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d17c5c9-9b79-4a0e-a167-e8458bcc5ec2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;You can edit your question to add image instead of creating an answer.&lt;/p&gt;
&lt;p&gt;I assume you have played with the bootloader debug and the default test image and had no issue ?&lt;/p&gt;
&lt;p&gt;Instead of testing with your application, if you test with a example in the SDK would it work ?&lt;/p&gt;
&lt;p&gt;If possible can you provide us your app_kiasu.zip and the bootloader ? You can send it via PM or via the private support portal MyPage on our website.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: secure bootloader switch to application</title><link>https://devzone.nordicsemi.com/thread/67487?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2016 15:06:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f56b6e5-1f7c-485c-b7e6-8d4e12c73e3a</guid><dc:creator>vea45</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/IMG_5F00_8122.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;This is the error.
The steps I followed in more detail:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Erase chip and Program SD 132 3.0.&lt;/li&gt;
&lt;li&gt;Create a pair of keys with nrfutil: the public key is on the bootloader_secure project folder &amp;quot;dfu_public_key.c&amp;quot;, and I recompile the bootloader with this key (bootloader_debug start: 0x73000, size 0x0B000).&lt;/li&gt;
&lt;li&gt;With the private key I create a dfu package using nrfutil and this command: &amp;quot;nrfutil pkg generate --debug-mode --application my_app.hex --key-fileprivate.pem app_kiasu.zip&amp;quot;&lt;/li&gt;
&lt;li&gt;Now I create the bootloader settings with nrfutil : &amp;quot;nrfutil settings generate --family NRF52 --application my_ app.hex --application-version 3 --bootloader-version 2 --bl-settings-version 1 settings.hex&amp;quot;&lt;/li&gt;
&lt;li&gt;Use mergehex to merge the bootloader and settings.hex and then I program the merged bootloader with nrfGo.&lt;/li&gt;
&lt;li&gt;I load the app_kiasu.zip file to my iphone and using the app I try to perform the DFU.&lt;/li&gt;
&lt;li&gt;The iPhone app detects my board in DFU and connects to it... The transmission starts but fails at 10% aprox.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note: my bootloader have some changes:uses the internal lowfreq RC oscilator, the &amp;quot;buttons_init&amp;quot; function is commented and the bluetooth advertising timeout is 30 sec.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: secure bootloader switch to application</title><link>https://devzone.nordicsemi.com/thread/67483?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2016 14:41:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd212658-9c2a-4e54-adee-7f25339634b9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Vea: please describe the issue with more detail, screenshot, and step you did to get to that error. I can&amp;#39;t give any advice with just the &amp;quot;Operation not permitted&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: secure bootloader switch to application</title><link>https://devzone.nordicsemi.com/thread/67485?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2016 09:20:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41332248-4e1b-418a-b446-932fd4d0d41e</guid><dc:creator>vea45</dc:creator><description>&lt;p&gt;Well It was a problem with the size... I played with the test package dfu_hrm application and the .hex bootloader that is provided with the examples and both work perfectly. My bootloader was set to start at 0x78000, but the size and start position of the bootloader_debug are different from the non debug version, now this is fixed (bootloader start: 0x73000, size: 0x0B000, app start: 0x1F000, size: 0x54000). Now the error that shows the app from the iphone is &amp;quot;Operation not permitted&amp;quot;...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: secure bootloader switch to application</title><link>https://devzone.nordicsemi.com/thread/67484?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2016 08:02:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2cd41d0-a6a3-4f98-99bb-9add0c73db59</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Could you take a screenshot ? Also, do you have same problem when testing with the test image we provided in the SDK ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: secure bootloader switch to application</title><link>https://devzone.nordicsemi.com/thread/67482?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2016 14:36:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c862f8ba-a88d-4345-8b88-24cd12947bc0</guid><dc:creator>vea45</dc:creator><description>&lt;p&gt;Hi Hung,
I followed those instructions I basically copy-pasted the commands changing the filenames, also I added the private key to the package and the public to the bootloader... Now I tryied to DFU the chip with my iphone and nrfTools but I get an &amp;quot;Insufficient resources&amp;quot; error. Any ideas?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: secure bootloader switch to application</title><link>https://devzone.nordicsemi.com/thread/67486?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2016 13:07:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d938fcb-2c30-4114-b5dc-dd8f2dda1f8f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi vea,&lt;/p&gt;
&lt;p&gt;Could you give some more information about the  &amp;quot; app+settings+bootloader file&amp;quot; ? Have you followed &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.tools/dita/tools/nrfutil/nrfutil_settings_generate_display.html?cp=5_4_6"&gt;this instruction&lt;/a&gt; to generate the file ?&lt;/p&gt;
&lt;p&gt;One thing you can do is to try reading the flash out from the chip and compare it with when you do the application DFU update normally (program the softdevice+bootloader and DFU the application )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>