<?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>Shared configuration in case of multiimage build</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96359/shared-configuration-in-case-of-multiimage-build</link><description>Hello ! 
 I have multi image build and in app_core Kconfig some own definitions like NET_L2_MY_VALUE =1. 
 Is any way to define if this value can be visible to network core image ? Or how to share own config value between core and network images ? 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Feb 2023 13:34:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96359/shared-configuration-in-case-of-multiimage-build" /><item><title>RE: Shared configuration in case of multiimage build</title><link>https://devzone.nordicsemi.com/thread/411118?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2023 13:34:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd3190f6-db19-4cee-b7f0-9acc55eb9b99</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Eugene,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply, I did some experiments based on the multicore sample and here are my implementation and result.&lt;/p&gt;
&lt;p&gt;1) Add a new common variable to&amp;nbsp;nrf\samples\nrf5340\multicore\Kconfig and&amp;nbsp;nrf\samples\nrf5340\multicore\cpunet\Kconfig(newly generated)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;config TEST_VARIABLE
       int &amp;quot;A test variable&amp;quot;
       default 1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;2) Add overlay-common.conf to&amp;nbsp;nrf\samples\nrf5340\multicore, which set TEST VARIABLE to 2.&lt;/p&gt;
&lt;p&gt;3) Add&amp;nbsp;&lt;span&gt;printk&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;quot;Test valiable value: &lt;/span&gt;&lt;span&gt;%d&lt;/span&gt;&lt;span&gt;\n&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;CONFIG_TEST_VARIABLE&lt;/span&gt;&lt;span&gt;); to nrf\samples\nrf5340\multicore\src\main.c.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;3) build the project with commands:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;west build --pristine --board nrf5340dk_nrf5340_cpuapp -- -DOVERLAY_CONFIG=overlay-common.conf -Dcpunet_OVERLAY_CONFIG=../overlay-common.conf&lt;/p&gt;
&lt;p&gt;or use NCS VS code extension:&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/8206.pastedimage1676986398707v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;4) You would see both cores can print out&amp;nbsp;&lt;span&gt;Test variable value:&amp;nbsp;2 set by overlay-common.conf instead of default 1.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;
*** Booting Zephyr OS build v3.2.99-ncs1 ***
Hello world from nrf5340dk_nrf5340_cpunet
Test valiable value: 2


Disconnected

Connected via Serial Port with settings COM57 115200 8n1 rtscts:off



Disconnected

Connected via Serial Port with settings COM59 115200 8n1 rtscts:off

*** Booting Zephyr OS build v3.2.99-ncs1 ***
Hello world from nrf5340dk_nrf5340_cpuapp
Test valiable value: 2&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here is the modified multicore sample supporting common overlay configuration for both cores.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0777.ncs220_5F00_multicore_5F00_commonconfig.zip"&gt;devzone.nordicsemi.com/.../0777.ncs220_5F00_multicore_5F00_commonconfig.zip&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Shared configuration in case of multiimage build</title><link>https://devzone.nordicsemi.com/thread/411117?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2023 13:34:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec22c866-8a43-46b6-aa9f-66ea865b4d60</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Eugene,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply, I did some experiments based on the multicore sample and here are my implementation and result.&lt;/p&gt;
&lt;p&gt;1) Add a new common variable to&amp;nbsp;nrf\samples\nrf5340\multicore\Kconfig and&amp;nbsp;nrf\samples\nrf5340\multicore\cpunet\Kconfig(newly generated)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;config TEST_VARIABLE
       int &amp;quot;A test variable&amp;quot;
       default 1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;2) Add overlay-common.conf to&amp;nbsp;nrf\samples\nrf5340\multicore, which set TEST VARIABLE to 2.&lt;/p&gt;
&lt;p&gt;3) Add&amp;nbsp;&lt;span&gt;printk&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;quot;Test valiable value: &lt;/span&gt;&lt;span&gt;%d&lt;/span&gt;&lt;span&gt;\n&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;CONFIG_TEST_VARIABLE&lt;/span&gt;&lt;span&gt;); to nrf\samples\nrf5340\multicore\src\main.c.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;3) build the project with commands:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;west build --pristine --board nrf5340dk_nrf5340_cpuapp -- -DOVERLAY_CONFIG=overlay-common.conf -Dcpunet_OVERLAY_CONFIG=../overlay-common.conf&lt;/p&gt;
&lt;p&gt;or use NCS VS code extension:&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/pastedimage1676986398707v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;4) You would see both cores can print out&amp;nbsp;&lt;span&gt;Test variable value:&amp;nbsp;2 set by overlay-common.conf instead of default 1.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;
*** Booting Zephyr OS build v3.2.99-ncs1 ***
Hello world from nrf5340dk_nrf5340_cpunet
Test valiable value: 2


Disconnected

Connected via Serial Port with settings COM57 115200 8n1 rtscts:off



Disconnected

Connected via Serial Port with settings COM59 115200 8n1 rtscts:off

*** Booting Zephyr OS build v3.2.99-ncs1 ***
Hello world from nrf5340dk_nrf5340_cpuapp
Test valiable value: 2&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here is the modified multicore sample supporting common overlay configuration for both cores.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ncs220_5F00_multicore_5F00_commonconfig.zip"&gt;devzone.nordicsemi.com/.../ncs220_5F00_multicore_5F00_commonconfig.zip&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Shared configuration in case of multiimage build</title><link>https://devzone.nordicsemi.com/thread/410665?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2023 13:51:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8037532-b803-46d7-ac77-51835237a5fb</guid><dc:creator>Hiihtaja</dc:creator><description>&lt;p&gt;Hi Charlie !&lt;/p&gt;
&lt;p&gt;You mean if cpunet is included as child image, all new configs what is defined in Kconfig of multiimage build will be visible to both cores.&lt;/p&gt;
&lt;p&gt;And prj.conf configs definitions can be taken from both cores values.&lt;/p&gt;
&lt;p&gt;Is this so ?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Eugene&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Shared configuration in case of multiimage build</title><link>https://devzone.nordicsemi.com/thread/409203?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2023 14:51:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15b931ac-64a4-42ee-8481-c86cac2d38d7</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Hiihtaja,&lt;/p&gt;
&lt;p&gt;Now I understand you better.&lt;/p&gt;
&lt;p&gt;You can refer to&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/samples/nrf5340/multicore/README.html"&gt;nRF5340: Multicore application — nRF Connect SDK 2.2.0 documentation (nordicsemi.com)&lt;/a&gt;&amp;nbsp;sample.&lt;/p&gt;
&lt;p&gt;In this sample, the firmware running on the application core and network core share some configurations, and even the same source codes.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Shared configuration in case of multiimage build</title><link>https://devzone.nordicsemi.com/thread/408446?ContentTypeID=1</link><pubDate>Tue, 07 Feb 2023 07:49:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cc5a83e-0ef6-4011-83ba-10b88dbb5328</guid><dc:creator>Hiihtaja</dc:creator><description>&lt;p&gt;Hi Charlie !&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_multi_image.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_multi_image.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But all of those config lines need to be provisioned in prj.conf files and visible in menuconfig and only after that is possible to set those via overlay.&lt;/p&gt;
&lt;p&gt;Now I&amp;#39;m able to have 4 independent menuconfigs;&lt;/p&gt;
&lt;p&gt;west build -t menuconfig&lt;/p&gt;
&lt;p&gt;west build -t mcuboot_menuconfig&lt;/p&gt;
&lt;p&gt;west build -t cpunet_menuconfig&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;$ west build -t b0n_menuconfig&lt;br /&gt;-- west build: running target b0n_menuconfig&lt;br /&gt;ninja: error: unknown target &amp;#39;b0n_menuconfig&amp;#39;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;network bootloader dosn&amp;#39;t work , may be I use wrong menuconfig line ?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;and by this line :&lt;/p&gt;
&lt;pre class="highlight literal-block"&gt;-D&lt;em&gt;childimageone&lt;/em&gt;_OVERLAY_CONFIG=&lt;em&gt;extrafragment.conf&lt;/em&gt;[...]&lt;br /&gt;&lt;br /&gt;I can add some common definitions for all chields if need.&lt;br /&gt;&lt;br /&gt;But how to provisioned those config lines for app and network images ?&lt;br /&gt;&lt;br /&gt;Include rsource &amp;quot;Kconfig.mydriver&amp;quot; to both KConfigs ?&lt;br /&gt;&lt;span&gt;In this cases they can be provisioned and by overlay have common definitions for both cores ?&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Eugene&lt;br /&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Shared configuration in case of multiimage build</title><link>https://devzone.nordicsemi.com/thread/408333?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2023 15:06:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75e74788-9663-4801-b26c-8b1cf83a0257</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Eugene,&lt;/p&gt;
&lt;p&gt;You can create an overlay file for them, then load the same overlay file for different projects to make sure they use the same common configurations.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Shared configuration in case of multiimage build</title><link>https://devzone.nordicsemi.com/thread/408281?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2023 12:51:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11e51b33-2728-469c-b35f-5265d47e6aa5</guid><dc:creator>Hiihtaja</dc:creator><description>&lt;p&gt;Hi Charlie !&lt;/p&gt;
&lt;p&gt;When I compile firmware for both cores, I have common settings what should be visible in both firmwares.&lt;/p&gt;
&lt;p&gt;in Kconfig of app core there are populated.&lt;/p&gt;
&lt;p&gt;Can I avoid dublication and set value once in prj.conf of core image and be sure if the same value and config flag will be visible for both cores during build process ?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Eugene&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Shared configuration in case of multiimage build</title><link>https://devzone.nordicsemi.com/thread/408271?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2023 12:24:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba93d548-a1b7-4099-b5cf-f9d369db946a</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Eugene,&lt;/p&gt;
[quote user=""]Is any way to define if this value can be visible to network core image ? Or how to share own config value between core and network images ?[/quote]
&lt;p&gt;I am not sure if I understand this question correctly.&amp;nbsp;Do you want to also use &lt;span&gt;NET_L2_MY_VALUE =1&lt;/span&gt; as a building time configuration for the network core? then just use it if you need it on your network core firmware.&lt;/p&gt;
&lt;p&gt;application core and network core are basically running different firmware, they communicate through shared memory and IPC signalling.&amp;nbsp;&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/pastedimage1675686138703v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>