Matter lamp example fails build with CONFIG_MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP

I'm trying to test direct XIP in DFU over BT in Matter lamp example on nRF52840 DK using SDK v 2.5.1 

In order to test direct XIP I created a project using the sample and added using the same added CONFIG_CHIP_DFU_OVER_BT_SMP=y and CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y to prj.conf in order to enable DFU over BT. That worked quite well.

Then I tried to test direct XIP and, following Build configuration additions for MCUboot in the direct-xip mode documentation, I added 

CONFIG_BOOT_DIRECT_XIP=y to child_image\mcuboot\prj.conf and CONFIG_MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP=y to prj.conf. When I tried to build the project I got this error

-- Found partition manager static configuration: C:/nordic/myapps/light_bulb_1/configuration/nrf52840dk_nrf52840/pm_static_dfu.yml
-- Configuring done
CMake Error at C:/nrf_sdk/v2.5.1/modules/lib/matter/config/nrfconnect/chip-module/generate_factory_data.cmake:163 (add_custom_command):
Error evaluating generator expression:

$<TARGET_PROPERTY:partition_manager,PM_FACTORY_DATA_ADDRESS>

Does this example support Direct XIP at all?

Parents
  • Hello,

    Sorry, I am not a matter expert. So I couldn't catch this at first. It looks like matter samples are quite large; the running application will be in the internal flash. So doing a dual-slot DFU won't be possible. You need to consider using an external flash for doing dual slot DFU.

    Kind Regards,

    Abhijith

  • Hi  ,

    I'm not sure if I understand you correctly, but aren't they already using external flash? It's not possible to download whole new firmware in the internal flash either if it's around 800 kB. And the fact that the compilation even at the bootloader compilation step without generating any reasonable message doesn't help much for tracing down the issue.

    Do you have any other example using DFU over BT + Direct XIP? that's what I'm basically interested in.

    Regards,

    Sergey

Reply
  • Hi  ,

    I'm not sure if I understand you correctly, but aren't they already using external flash? It's not possible to download whole new firmware in the internal flash either if it's around 800 kB. And the fact that the compilation even at the bootloader compilation step without generating any reasonable message doesn't help much for tracing down the issue.

    Do you have any other example using DFU over BT + Direct XIP? that's what I'm basically interested in.

    Regards,

    Sergey

Children
No Data
Related