This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Disable MCUBoot on start-up

Is there a quick way to disable MCU Boot on the Thingy91 Asset Tracker example? I need to use the button on the device to my applicaton, and it is neccecary that the user can power up the device - even with the button activated.

When I set this variable in the proj.conf file: CONFIG_BOOTLOADER_MCUBOOT=n  I get this error message:

../zephyr/subsys/dfu/boot/mcuboot.c:77:37: error: 'PM_MCUBOOT_PRIMARY_ID' undeclared (first use in this function)
 #define FLASH_AREA_IMAGE_PRIMARY    PM_MCUBOOT_PRIMARY_ID
                                     ^~~~~~~~~~~~~~~~~~~~~

  • I was able to disable MCUBoot on the Thingy:91 Asset Tracker example by doing the following:

    • Setting CONFIG_BOOTLOADER_MCUBOOT=n in nrf\applications\asset_tracker\prj_thingy91_nrf9160ns.conf
    • Build the example: west build -b thingy91_nrf9160ns -d build_thingy91

    I can see that no mcuboot folder is present in nrf\applications\asset_tracker\build_thingy91 and CONFIG_BOOTLOADER_MCUBOOT is disabled in nrf\applications\asset_tracker\build_thingy91\zephyr\.config. However I don't have a Thingy:91 available at the moment so I haven't tested the application, but I assume it should work fine.

    Best regards,

    Simon

Related