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
  • Hi, 

    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?

    The NCS BLE samples for nRF5340 are enabled with multi-build with hci_ipc for net core by default, so you don't have to enable it again. 

    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.

    VS code would flash for net core and app core by default unless you use the command line

    https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/device_guides/working_with_nrf/nrf53/nrf5340.html#using-the-command-line 

    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.

    If you only drag the app image and erase & write, the nRF programmer would also recover the net core. I think this is the reason you see the application crashes. Therefore, I would suggest you use the command line if you only update the app image. 

    Regards,
    Amanda H. 

Reply
  • Hi, 

    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?

    The NCS BLE samples for nRF5340 are enabled with multi-build with hci_ipc for net core by default, so you don't have to enable it again. 

    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.

    VS code would flash for net core and app core by default unless you use the command line

    https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/device_guides/working_with_nrf/nrf53/nrf5340.html#using-the-command-line 

    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.

    If you only drag the app image and erase & write, the nRF programmer would also recover the net core. I think this is the reason you see the application crashes. Therefore, I would suggest you use the command line if you only update the app image. 

    Regards,
    Amanda H. 

Children
Related