child image file structure and DFU upload includes child image.

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 

CONFIG_LOG=n
CONFIG_SERIAL=n

into prj.conf into the hci_rpmsg sample in ncs folder. I read this document, it says it is possible to add the custom config for childimage to the project folder instead of changing the ncs folder. 

I use ncs 2.5 now and I really have difficulty to understand the document for ncs2.5. 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. I add file child_image/hci_rpmsg.prj to my project folder, it doesn't show any sign that the child image is rebuilt.  
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.  

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? 

Please let me know if you need more information. 

Thanks for help

Related