<?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 Multi-Image example configuration help</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72840/nrf5340-multi-image-example-configuration-help</link><description>I am working on a project that is being ported from the nRF52840 to the nRF5340 and the once unified radio and app codebase needs to be split to the app CPU and network CPU. 
 The problem I am facing is I don&amp;#39;t quite understand how to create a multi image</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Jun 2022 12:20:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72840/nrf5340-multi-image-example-configuration-help" /><item><title>RE: NRF5340 Multi-Image example configuration help</title><link>https://devzone.nordicsemi.com/thread/374536?ContentTypeID=1</link><pubDate>Tue, 28 Jun 2022 12:20:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17fbe577-e3a3-4f13-bac0-461e0d9f463b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m reviving this old thread in case this topic is still of interest. In SDK version 2.0.0, we introduced a new sample called &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/samples/nrf5340/multicore/README.html"&gt;nRF5340: Multicore application&lt;/a&gt; along with updated documentation to demonstrate how one can specify a custom child image to be included in the build without requiring SDK patching.&lt;/p&gt;
&lt;p&gt;Using this sample as a reference, I was able to include my own out-of-tree version of the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/zephyr/samples/bluetooth/hci_rpmsg/README.html"&gt;Bluetooth: HCI RPMsg&lt;/a&gt; sample for the net core as you can see from the project attached below.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The project I made (tested on &amp;#39;nrf5340dk_nrf5340_cpuapp&amp;#39; with SDK 2.0.0)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/peripheral_5F00_lbs_5F00_with_5F00_custom_5F00_hci_5F00_rpmsg.zip"&gt;devzone.nordicsemi.com/.../peripheral_5F00_lbs_5F00_with_5F00_custom_5F00_hci_5F00_rpmsg.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 Multi-Image example configuration help</title><link>https://devzone.nordicsemi.com/thread/330444?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 10:28:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:607d3073-6cd4-4a03-ac52-aeeb86956567</guid><dc:creator>uhrm</dc:creator><description>&lt;p&gt;Hey Gabriele,&lt;/p&gt;
&lt;p&gt;If you are trying to not use the ncs sample project, then this should not be the path to specify in&amp;nbsp;&lt;span&gt;CHILD_IMAGE_PATH.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;In my case, the CHILD_IMAGE_PATH is the path to the folder containing the project that&amp;nbsp;I want to use as a child image instead of hci_rpmsg; that project is outside the ncs sample folder structure and I believe can be located anywhere in your computer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 Multi-Image example configuration help</title><link>https://devzone.nordicsemi.com/thread/330409?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 08:29:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d12e312-19ef-48fc-9aa8-67805d55081b</guid><dc:creator>Gabriele</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;I would like to test your solution using the hci_rpmsg as a child image. Can you explain better how to set up CHILD_IMAGE_PATH ? Is is the path to ncs sample project folder, or is it a copy of that folder into the parent application folder ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 Multi-Image example configuration help</title><link>https://devzone.nordicsemi.com/thread/320104?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 17:48:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:144c9c53-d13c-4c9a-b078-b7d478c34011</guid><dc:creator>uhrm</dc:creator><description>&lt;p&gt;Got it now, the net core we are using is basically a copy of the the hci_rpmsg, the only difference is that it is out of the SDK folder structure (I will call that net_core).&lt;/p&gt;
&lt;p&gt;So what I did was to just remove hci_rpmsg from the parent image build since the&amp;nbsp;net_core provides the same features as they are the same. To do this I added the line below to the parent config file:&lt;/p&gt;
&lt;p&gt;CONFIG_HCI_RPMSG_BUILD_STRATEGY_SKIP_BUILD=y&lt;/p&gt;
&lt;p&gt;With that, the build completes successfully and now I have our net_core as a child image.&lt;/p&gt;
&lt;p&gt;Thanks a lot for all the information in this thread!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 Multi-Image example configuration help</title><link>https://devzone.nordicsemi.com/thread/320072?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 14:14:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9fcf54d-5f8b-4bb1-80c4-0a87bcf4ecf0</guid><dc:creator>anthony32086</dc:creator><description>&lt;p&gt;I do not use mcuboot so I do not know how it might affect the build sequence.&lt;/p&gt;
&lt;p&gt;You could try removing mcuboot.. Also I have not tried including both hci_rpmsg and a custom net core image either. If you are trying to use Bluetooth + a custom netcore image that might be a source of problems.&lt;/p&gt;
&lt;p&gt;You might want to open a separate issue so the developers at Nordic can provide better support.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 Multi-Image example configuration help</title><link>https://devzone.nordicsemi.com/thread/320060?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 14:02:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f85deb8-bf1e-47ac-94b3-39347b68812a</guid><dc:creator>uhrm</dc:creator><description>&lt;p&gt;Similar to what Anthony suggested, I have this build sequence:&lt;/p&gt;
&lt;p&gt;- Zephyr kernel&lt;/p&gt;
&lt;p&gt;- mcuboot&lt;/p&gt;
&lt;p&gt;- hci_rpmsg&lt;/p&gt;
&lt;p&gt;- my_net_core image -&amp;gt; This is where the build stops&lt;/p&gt;
&lt;p&gt;- Everything else&lt;/p&gt;
&lt;p&gt;I have been playing around with the build order and still have the same issue with pm_config.h, not sure what else I have to do.&lt;/p&gt;
&lt;p&gt;I am wondering if this is related to this other issue with mcuboot, which is still not solved yet:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/69261/nrf5340-mcuboot-build-pm_config-h-not-found"&gt;devzone.nordicsemi.com/.../nrf5340-mcuboot-build-pm_config-h-not-found&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 Multi-Image example configuration help</title><link>https://devzone.nordicsemi.com/thread/319679?ContentTypeID=1</link><pubDate>Mon, 12 Jul 2021 18:53:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b794361-ddf7-4bb5-986d-9bc524f58913</guid><dc:creator>anthony32086</dc:creator><description>&lt;p&gt;as Zaxkv pointed out, I forgot to mention that&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; include(cmake/external_child_image.cmake) &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;needs to be added to ncs/nrf/CMakeList.txt so make sure you have that too.&lt;/p&gt;
&lt;p&gt;&lt;span&gt; hci_rpmsg&lt;/span&gt; is &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/72840/nrf5340-multi-image-example-configuration-help/CONFIG_BT_RPMSG_NRF53"&gt;included here&lt;/a&gt; whenever you build with CONFIG_BT_RPMSG_NRF53=y which is set when you use CONFIG_BT=y&lt;/p&gt;
&lt;p&gt;if you are getting pm_config.h missing it is because you are trying to build the child image from the context of your project and not the ncs root directory so header includes are missing.&lt;/p&gt;
&lt;p&gt;The build sequence from what observe is as follows.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;- generate Kconfig autoconf.h headers from all ncs Kconfigs and prj.conf
- build zephyr kernel
- build child images
- enter project directory &amp;lt;--- no child images can be built after here due to ncs root path context being lost
- build project app image
- merge child images into final image&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Therefore all child images MUST be built before the project directory is entered, my above solution is a variable child image injection to allow the ncs context to build a child image specified by the app. since Kconfig files and prj.conf are parsed first, an external child image can be injected into the ncs build sequence prior to the app project being built.&lt;/p&gt;
&lt;p&gt;Make sure you are building all child images before your app is built by checking the build logs. the following text should be present when building with west in the terminal output in the following sequence,&lt;/p&gt;
&lt;p&gt;&amp;quot;=== child image &amp;lt;CHILD IMAGE NAME&amp;gt; - &amp;lt;CPU DOMAIN&amp;gt; begin ===&amp;quot;&lt;/p&gt;
&lt;p&gt;*child image is built*&lt;/p&gt;
&lt;p&gt;&amp;quot;=== child image &amp;lt;CHILD IMAGE NAME&amp;gt; - &amp;lt;CPU DOMAIN&amp;gt; end ===&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;quot;libmetal version: &amp;lt;PROJECT_VERSION&amp;gt; &amp;lt;CMAKE_SOURCE_DIR&amp;gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;where CMAKE_SOURCE_DIR is the path to your app project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 Multi-Image example configuration help</title><link>https://devzone.nordicsemi.com/thread/319671?ContentTypeID=1</link><pubDate>Mon, 12 Jul 2021 17:28:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c1720fd-2c9a-41a0-987c-b4d8a0729a04</guid><dc:creator>uhrm</dc:creator><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;Thanks a lot for all of this.&lt;/p&gt;
&lt;p&gt;As zaxkv mentioned, I am also beginner and confused about the available documentation. I am trying to do the same than what Anthony mentioned, this is, replace hci_rpmsg with a custom net core. So, I followed this thread and per Anthony&amp;#39;s post above I added the &lt;span&gt;external_child_image.cmake, updated&amp;nbsp;Kconfig.nrf, and added the child image configurations in the application core&amp;#39;s proj.conf.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am using&amp;nbsp;&lt;span&gt;NCS v1.5.1&amp;nbsp;and SES v5.34a, but whenever I load the project, I still see hci_rpmsg created inside the build directory (even after full clean), so not sure if I am missing something in order for it not to be included in the project. Thoughts?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;And the other issue I see is that I am too getting the pm_config.h compile error, even though&amp;nbsp;PARTITION_MANAGER_ENABLED is now in Kconfig whenever CONFIG_BUILD_EXTERNAL_CHILD_IMAGE=y.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;Any ideas?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;Thanks again!&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;Peter U&lt;/span&gt;&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;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 Multi-Image example configuration help</title><link>https://devzone.nordicsemi.com/thread/318570?ContentTypeID=1</link><pubDate>Mon, 05 Jul 2021 08:37:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a79c8c05-d120-4e60-8fad-6bd23decac46</guid><dc:creator>zaxkv</dc:creator><description>&lt;p&gt;Below everything anthony has done which is great,&lt;/p&gt;
&lt;p&gt;in ncs/nrf/CMakeList.txt, following&amp;nbsp;line must be added :&lt;/p&gt;
&lt;p&gt;include(cmake/external_child_image.cmake)&lt;/p&gt;
&lt;div style="left:425px;position:absolute;top:49px;" id="gtx-trans"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 Multi-Image example configuration help</title><link>https://devzone.nordicsemi.com/thread/317986?ContentTypeID=1</link><pubDate>Wed, 30 Jun 2021 12:57:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8193dc68-489f-4578-9b4c-a98be59b3f55</guid><dc:creator>anthony32086</dc:creator><description>&lt;p&gt;I did not change anything else besides the above. I am also only using one image per domain (no bootloader, extra 3rd party hex, etc) so the pm.yml wasn&amp;#39;t needed.&lt;/p&gt;
&lt;p&gt;Since I am building from source for both the child image and parent image the image placement in app and net domains is automatically calculated via board dts files when building. It&amp;#39;s the same process as the peripheral_lbs example when building a single BT enabled app which will use hci_rpmsg as a child image on the net core. However, in my case I replace hci_rpmsg with a custom net core project.&lt;/p&gt;
&lt;p&gt;When building multiple images in the same domain I believe is when pm.yml is needed, however if you still have issues I would open a separate question for clarification from nordic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 Multi-Image example configuration help</title><link>https://devzone.nordicsemi.com/thread/317865?ContentTypeID=1</link><pubDate>Wed, 30 Jun 2021 07:56:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd71ba4d-83b8-4854-b8c5-922aa7a73268</guid><dc:creator>zaxkv</dc:creator><description>&lt;p&gt;Thank you a lot!&lt;/p&gt;
&lt;p&gt;I have one more question:&lt;/p&gt;
&lt;p&gt;Does your child image folder contains pm.yml file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 Multi-Image example configuration help</title><link>https://devzone.nordicsemi.com/thread/317746?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 13:46:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1a93e5b-d85f-4dd7-9121-5bc8697bb017</guid><dc:creator>anthony32086</dc:creator><description>&lt;p&gt;sure,&lt;/p&gt;
&lt;p&gt;Since the west build process requires child images to be built in the scope of the ncs directory but if the child image is out of tree there&amp;#39;s a cyclical dependency problem.&lt;/p&gt;
&lt;p&gt;My solution was based on Vidar&amp;#39;s advice but since I did not want to hard code images such as the way hci_rpmsg and others in the files listed above, I created a variable build config with a new file called external_child_image.cmake in ncs/nrf/cmake&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if (CONFIG_BUILD_EXTERNAL_CHILD_IMAGE)
    if (NOT CONFIG_CHILD_IMAGE_NAME)
        message(FATAL_ERROR &amp;quot;CONFIG_CHILD_IMAGE_NAME not set&amp;quot;)
    endif()

    if (NOT CONFIG_CHILD_IMAGE_PATH)
        message(FATAL_ERROR &amp;quot;CONFIG_CHILD_IMAGE_PATH not set&amp;quot;)
    endif()

    # allow the use of cmake variables in kconfig or prj.conf
    string(CONFIGURE ${CONFIG_CHILD_IMAGE_PATH} CHILD_IMAGE_PATH)

    message(&amp;quot;Adding child image ${CONFIG_CHILD_IMAGE_NAME}\n&amp;quot;
    &amp;quot;located at ${CHILD_IMAGE_PATH}\n&amp;quot;
    &amp;quot;since CONFIG_BUILD_EXTERNAL_CHILD_IMAGE is set to &amp;#39;y&amp;#39;&amp;quot;)

    if (${CONFIG_CHILD_IMAGE_DOMAIN} STREQUAL &amp;quot;CPUNET&amp;quot;)
        set(CHILD_IMAGE_BOARD_TARGET ${CONFIG_DOMAIN_CPUNET_BOARD})
    elseif (${CONFIG_CHILD_IMAGE_DOMAIN} STREQUAL &amp;quot;CPUAPP&amp;quot;)
        set(CHILD_IMAGE_BOARD_TARGET ${CONFIG_DOMAIN_CPUAPP_BOARD})
    else()
        message(FATAL_ERROR &amp;quot;CHILD_IMAGE_DOMAIN not set to CPUNET or CPUAPP&amp;quot;)
    endif()

    add_child_image(
    NAME ${CONFIG_CHILD_IMAGE_NAME}
    SOURCE_DIR ${CHILD_IMAGE_PATH}
    DOMAIN ${CONFIG_CHILD_IMAGE_DOMAIN}
    BOARD ${CHILD_IMAGE_BOARD_TARGET})
endif()&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then added the following entry to ncs/nrf/Kconfig.nrf&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;config BUILD_EXTERNAL_CHILD_IMAGE
	bool &amp;quot;Enable building an out of tree child image&amp;quot;
	default n
	select PARTITION_MANAGER_ENABLED

if BUILD_EXTERNAL_CHILD_IMAGE

config CHILD_IMAGE_NAME
	string &amp;quot;external child image name&amp;quot;

config CHILD_IMAGE_PATH
	string &amp;quot;external child image path&amp;quot;

config CHILD_IMAGE_DOMAIN
	string &amp;quot;external child image domain&amp;quot;
	help 
		Child image CPU domain.
		Can be CPUNET or CPUAPP

endif #BUILD_EXTERNAL_CHILD_IMAGE&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Now in any external project with a dependent child image that is also external I have the following in the parent&amp;#39;s prj.conf&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# add net cpu child image to build
CONFIG_BUILD_EXTERNAL_CHILD_IMAGE=y
CONFIG_CHILD_IMAGE_NAME=&amp;quot;extern child image&amp;quot;
CONFIG_CHILD_IMAGE_PATH=&amp;quot;${APPLICATION_SOURCE_DIR}/path/to/child/image&amp;quot;
CONFIG_CHILD_IMAGE_DOMAIN=&amp;quot;CPUNET&amp;quot;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 Multi-Image example configuration help</title><link>https://devzone.nordicsemi.com/thread/317713?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 12:37:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e25fee2c-201e-4641-bc46-14724126a05d</guid><dc:creator>zaxkv</dc:creator><description>&lt;p&gt;Hi Anthony, can you please share with us what you edit in your files, and exact path to them. It is very hard to understand how to create multi-image for nrf5340 from their documentation, especially for beginners.&lt;/p&gt;
&lt;p&gt;I think many would be thankful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 Multi-Image example configuration help</title><link>https://devzone.nordicsemi.com/thread/309519?ContentTypeID=1</link><pubDate>Wed, 12 May 2021 13:14:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:812b6ed7-319b-42a7-b98f-b301b5fb4d38</guid><dc:creator>anthony32086</dc:creator><description>&lt;p&gt;Thanks, I was able to get it working by adding a new entry for my child image in nrf\samples\Kconfig and nrf\samples\CMakeLists.txt with the directory path pointing out of tree. This worked for building a net image as a child to the app image and for building an app image as a child to the net image.&lt;/p&gt;
&lt;p&gt;Still not sure why adding the same entry to the app project&amp;#39;s CMakeLists.txt and Kconfig does not achieve the same results but for now it will have to do.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 Multi-Image example configuration help</title><link>https://devzone.nordicsemi.com/thread/309444?ContentTypeID=1</link><pubDate>Wed, 12 May 2021 10:04:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de53671f-3871-4b4a-bef1-75a5affbc81f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I tried with NCS v1.5.1 now, and I managed to build &amp;quot;empty app core&amp;quot; as a child image to the radio test example just by adding &amp;#39;CONFIG_NCS_SAMPLE_EMPTY_APP_CORE_CHILD_IMAGE=y&amp;#39; to the boards/nrf5340dk_nrf5340_cpunet.conf overlay. I don&amp;#39;t recall what the problem I encountered earlier was, but seems to be working now at least.&lt;/p&gt;
&lt;p&gt;But to answer your question, the &amp;quot;pm_config.h: No such file or directory&amp;quot; error indicates that the partition manager is not being enabled in your build (&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/CONFIG_PARTITION_MANAGER_ENABLED.html#cmdoption-arg-CONFIG_PARTITION_MANAGER_ENABLED"&gt;CONFIG_PARTITION_MANAGER_ENABLED&lt;/a&gt;). You may create a new config setting similiar to NCS_SAMPLE_EMPTY_APP_CORE_CHILD_IMAGE in nrf\samples\Kconfig which selects the PARTION_MANAGER_ENABLED symbol.&lt;/p&gt;
&lt;p&gt;PARTITION_MANAGER_ENABLED enabled by NCS_SAMPLE_EMPTY_APP_CORE_CHILD_IMAGE:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1620813339390v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 Multi-Image example configuration help</title><link>https://devzone.nordicsemi.com/thread/309294?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 14:54:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57827c76-ba75-45fc-9c83-0b353661e8a0</guid><dc:creator>anthony32086</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Taking another look at this problem, I have made the following modifications.&lt;/p&gt;
&lt;p&gt;In my project root Kconfig I have the following entry&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;module=CHILD_NET
source &amp;quot;${ZEPHYR_BASE}/../nrf/subsys/partition_manager/Kconfig.template.build_strategy_domain&amp;quot;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;copied from ncs/nrf/subsys/partition_manager/Kconfig:73&lt;/p&gt;
&lt;p&gt;Then in my project root CMakeLists.txt I have the following&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;set(NETCORE_IMAGE &amp;quot;child_net&amp;quot;)
set(NETCORE_IMAGE_PATH &amp;quot;${CMAKE_CURRENT_SOURCE_DIR}/src/net&amp;quot;)
message(&amp;quot;Adding ${NETCORE_IMAGE} firmware as child image&amp;quot;)

add_child_image(
  NAME ${NETCORE_IMAGE}
  SOURCE_DIR ${NETCORE_IMAGE_PATH}
  DOMAIN CPUNET
  BOARD ${CONFIG_DOMAIN_CPUNET_BOARD})&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;which was copied from ncs/nrf/samples/CMakeLists.txt&lt;/p&gt;
&lt;p&gt;When I run west build --pristine -b nrf5340dk_nrf5340_cpuapp I get the following error&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;fatal error: pm_config.h: No such file or directory
   38 | #include &amp;lt;pm_config.h&amp;gt;
      |          ^~~~~~~~~~~~~
compilation terminated.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;How to I fix this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 Multi-Image example configuration help</title><link>https://devzone.nordicsemi.com/thread/300231?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 19:54:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13a4c81c-1357-4aa6-b5f9-bbd62a1ac109</guid><dc:creator>anthony32086</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What I meant was to make empty_app_core, or any main core project the parent and when built would also build the child project to combine into one to flash.&lt;/p&gt;
&lt;p&gt;I tried some of the BLE projects and I see that HCI_rpsmg is a child image which I will look into more. I&amp;#39;m still new to this new SDK so it will take some getting used to.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 Multi-Image example configuration help</title><link>https://devzone.nordicsemi.com/thread/300195?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 15:10:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:266aa315-e5e7-45b2-a082-82616ae36384</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t get the mutlig image build to to work with the radio test example even though &amp;#39;empty_app_core&amp;#39; is defined as a child image in \nrf\samples\CMakelists.txt. I need to investigate this a bit more and get back to you.&lt;/p&gt;
&lt;p&gt;That said, there are mulitple examples of multi image projects in NCS. The BLE projects do for instance include the &amp;#39;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf5340.html#bluetooth-low-energy"&gt;HCI_rpsmg&lt;/a&gt;&amp;#39; sample as a child image when you build for the app core. Have you tried that?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>