<?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>nRF5340 Audio DK Secure Boot won&amp;#39;t build</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101656/nrf5340-audio-dk-secure-boot-won-t-build</link><description>I&amp;#39;m using v2.4.0 of the SDK with the nRF5340 Audio SDK and trying to program it to be a CIS Gateway with our own security keys and using external flash. With no changes to any code from the v2.4.0 install it builds and runs fine with the following command</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Jul 2023 19:03:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101656/nrf5340-audio-dk-secure-boot-won-t-build" /><item><title>RE: nRF5340 Audio DK Secure Boot won't build</title><link>https://devzone.nordicsemi.com/thread/437094?ContentTypeID=1</link><pubDate>Tue, 18 Jul 2023 19:03:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42a05cbe-8009-4240-be93-99f4f439ff80</guid><dc:creator>MStreet</dc:creator><description>&lt;p&gt;Just to be clear for anyone else reading this, I had to put the C&lt;span&gt;ONFIG_BOOT_SIGNATURE_KEY_FILE&lt;/span&gt;&lt;span&gt;=&amp;quot;&amp;quot; setting into the overlay-mcuboot_external_flash.conf file in the nrf5340_audo/dfu/conf folder for it to work. It won&amp;#39;t work if placed in prj.conf or prj_release.conf.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DK Secure Boot won't build</title><link>https://devzone.nordicsemi.com/thread/436678?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2023 09:24:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43581599-ca8b-4196-8d9b-8c584bcd9df9</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;It is great to hear that you found a solution for your problem.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DK Secure Boot won't build</title><link>https://devzone.nordicsemi.com/thread/436561?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2023 19:52:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4050d4ff-d4dc-49cc-ac68-ead5e0944893</guid><dc:creator>MStreet</dc:creator><description>&lt;p&gt;Major RTFM on my part!&amp;nbsp;You only need to enable SECURE_BOOT if you want to use &lt;span&gt;MCUboot as an upgradable second-stage bootloader as detailed in the Security section of the SDK documentation. I don&amp;#39;t need to do this, so all I needed to do was set CONFIG__BOOT_SIGNATURE_KEY_FILE to point to my own key.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DK Secure Boot won't build</title><link>https://devzone.nordicsemi.com/thread/436324?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 16:14:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f31bd1b-a9ed-4e1b-a54e-61289249133d</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You can find relevant information on how to&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/bootloaders_and_dfu/bootloader_adding.html#adding-a-bootloader-chain"&gt;add bootloader chain&lt;/a&gt;, and&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/bootloaders_and_dfu/bootloader_config.html#using-custom-project-configurations"&gt;use custom project configurations&lt;/a&gt; in the documentation.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DK Secure Boot won't build</title><link>https://devzone.nordicsemi.com/thread/436086?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2023 20:07:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b6bc2e8-6589-4f99-a6f4-8692bd6a7e44</guid><dc:creator>MStreet</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The nrf5340_audio application uses MCUBOOT which is set in Kconfig.dfu so that is what I am using.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And, when building I get the following message:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1689191907844v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;So, does that mean I don&amp;#39;t need CONFIG_SECURE_BOOT=y but instead need to rebuild MCUBOOT with my own private key?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DK Secure Boot won't build</title><link>https://devzone.nordicsemi.com/thread/435689?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2023 11:22:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fa41bf0-09f4-4d51-9344-be2cf5a64a70</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Could you please provide information about the type of bootloader that you want to use in your application? Is&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bootloader/README.html#nsib"&gt;nRF Secure Immutable Bootloader&lt;/a&gt;&amp;nbsp;(NSIB),&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/bootloaders_and_dfu/bootloader_adding.html#adding-nsib-as-an-immutable-bootloader"&gt;adding NSIB as immutable bootloader&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/bootloaders_and_dfu/bootloader_adding.html#adding-a-custom-signature-key-file"&gt;adding custom signature key file&lt;/a&gt;&amp;nbsp;relevant to your problem?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DK Secure Boot won't build</title><link>https://devzone.nordicsemi.com/thread/435576?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 21:48:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59dfa0d5-140e-4a18-9dcc-3edbaf116a51</guid><dc:creator>MStreet</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have any problems until I set&amp;nbsp;&lt;span&gt;CONFIG_SECURE_BOOT=y in either debug or release. But I need to use our own private key rather than the debug one for security reasons. Don&amp;#39;t I need to have this set for that?&amp;nbsp; Neither the debug nor release versions work with this set.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also, when I build the debug version with&amp;nbsp;CONFIG_SECURE_BOOT=y the b0.conf in child_image is properly&amp;nbsp;merged in by dts.cmake:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Merged configuration &amp;#39;C:/ncs/v2.4.0/nrf/applications/nrf5340_audio/child_image/b0.conf&amp;#39;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This doesn&amp;#39;t happen with the release build so the sys_clock_cycle_get_32 error reappears.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DK Secure Boot won't build</title><link>https://devzone.nordicsemi.com/thread/435499?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 12:38:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0f62d87-ac20-44b9-9c01-3ca6a8c48071</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have reproduced your issues when &lt;span&gt;CONFIG_SECURE_BOOT=y in prj.conf and no child_image exists in the project folder. However, when I commented out&amp;nbsp;CONFIG_SECURE_BOOT=y in prj.conf and added CONFIG_NRF_RTC_TIMER=y to b0n.conf in the child_image folder, I could build the project successfully.&lt;br /&gt;&lt;br /&gt;Please note that according to the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/nrf5340_audio/README.html#nrf5340-audio-configuration-files"&gt;documentation&lt;/a&gt;, the application should be built with prj_release.conf instead of prj_debug.conf which you tried to use. Here is the build command:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;python buildprog.py -c both -b release -d gateway -m external --pristine&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Best regards,&lt;br /&gt;Dejan&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>