mcuboot, Image in the primary slot is not valid, Unable to find bootable image

I followed the course to enable MCUBOOT over BLE it is successful for the project peripheral_lbs but not my application.

uart log;


build log:

prj.conf



Parents Reply Children
  • As you can see here, there looks to be three alternatives:

    So it will depend on if your device is Peripheral, Central or Multirole.

    CONFIG_BT_PERIPHERAL=y => Peripheral-only SoftDevice Controller
    CONFIG_BT_CENTRAL=y => Central-only SoftDevice Controller
    CONFIG_BT_CENTRAL=y and CONFIG_BT_PERIPHERAL=y  => Multirole SoftDevice Controller

    In addition to this, I think Bluetooth Memory Optimization could reduce the space as well.
    I suggest you try these tips and see if they reduce the size of NPL. If it does not help, let me know and we will help you look more into this

  • Does it mean we can not disable the features individually?  such as "Coded PHY (Long Range)", "Connectionless CTE Advertising" and "Connection CTE Response", we can not disable them if we use multiole, is that so?

  • Yes, you can disable individual features that you don't need. For instance, coded PHY. The linker will remove sections from the library if it is able to determine that they are not being used.