<?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>nrf52833 s113 DFU Package generation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64093/nrf52833-s113-dfu-package-generation</link><description>Hi all :) , 
 
 I&amp;#39;m trying to create my new zip folder with new image. 
 I connect to my nrf52833, then i click on dfu button into nrfConnect mobil app. 
 I selec zip file option and strat uploading. Then the uC disconnect and restart. In the console</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Aug 2020 08:42:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64093/nrf52833-s113-dfu-package-generation" /><item><title>RE: nrf52833 s113 DFU Package generation</title><link>https://devzone.nordicsemi.com/thread/263142?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2020 08:42:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c57ce17f-6b8e-47cf-a7e3-23ca28a27705</guid><dc:creator>Vidar Berg</dc:creator><description>[quote user="Olfox"]App start only after uploading the zip file via dfu[/quote]
&lt;p&gt;&amp;nbsp;This indicates that the generated settings page doesn&amp;#39;t contain the correct information needed by the bootloader to validate and boot the application.&amp;nbsp; The settings page is updated by the bootloader when you do DFU, so that explains why that part works.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you referring to &amp;quot;boot-validation&amp;quot; when you say &amp;quot;signed image&amp;quot;, or that the update itself has to be signed? I would recommend to just disable boot validation when debugging, it makes it so that you don&amp;#39;t have to update the settings page every time you make a change to the application.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Generate and program settings page without app boot validation:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="bat"&gt;nrfutil settings generate^
  --app-boot-validation NO_VALIDATION^
  --family NRF52^
  --application-version-string &amp;quot;1.0.0&amp;quot;^
  --bootloader-version 1^
  --bl-settings-version 2^
  --application &amp;lt;APPLICATION&amp;gt;.hex^
  settings.hex
  
  nrfjprog --program settings.hex --sectorerase -r&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833 s113 DFU Package generation</title><link>https://devzone.nordicsemi.com/thread/262803?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 12:55:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fadce251-5155-4c2a-88bd-ca0c24165f2a</guid><dc:creator>Olfox</dc:creator><description>&lt;p&gt;Hi Vidar !&amp;nbsp; thank you. I have generated my setting page. without it i can t start my app. How to proceed to&amp;nbsp; have debug mode with ses when signed image is used please ? Is it possible ? Also i don t know why bootloader doesn t start my signed application when it is flashed at the same time than bootloader setting page and soft device. App start only after uploading the zip file via dfu.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833 s113 DFU Package generation</title><link>https://devzone.nordicsemi.com/thread/262746?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 09:49:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9366120f-1082-4606-84f0-82e38c360933</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Olfox"]So with the option i can at least upload, and appllication strt only after uploading with dfu ble and not when application has been written by wire.[/quote]
&lt;p&gt;&amp;nbsp;This option is required if you&amp;#39;ve built the bootloader with NRF_BL_APP_SIGNATURE_CHECK_REQUIRED enabled in sdk_config.h. And when you programing everything through the debug interface (Softdevice+bootloader+app) you also need to generate and program the settings page to inform the bootloader that a valid app exists. See &amp;quot;&lt;span&gt;&lt;a title="Generating and displaying bootloader settings" href="https://infocenter.nordicsemi.com/topic/ug_nrfutil/UG/nrfutil/nrfutil_settings_generate_display.html?cp=8_5_6"&gt;Generating and displaying bootloader settings&lt;/a&gt;&lt;/span&gt;&amp;quot; for steps to generate the settings page.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833 s113 DFU Package generation</title><link>https://devzone.nordicsemi.com/thread/262416?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2020 13:04:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f276689-e62f-4da5-9735-766f8b812191</guid><dc:creator>Olfox</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;&amp;nbsp;thanks for the reply,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;here is the command i&amp;#39;have used to generate the zip:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;nrfutil pkg generate --hw-version 52 --sd-req 0xCC --application-version 2 --application myapp.hex --key-file private_key.pem myapp_inc_signed.zip --app-boot-validation VALIDATE_ECDSA_P256_SHA256&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Without&amp;nbsp;&lt;span&gt;--app-boot-validation VALIDATE_ECDSA_P256_SHA256, after programming , it reset, i see dfuTarg advertising, i connect click dfu button dl the myapp_signed.zip , it try to upload, 1time , 2time , 3 times and disconnect, i reconnect , it disconnect, and continu to advertise dfu targ but application doesn&amp;#39;t start.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So with the option i can at least upload, and appllication strt only after uploading with dfu ble and not when application has been written by wire. And without the option, even upload doesn&amp;#39;t work.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Ok concerning speed, it is a samsung 7 so quiet recent. SO this speed is normal :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833 s113 DFU Package generation</title><link>https://devzone.nordicsemi.com/thread/262144?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 09:15:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:950d887f-7494-4e74-b313-6aca398f88d3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Could you post the commands you use to generate the bootloader settings page (&lt;span&gt;&lt;a title="Generating and displaying bootloader settings" href="https://infocenter.nordicsemi.com/topic/ug_nrfutil/UG/nrfutil/nrfutil_settings_generate_display.html?cp=8_5_6"&gt;Generating and displaying bootloader settings&lt;/a&gt;&lt;/span&gt;)?&lt;/p&gt;
&lt;p&gt;1. It sounds like a problem with the bootloader settings page. Please try to generate the settings page without the enabling boot validation of the app (--app_boot_validation) and see if you get the same result (the bootloader falls back to dfu mode if this validation fails).&lt;/p&gt;
&lt;p&gt;2. It may be slightly faster or slower depending on the phone you use, but 8.3 kB (bytes?) is pretty quick. I got 9-10 kB/s with my iPhone 8 for comparison, and with this transfer rate, it will only take a few seconds to update a regular-sized SDK app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833 s113 DFU Package generation</title><link>https://devzone.nordicsemi.com/thread/261639?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2020 15:33:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2c59fbf-3769-4ac1-b096-831e95eba92b</guid><dc:creator>Olfox</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I found the good documentation, sorry to have have search enough before to ask on the forum :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Flib_bootloader_dfu_validation.html&amp;amp;anchor=lib_bootloader_signatures"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Flib_bootloader_dfu_validation.html&amp;amp;anchor=lib_bootloader_signatures&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So I start from zero. Create private , public key, put it in secure bootloader, and then flash with nrfConnect 3.4.0 the four files : softdist.hex myApplication.hex, bootloader.hex and the bootloader setting page.&lt;/p&gt;
&lt;p&gt;I needed to add an option to generation packqge to have it working: --app_boot_validation VALIDATE_ECDSA_P256_SHA256.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Q1)&lt;/p&gt;
&lt;p&gt;But when i flash like this, bootloader is not able to start normally my application. I can do the dfu via le of my zipped signed package. But the application flashed at &amp;quot; production step&amp;quot; is not started because not signed i guess. How to allow my initial application to start after flashing the four files please? Is it just a matter of not signed app?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Q2)&lt;/p&gt;
&lt;p&gt;I have an upload rate of 8.3kB ( i was at 50cm from the devBoad), is it normal ? It seems to be slow .&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>