nRF5340 Adding a custom HCI_RPMsg child image to an application

Hello, 

I have two projects, one for the application core (modified BLE Peripheral sample) and the second is for the network core (modified HCI_RPMsg sample). I am currently using nRF Connect SDK v1.9.0 with VS Code and I have a nRF5340DK. 

Following this post (NRF5340 Multi-Image example configuration help), I was able to build my application core image with my customized HCI_RPMsg project as a child image. However, this required adding/modifying files within the SDK install, which isn't an ideal solution.

I have also tried following the defining and enabling a child-image guide, but the pm_config.h files were not being generated for the HCI_RPMsg image. 

Is there a way I can do this without having to modify the SDK? If not, is this something that could be added to the SDK in the future? 

Regards, 

Austin

Parents Reply
  • Hi,

    I had a similar problem and ended up creating a symbolic link to the custom image project folder.

    I simply renamed the hci_rpmsg folder in zephyr/samples/bluetooth to sdk_hci_rpmsg folder and then used ln -s /absolute/path/to/custom/image/folder hci_rpmsg to trick the build system to use the custom project instead.

    Ultimately it would be nice to have an option to use a custom hci_rpmsg project but at least the sym link works and allows to have all the project files together and outside of the SDK tree.

    I guess you could even automate the management of the symlink by creating a custom build command in visual studio code so that when you build your custom project it sets the symlink to your custom child image and when the build is done it sets the symlink to point to sdk_hci_rpmsg, which is the original one

Children
No Data
Related