Hi all,
I'm new to the nRF SDK and am currently tinkering around with my nRF52840DK to build a DIY Matter sensor. I copied the sample from the SDK, expanded it to my use case and tested it successfully. The problem arises when I try to migrate from the partition manager declarations to the device tree partition declarations.
I used the pm2dts.py script to get an initial idea of the new partition layout and set the CONFIG_PARTITION_MANAGER_ENABLED=n and SB_CONFIG_PARTITION_MANAGER=n config options to disable the partition manager. Finally I inserted the following into my .overlay:
&flash0 {
/delete-node/ partitions;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x0 0x7000>;
};
slot0_partition: partition@7200 {
label = "app";
reg = <0x7200 0xefe00>;
};
factory_data: partition@f7000 {
label = "factory_data";
reg = <0xf7000 0x1000>;
};
storage_partition: partition@f8000 {
label = "storage";
reg = <0xf8000 0x8000>;
};
};
};
&mx25r64 {
/delete-node/ partitions;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
slot1_partition: partition@0 {
label = "image-1";
reg = <0x0 0xf0000>;
};
};
};
With this config, however, I get an error when trying to (pristine) build:
CMake Error at /home/oliver/ncs/v3.3.0/zephyr/cmake/modules/extensions.cmake:3967 (message): dt_node_exists(factory_data_exists ...) missing required argument: PATH
I suspect this is, because the factory_data partition is not being picked up on, however I am out of ideas for what to do to fix this.