building and merging the nRF5340 network soft-device with the application hex

I'm unable to duplicate the build environment on the nRF5340 that is already setup when pulling in an example that supports BLE.  After pulling in an example, the build environment is configured to build both the application hex and the network hex and merge them. Its then very easy to flash them together.  

I've tried following the instructions here but it seems rather complex for something that should be done quite frequently.  Is there a better resource for setting up this build environment?

Can I just build the network project once and flash it and then as the application changes I only have to flash the application again? From what I read, flashing the network core will first clear the entire flash but flashing the application core will clear only the application flash.

Can I just use nRF Programmer and drag the built hex's over and just erase and flash the entire flash contents?  This would seem like a suitable solution but its crashing on BLE_Init...but this could be an application problem.

Parents Reply
  • Ok well I added that to the CMakeLists.c and now I'm getting:
    CMake Error at C:/Projects/zfw_wksp/app/CMakeLists.txt:20 (add_child_image):
    Unknown CMake command "add_child_image".

    I found others have a similar problem and it has something to do with the order of the project nodes. Is this still an issue?  I found that the function is in multi-image CMake but apparently its not being called until after this project. Is there another solution?  

    Like I said in my original post, this seems like a very complex solution to a very common situation. Are you sure this isn't already setup somewhere and I am just not aware of some config? I just need to include the child project hci_ipc in my custom board project.

Children
Related