<?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>Siging image for OTA DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91770/siging-image-for-ota-dfu</link><description>Hi all, 
 Inherited a nRF Connect 1.5 project developed under Linux and I&amp;#39;m trying to get everything set up for continued development under Windows. 
 I can build the code using the default signing key and OTA DFU works as i should. Now I would like to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Sep 2022 14:45:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91770/siging-image-for-ota-dfu" /><item><title>RE: Siging image for OTA DFU</title><link>https://devzone.nordicsemi.com/thread/385782?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2022 14:45:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5655450f-9595-47d5-bbcd-aa72bcfbd23e</guid><dc:creator>Sigurd</dc:creator><description>[quote user="EricHDS"]But, given that I would like to do the signing as a separate operation outside the normal build process; how would I do it in the &amp;quot;Windows nRF SDK&amp;quot; environment ?[/quote]
&lt;p&gt;This page here might help you do that,&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/mcuboot/imgtool.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/mcuboot/imgtool.html&lt;/a&gt;&amp;nbsp;, but I think it would be easier&amp;nbsp;to use the&amp;nbsp;&lt;span&gt;CONFIG_BOOT_SIGNATURE_KEY_FILE&amp;nbsp; in the configuration file for the mcuboot child image approach.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Siging image for OTA DFU</title><link>https://devzone.nordicsemi.com/thread/385546?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2022 14:41:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:454033db-8bd7-422f-9b32-a11153f6973d</guid><dc:creator>Eric Wiebols</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Since the previous (Linux) developer used some comand line script to do the signing as a stand-alone operation I suspect that the project is not properly set-up for &amp;quot;multi image&amp;quot;. I.e. as I understand it there should be a child_image folder next to the src folder. In other words; no I have not added&amp;nbsp;&lt;span&gt;CONFIG_BOOT_SIGNATURE_KEY_FILE&amp;nbsp; in the configuration file for the mcuboot child image, only in the regular prj.conf file. I guess this explains why&amp;nbsp;mykey.pem is totally ignored in the build process. But, given that I would like to do the signing as a separate operation outside the normal build process; how would I do it in the &amp;quot;Windows nRF SDK&amp;quot; environment ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;\Eric&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Siging image for OTA DFU</title><link>https://devzone.nordicsemi.com/thread/385348?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 14:55:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15b51dc1-350a-47a3-9a9c-ad76afc26448</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]So I add&amp;nbsp;CONFIG_BOOT_SIGNATURE_KEY_FILE=&amp;quot;d:/mykey.pem&amp;quot; and do a &amp;quot;clean build&amp;quot;.&amp;nbsp; Problem is that the build succeeds regardless if mykey.pem is present or not, i.e. if the USB stick is inserted or not.&amp;nbsp;[/quote]
&lt;p&gt;So did you&amp;nbsp;&lt;span&gt;put CONFIG_BOOT_SIGNATURE_KEY_FILE in the configuration file for the mcuboot child image?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Take a look at how nrf_desktop does it here:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/applications/nrf_desktop/configuration/nrf52820dongle_nrf52820/child_image/mcuboot/prj_release.conf"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/applications/nrf_desktop/configuration/nrf52820dongle_nrf52820/child_image/mcuboot/prj_release.conf&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you still have issues with this, try adding CONFIG_BOOT_SIGNATURE_KEY_FILE in both prj.conf and in child_image/mcuboot.conf&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And if you still are having issues after that, could you post your build log here?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>