<?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>child image file structure and DFU upload includes child image.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113804/child-image-file-structure-and-dfu-upload-includes-child-image</link><description>Hello support team, 
 I have question on how should i setup child image. In my project i need to use hci_rpmsg sample as child image for the bluetooth. However, the current consumption is high, so i have to add 
 into prj.conf into the hci_rpmsg sample</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Aug 2024 13:30:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113804/child-image-file-structure-and-dfu-upload-includes-child-image" /><item><title>RE: child image file structure and DFU upload includes child image.</title><link>https://devzone.nordicsemi.com/thread/497839?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2024 13:30:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfcfd357-76ce-4883-9bf5-b881e1ac0e46</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/multi-image-builds-and-the-partition-manager/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/multi-image-builds-and-the-partition-manager/&lt;/a&gt; for some extra info on this.&lt;/p&gt;
[quote user=""]However, the current consumption is high, so i have to add&amp;nbsp;[/quote]
&lt;p&gt;Agreed.&lt;/p&gt;
[quote user=""]I wish you have example that show me how to include hci_rpmsg sample as a child build and that can use my custom prj.conf.[/quote]
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/v2.5.3/samples/bluetooth/peripheral_status"&gt;https://github.com/nrfconnect/sdk-nrf/tree/v2.5.3/samples/bluetooth/peripheral_status&lt;/a&gt;&lt;/p&gt;
[quote user=""]I add file child_image/hci_rpmsg.prj to my project folder, it doesn&amp;#39;t show any sign that the child image is rebuilt.[/quote]
&lt;p&gt;Delete the build folder and rebuild.&lt;br /&gt;I recommend that you put something wrong into the config file, to get a build error. That way you know that it tries to build this file.&lt;br /&gt;Then when you build correctly you can check build/hci_rpmsg/zephyr/.config to see that your changes is included.&lt;/p&gt;
[quote user=""]It would be great if you can show me an example how to setup the CMakeList.txt and how to arrange the .conf file for both project and child image.&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;No need to use CMakeLists.txt. If you use the path project/child_image/hci_rpmsg.conf the file will be included automatically.&lt;/p&gt;
[quote user=""]Second question, I have DFU setup in my project, when I flash the firmware to the board through usb cable. The child image is updated. However, when uploading firmware through nrf connected device manager DFU update, the child image is not renewed. What could be the reason?&amp;nbsp;[/quote]
&lt;p&gt;Updating the network core is more complex.&lt;br /&gt;See &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/&lt;/a&gt;&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>