<?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>BLE DFU Fota in nrf52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95400/ble-dfu-fota-in-nrf52840</link><description>Hello 
 I followed the example from Add DFU support to your application - Software - nRF Connect SDK guides - Nordic DevZone (nordicsemi.com) for current SDK 2.2.0 and it works (had only to adjust path to smp_bt.h in main.c). 
 Now I&amp;#39;m trying to go further</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Jan 2023 10:57:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95400/ble-dfu-fota-in-nrf52840" /><item><title>RE: BLE DFU Fota in nrf52840</title><link>https://devzone.nordicsemi.com/thread/404773?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2023 10:57:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb76f9c8-d945-4eec-8c04-c36510bf71eb</guid><dc:creator>Gera64</dc:creator><description>&lt;p&gt;Now it works.&lt;br /&gt;Solution was to create a file named &amp;quot;mcuboot.conf&amp;quot; inside of the folder &amp;quot;child_image&amp;quot;.&lt;/p&gt;
&lt;p&gt;In this file add the line&amp;nbsp;CONFIG_BOOT_SIGNATURE_KEY_FILE=&amp;quot;&amp;lt;path_to_key_file&amp;gt;/priv.pem&amp;quot;. The clue is that the path_to_key_file must be &lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;absolute&lt;/strong&gt;&lt;/span&gt;, including drive letter...&lt;br /&gt;Do not use the &amp;quot;standard&amp;quot; proj.conf for that line, as stated in the documentation, since the line will be ignored for signing of mcuboot...&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Gerardo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU Fota in nrf52840</title><link>https://devzone.nordicsemi.com/thread/404435?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 01:56:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:905be5f6-4f15-4893-ab5c-cfab90bd2542</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Gerardo,&lt;/p&gt;
&lt;p&gt;Please check out this page from the my colleague&amp;#39;s GitHub repo: &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/blob/2c7865423b3af585947f72cd44787ae77c296336/bootloader_samples/keys_and_signatures/README.md"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/blob/2c7865423b3af585947f72cd44787ae77c296336/bootloader_samples/keys_and_signatures/README.md&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And the following section from the NCS documentation: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_fw_update.html#using-development-keys"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_fw_update.html#using-development-keys&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;They will have more information on using production keys. Note that this is not related to the VS Code extension, but rather the nRF Connect SDK (meaning these features would work even from the command line, without VS Code).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU Fota in nrf52840</title><link>https://devzone.nordicsemi.com/thread/404239?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 08:55:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81a68c13-bd05-4719-872b-8bf56421c414</guid><dc:creator>Gera64</dc:creator><description>&lt;p&gt;Hi Raoul,&lt;br /&gt;many thanks for your response, I&amp;#39;ll check out the link you gave me.&lt;/p&gt;
&lt;p&gt;As far as I know, the &amp;quot;app_singned.hex &amp;amp; app_update.bin both use the &amp;quot;default&amp;quot; signing with default zephyr/nordic debug key.&lt;br /&gt;How should I configure the VS-Code environment (prj.conf &amp;amp; co) in order to use my own production key?&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Gerardo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU Fota in nrf52840</title><link>https://devzone.nordicsemi.com/thread/404228?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 07:29:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f76a5eb-991f-42e3-bfb2-adcef5c19ab0</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Gerardo,&lt;/p&gt;
&lt;p&gt;In case you didn&amp;#39;t know, NCS is set up to automatically generate signed images when you enable MCUboot: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/readme-ncs.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/readme-ncs.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In this &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/app_build_system.html#mcuboot-output-build-files"&gt;list of generated files&lt;/a&gt;, &amp;quot;app_signed.hex&amp;quot; and &amp;quot;app_update.bin&amp;quot; are the signed images meant for DFU. They can be found in your build folder.&lt;/p&gt;
&lt;p&gt;So even though the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html"&gt;SMP Server sample&lt;/a&gt; readme says so, there is no need to sign manually (Sorry for the confusion there, this sample and its readme are pulled in from the Zephyr repository).&lt;/p&gt;
&lt;p&gt;If you do want to sign things manually, you can use the following command (replace the path to your NCS location):&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:14px;"&gt;&lt;pre class="ui-code" data-mode="text"&gt;west sign -t imgtool -- --key C:\ncs\v2.1.0\bootloader\mcuboot\root-rsa-2048.pem --header-size 32 --pad-header&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;code&gt;--header-size 32 --pad-header&lt;/code&gt;&amp;quot; explicitly aligns and sets the size of the header that &lt;code&gt;imgtool&lt;/code&gt; prepends to the hex file. This seems to be necessary.&lt;/p&gt;
&lt;p&gt;If you want further examples of bootloader use in NCS, you might be interested in my colleague&amp;#39;s Github repo, with &amp;quot;minimal&amp;quot; samples and detailed readmes: &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples"&gt; samples_for_nrf_connect_sdk/bootloader_samples/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I hope this clarifies things.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU Fota in nrf52840</title><link>https://devzone.nordicsemi.com/thread/403467?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 16:25:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:865a6d7c-e120-479d-9e63-f0f8e0a6164b</guid><dc:creator>Gera64</dc:creator><description>&lt;p&gt;Addendum: I&amp;#39;m using &amp;quot;Build&amp;quot; - Button from inside of Visual Studio Code, no external calls to west &amp;amp; co.&lt;/p&gt;
&lt;p&gt;Configuration just over prj.conf and CMakeLists.txt of LBS project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>