<?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>FOTA - BLE: Custom Keys issue on compilation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121262/fota---ble-custom-keys-issue-on-compilation</link><description>Hello, I&amp;#39;ve recently upgraded my pre-production application on nrf52832 from NCS v2.6.2 to Ncs v3.0.1 also upgraded to HWv2(on interim ncs 2.9.0 as adding custom board for me didn&amp;#39;t work on NCS v3.0.1 - Will explain this issue on This thread : Here Setup</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 May 2025 10:14:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121262/fota---ble-custom-keys-issue-on-compilation" /><item><title>RE: FOTA - BLE: Custom Keys issue on compilation</title><link>https://devzone.nordicsemi.com/thread/535297?ContentTypeID=1</link><pubDate>Wed, 14 May 2025 10:14:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b0f1d83-82a6-4349-95da-bc2aa280dcf9</guid><dc:creator>Gokulnath</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;No success ..&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/121262/fota---ble-custom-keys-issue-on-compilation/535247"]Try to escape all the &amp;quot;\&amp;quot;s:[/quote]
&lt;p&gt;Done this.&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff00ff;font-size:inherit;"&gt;&lt;strong&gt;But a new development:&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve did it like this....&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1747218014112v2.png" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;But I still see in logs that the default key is getting used.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;Another Development 2:&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;I did it like this ...&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1747218683996v3.png" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:#000000;"&gt;Tested this &amp;amp; it works correctly.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA - BLE: Custom Keys issue on compilation</title><link>https://devzone.nordicsemi.com/thread/535247?ContentTypeID=1</link><pubDate>Wed, 14 May 2025 06:54:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1141692a-97cb-401e-a4dc-0bb5e9c80b61</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Try to escape all the &amp;quot;\&amp;quot;s:&lt;/p&gt;
&lt;p&gt;&amp;quot;C:\\Nordic\\Software\\BLE\\FOTA-Keys\\FOTA-Private-Key-ECDSA-P256.pem&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA - BLE: Custom Keys issue on compilation</title><link>https://devzone.nordicsemi.com/thread/535167?ContentTypeID=1</link><pubDate>Tue, 13 May 2025 14:24:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4054d012-433d-4bf3-9dd6-d17865e9d810</guid><dc:creator>Gokulnath</dc:creator><description>&lt;p&gt;Hello &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/121262/fota---ble-custom-keys-issue-on-compilation/535160"]In this case, can you try to set the MCUboot key instead:&lt;code&gt; &lt;/code&gt;&lt;code&gt;&lt;span&gt;SB_CONFIG_BOOT_SIGNATURE_KEY_FILE&lt;/span&gt;&lt;/code&gt;.[/quote]
&lt;p&gt;yes this fails as well. tried it on both my personal project &amp;amp; the 52DK LBS project as well.&lt;br /&gt;&lt;br /&gt;logs:&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2043.logs-lbs-sample-52DK-custom-key.txt"&gt;devzone.nordicsemi.com/.../2043.logs-lbs-sample-52DK-custom-key.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA - BLE: Custom Keys issue on compilation</title><link>https://devzone.nordicsemi.com/thread/535160?ContentTypeID=1</link><pubDate>Tue, 13 May 2025 14:07:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:898e4a77-bfac-4c2f-a3f2-a3fd4ef6d49b</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Ah I thought this was the key for MCUboot, and not for NSIB.&lt;/p&gt;
&lt;p&gt;I see now that it is for NSIb.&lt;/p&gt;
&lt;p&gt;In this case, can you try to set the MCUboot key instead:&lt;code&gt; &lt;/code&gt;&lt;code&gt;&lt;span&gt;SB_CONFIG_BOOT_SIGNATURE_KEY_FILE&lt;/span&gt;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Does this fail as well?&lt;br /&gt;This is a good test to see if it is a CMake can not find the file, or if the issue is specific to the NSIB option.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA - BLE: Custom Keys issue on compilation</title><link>https://devzone.nordicsemi.com/thread/535140?ContentTypeID=1</link><pubDate>Tue, 13 May 2025 13:09:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b485426-44e3-4998-92a4-73b56002e1b5</guid><dc:creator>Gokulnath</dc:creator><description>&lt;p&gt;hello,&lt;br /&gt;yes i&amp;#39;m using Full path only in sysbuild.conf&lt;br /&gt;&lt;br /&gt;like this&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;SB_CONFIG_SECURE_BOOT_APPCORE=y
SB_CONFIG_SECURE_BOOT_SIGNING_KEY_FILE=&amp;quot;C:\Nordic\Software\BLE\FOTA-Keys\FOTA-Private-Key-ECDSA-P256.pem&amp;quot;&lt;/pre&gt;&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/121262/fota---ble-custom-keys-issue-on-compilation/535136"] so try to use a smaller key name.[/quote]
&lt;p&gt;Tried this as well but no effect!&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1747141747573v2.png" /&gt;&lt;br /&gt;&lt;br /&gt;Also added this under cmakelist.txt (example on my original project.)&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1747141712133v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA - BLE: Custom Keys issue on compilation</title><link>https://devzone.nordicsemi.com/thread/535136?ContentTypeID=1</link><pubDate>Tue, 13 May 2025 13:00:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:334b7a08-9943-4514-bbc7-539b9a00602a</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;The error in your logs say &amp;quot;Config points to non-existing PEM file&lt;br /&gt;&amp;nbsp; &amp;#39;C:NordicSoftwareBLEFOTA-KeysFOTA-Private-Key-ECDSA-P256.pem&amp;#39;&amp;quot;&lt;/p&gt;
&lt;p&gt;Looks like the file is not found. Try to use the full path to the file instead.&lt;/p&gt;
&lt;p&gt;Also, Windows is known to have some issues with path lengths, so try to use a smaller key name.&lt;/p&gt;
&lt;p&gt;Can you show me the exact line where you configure the key?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA - BLE: Custom Keys issue on compilation</title><link>https://devzone.nordicsemi.com/thread/535073?ContentTypeID=1</link><pubDate>Tue, 13 May 2025 09:58:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:622e5600-f865-4dc1-a4b4-60fb6d4b354c</guid><dc:creator>Gokulnath</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/121262/fota---ble-custom-keys-issue-on-compilation/534449"]Does it work if you use imgtool instead?[/quote]
&lt;p&gt;Unfortunately for me, no..imgtool didn&amp;#39;t work, some errors.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/121262/fota---ble-custom-keys-issue-on-compilation/534449"]It is a good idea to try a working sample:&lt;br /&gt;Do you get the same error with the solution?[/quote]
&lt;p&gt;My sample is based on the LBS sample under NCS 2.6.2. Just to be sure, I did this: &lt;strong&gt;(for the moment, let&amp;#39;s forget my custom project)&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;My new try is as follows:&lt;/strong&gt;&lt;br /&gt;1) Under the new folder, I copied the sample LBS sample ncsv3.0.1&lt;br /&gt;2) Just added FOTA support based on DEVacademy tutorial &amp;amp; compiled it, it works on 52dk (As default key)&lt;br /&gt;3) An error occurs when I just added my custom FOTA key. Unable to build.&lt;br /&gt;&lt;br /&gt;logs:&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/logs-lbs-sample-52DK-custom-key.txt"&gt;devzone.nordicsemi.com/.../logs-lbs-sample-52DK-custom-key.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/121262/fota---ble-custom-keys-issue-on-compilation/534449"]This is with your project, right? Or do you use a sample?[/quote]
&lt;p&gt;Yes, this is with my specific sample only. Let&amp;#39;s say, for the bigger fish to fry for the moment, we shall solve the custom key issue, I guess. Then, if needed, I shall create another ticket specific to this.&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/121262/fota---ble-custom-keys-issue-on-compilation/534449"]What install method have you used for the nRF connect SDK?[/quote]
&lt;p&gt;directly installed from VS Code (manage SDK option, pre-packaged file)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA - BLE: Custom Keys issue on compilation</title><link>https://devzone.nordicsemi.com/thread/534449?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 11:31:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:870fb634-ddf0-4068-ae7f-a8a7c036a28f</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]I followed this link, OPENSS,L to generate the custom key as mentioned [/quote]
&lt;p&gt;It is a good idea to also try the alternatives:&lt;br /&gt;Does it work if you use imgtool instead?&lt;/p&gt;
&lt;p&gt;It is a good idea to try a working sample:&lt;br /&gt;Do you get the same error with the solution?&lt;/p&gt;
[quote user=""]1)&amp;nbsp; secure_boot = n (warning on terminal) -( MCUBoot bootloader key file: C:/ncs/v3.0.1/bootloader/mcuboot/root-rsa-2048.pem&lt;br /&gt;CMake Warning at CMakeLists.txt:393 (message):&lt;br /&gt; WARNING: Using default MCUboot signing key file, this file is for debug use&lt;br /&gt; only and is not secure!)[/quote]
&lt;p&gt;How do you add the configuration for the custom key?&lt;/p&gt;
[quote user=""]&lt;p&gt;2)&amp;nbsp;warning: Deprecated symbol DEPRECATED_UART_NRFX_UARTE_LEGACY_SHIM is enabled. (How to solve this?)&lt;/p&gt;
&lt;p&gt;3)&amp;nbsp;warning: Deprecated symbol BT_CTLR is enabled (how to solve this?)&lt;/p&gt;[/quote]
&lt;p&gt;This is with your project, right? Or do you use a sample?&lt;/p&gt;
[quote user=""]4) When I run west update (technically I&amp;#39;m not using the wested workspace though) on ncsv3.0.1, I&amp;#39;m getting issues on old SDK v2.6.2, not found error on the terminal. (see screenshot attached.)[/quote]
&lt;p&gt;What install method have you used for the nRF connect SDK?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>